udfGetFanData()

Return data of a fan component.

Syntax

fanData = udfGetFanData( udfHd, setName, dataName ) ;

Type

AcuSolve User-Defined Function Global

Parameters

udfHd
The opaque handle (pointer) which was passed to the user function.
setName (string)
Name of the FAN_COMPONENT set.
dataName (integer)
Symbolic name of the requested data.
UDF_FAN_AREA
Inlet area.
UDF_FAN_MASS_FLUX
Inlet mass flux.
UDF_FAN_AVERAGE_VELOCITY
Mass-averaged inlet velocity.

Return Value

fanData(real)
Pointer to one-dimensional real array of the requested data. The dimension of the array is one for all values of dataName.

Description

This routine returns data from a specified fan component. For example,
Real* fanData ;
Real area, mass, velocity;
...
fanData = udfGetFanData( udfHd, "fan", UDF_FAN_AREA ) ;
area = fanData[0] ;
fanData = udfGetFanData( udfHd, "fan", UDF_FAN_MASS_FLUX ) ;
mass = fanData[0] ;
fanData = udfGetFanData( udfHd, "fan", UDF_FAN_AVERAGE_VELOCITY ) ;
velocity = fanData[0] ;

Errors

  • This routine expects a valid udfHd.
  • setName must be a valid name.
  • dataName must be one of the values given above.