udfGetElmCrd()
Return the element coordinates at the quadrature point.
Syntax
crd = udfGetElmCrd( udfHd ) ;
Type
User Defined Element
Parameters
- udfHd
- The opaque handle (pointer) which was passed to the user function.
Return Value
- crd (Real*)
- Pointer to two dimensional real array of element coordinates. The first (fastest) dimension of the array is the number of elements, nItems, and the second (slower) dimension is three, for the x, y and z coordinates.
Description
Real* crd ;
Real x, y, z ;
Integer elem ;
...
crd = udfGetElmCrd( udfHd ) ;
for ( elem = 0 ; elem < nItems ; elem++ ) {
x = crd[0*nItems+elem] ;
y = crd[1*nItems+elem] ;
z = crd[2*nItems+elem] ;
...
}
Errors
- This routine expects a valid udfHd.
- This routine may only be called within a Body Force, Material Model or Component Model user function.