udfGetElmRafData()

Return element running average field data at the quadrature point.

Syntax

data = udfGetElmRafData( udfHd, dataName ) ;

Type

User Defined Element

Parameters

udfHd
The opaque handle (pointer) which was passed to the user function.
dataName (integer)
Symbolic name of the requested data.
UDF_ELM_VELOCITY
Velocity.
UDF_ELM_ACCELERATION
Acceleration.
UDF_ELM_PRESSURE
Pressure.
UDF_ELM_TEMPERATURE
Temperature.
UDF_ELM_SPECIES
Species.
UDF_ELM_EDDY_VISCOSITY
Turbulence eddy viscosity.
UDF_ELM_KINETIC_ENERGY
Turbulence kinetic energy.
UDF_ELM_EDDY_FREQUENCY
Turbulence eddy frequency.
UDF_ELM_GRAD_VELOCITY
Gradient of velocity.
UDF_ELM_GRAD_PRESSURE
Gradient of pressure.
UDF_ELM_GRAD_TEMPERATURE
Gradient of temperature.
UDF_ELM_GRAD_SPECIES
Gradient of species.
UDF_ELM_MESH_DISPLACEMENT
Mesh displacement.
UDF_ELM_MESH_VELOCITY
Mesh velocity.
UDF_ELM_MESH_GRAD_DISPLACEMENT
Gradient of mesh displacement.
UDF_ELM_MESH_GRAD_VELOCITY
Gradient of mesh velocity.
UDF_ELM_TURBULENCE_Y
Distance to nearest turbulence wall.
UDF_ELM_TURBULENCE_YPLUS
Turbulence y+ based on distance to nearest turbulence wall and shear at that wall.
UDF_ELM_VISCOELASTIC
Viscoelastic.

Return Value

data (Real*)
Pointer to one, two, or three dimensional real array of the requested data. The dimensions of the array depend on dataName as follows. If the third (slowest) dimension of the array is equal to one, then the array may be treated as two dimensional. If the second dimension is likewise one, then the array is one dimensional. The x, y, z components of the gradient for gradient quantities are always contained in the last nontrivial dimension.
dataName First Dimension Second Dimension Third Dimension
UDF_ELM_VELOCITY nItems 3 1
UDF_ELM_ACCLERATION nItems 3 1
UDF_ELM_PRESSURE nItems 1 1
UDF_ELM_TEMPERATURE nItems 1 1
UDF_ELM_SPECIES nItems udfGetNumSpecs() 1
UDF_ELM_EDDY_VISCOSITY nItems 1 1
UDF_ELM_KINETIC_ENERGY nItems 1 1
UDF_ELM_EDDY_FREQUENCY nItems 1 1
UDF_ELM_GRAD_VELOCITY nItems 3 3
UDF_ELM_GRAD_PRESSURE nItems 3 1
UDF_ELM_GRAD_TEMPERATURE nItems 3 1
UDF_ELM_GRAD_SPECIES nItems udfGetNumSpecs() 3
UDF_ELM_MESH_DISPLACEMENT nItems 3 1
UDF_ELM_MESH_VELOCITY nItems 3 1
UDF_ELM_MESH_GRAD_DISPLACEMENT nItems 3 3
UDF_ELM_MESH_GRAD_VELOCITY nItems 3 3
UDF_ELM_TURBULENCE_Y nItems 1 1
UDF_ELM_TURBULENCE_YPLUS nItems 1 1
UDF_ELM_VISCOELASTIC nItems 6 1

Description

This routine returns the requested solution data. It is used exactly the same way as udfGetElmData, but returns the running average field versions of the data.

Errors

  • This routine expects a valid udfHd.
  • This routine may only be called within a Body Force, Material Model or Component Model user function.
  • dataName must be one of the values given above.
  • The problem must contain the equation associated with the requested data.
  • running_average must be turned on in the EQUATION command.