udfGetHecData()
Return data of a heat exchanger component.
Syntax
hecData = udfGetHecData( 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 HEAT_EXCHANGER_COMPONENT set.
- dataName (integer)
- Symbolic name of the requested data.
- UDF_HEC_AREA
- Inlet area.
- UDF_HEC_MASS_FLUX
- Inlet mass flux.
- UDF_HEC_AVERAGE_VELOCITY
- Mass-averaged inlet velocity.
- UDF_HEC_AVERAGE_TEMPERATURE
- Mass-averaged inlet temperature.
- UDF_HEC_COOLANT_TEMPERATURE
- Top water temperature.
- UDF_HEC_COOLANT_HEAT
- Top water heat rejection.
Return Value
- hecData (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 heat exchanger component. For
example,
Real* hecData ;
Real area, mass, velocity, temp, topTemp;
...
hecData = udfGetHecData( udfHd, "radiator 1", UDF_HEC_AREA ) ;
area = hecData[0] ;
hecData = udfGetHecData( udfHd, "radiator 1", UDF_FAN_MASS_FLUX ) ;
mass = hecData[0] ;
hecData = udfGetHecData( udfHd, "radiator 1", UDF_FAN_AVERAGE_VELOCITY ) ;
velocity = hecData[0] ;
hecData = udfGetHecData( udfHd, "radiator 1", UDF_FAN_AVERAGE_TEMPERATURE ) ;
temp = hecData[0] ;
hecData = udfGetHecData( udfHd, "radiator 1", UDF_FAN_COOLANT_TEMPERATURE ) ;
topTemp = hecData[0] ;
Errors
- This routine expects a valid udfHd.
- setName must be a valid name.
- dataName must be one of the values given above.