udfGetEbcCnn()
Return the element connectivity.
Syntax
elemCnn = udfGetEbcCnn( udfHd ) ;
Type
AcuSolve User-Defined Example Boundary Condition
Parameters
- udfHd
- The opaque handle (pointer) which was passed to the user function.
Return Value
- elemCnn (Integer*)
- Pointer to two dimensional integer array of element connectivity. The first (fast) dimension of the array is the number of elements in the boundary element set, nItems, and the second (slow) dimension is the number of element nodes, nElemNodes.
Description
Integer* elemCnn ;
Integer elemNode, elem, node, nElemNodes ;
...
nElemNodes = udfGetEbcNElemNodes( udfHd ) ;
elemCnn = udfGetEbcCnn( udfHd ) ;
for ( elem = 0 ; elem < nItems ; elem++ ) {
for ( elemNode = 0 ; elemNode < nElemNodes ; elemNode++ ) {
node = elemCnn[elemNode*nItems+elem] ;
...
}
}
Errors
- This routine expects a valid udfHd.
- This routine may only be called within an Element Boundary Condition user function.