udfGetElmNElems()

Return the number of elements in the element set.

Syntax

nElems = udfGetElmNElems( udfHd ) ;

Type

User Defined Element

Parameters

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

Return Value

nElems (integer)
Number of elements in the element set.

Description

This routine returns the number of elements in the element set. This is the number of rows of the parameter elements of the command ELEMENT_SET in the input file. For example,
Integer nElems ;
...
nElems = udfGetElmNElems( udfHd ) ;

Errors

  • This routine expects a valid udfHd.
  • This routine may only be called within a Body Force, Material Model or Component Model user function.