udfGetElmMedium()
Return the medium of the element set.
Syntax
name = udfGetElmMedium( udfHd ) ;
Type
User Defined Element
Parameters
- udfHd
- The opaque handle (pointer) which was passed to the user function.
Return Value
- name (integer)
- Symbolic name corresponding to the medium of the element set.
- PRM_MED_FLUID
- Fluid.
- PRM_MED_SOLID
- Solid.
- PRM_MED_SHELL
- Shell.
Description
Integer medium ;
...
medium = udfGetElmMedium( udfHd ) ;
if ( medium == PRM_MED_FLUID ) {
...
}
Errors
- This routine expects a valid udfHd.
- This routine may only be called within a Body Force, Material Model or Component Model user function, or from an external code.