udfGetEbcMedium()

Return the medium of the boundary element set.

Syntax

name = udfGetEbcMedium( udfHd ) ;

Type

AcuSolve User-Defined Example Boundary Condition

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 boundary element set.
PRM_MED_FLUID
Fluid.
PRM_MED_SOLID
Solid.
PRM_MED_SHELL
Shell.

Description

This routine returns the medium (fluid, solid or shell) of the boundary element set associated with the user function. For example,
Integer medium ;
...
medium = udfGetEbcMedium( udfHd ) ;
if ( medium == PRM_MED_FLUID ) {
...
}

Errors

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