Author Topic: introducing spatial coordinates of node in uprop  (Read 3996 times)

ace21

  • Jr. Member
  • **
  • Posts: 27
introducing spatial coordinates of node in uprop
« on: November 30, 2016, 07:05:13 AM »
Dear Feap users

I want to implement a user propotional function which  assigns some propotional factor to a given node based on it spatial position in addition to time

Is it possible to pass coordinates of the node on which propotional load factor is to be applied in the uprop subroutine


thanks in adavce


Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: introducing spatial coordinates of node in uprop
« Reply #1 on: November 30, 2016, 10:32:46 AM »
The nodal coordinates are assigned to the pointer np(43)  - thus, the easiest way to access them is to include the pointer and arrays as
               include 'pointer.h'    !  gets np(*)
               include 'comblk.h'   ! gets hr(*)

  then call a routine

               call subxxxx(hr(np(43))

where you can then call the array the coordinates

              subroutine subxxxx(x)

              real*8 x(ndm,numnp)

See programmer manual for how to get ndm and numnp.  Now you can access any coordinate you want by node number