udfGetEbcCrd()

Return coordinates of the surface quadrature point.

Syntax

crd = udfGetEbcCrd( udfHd ) ;

Type

AcuSolve User-Defined Example Boundary Condition

Parameters

udfHd
The opaque handle (pointer) which was passed to the user function.

Return Value

crd (Real*)
Pointer to two dimensional real array of surface coordinates. The first (fastest) dimension of the array is the number of surfaces, nItems, and the second (slower) dimension is three, for the x, y and z coordinates.

Description

This routine returns the coordinates of the surface quadrature point. If mesh displacement is active, the returned coordinates are for the current (deformed) configuration. For example,
Real* crd ;
Real x, y, z ;
Integer surf ;
...
crd = udfGetEbcCrd( udfHd ) ;
for ( surf = 0 ; surf < nItems ; surf++ ) {
  x = crd[0*nItems+surf] ;
  y = crd[1*nItems+surf] ;
  z = crd[2*nItems+surf] ;
  ...
}

Errors

  • This routine expects a valid udfHd.
  • This routine may only be called within an Element Boundary Condition user function.