GetTempFromEnth

Returns a true or false value whether the retrieve operation is successful. When the operation is successful, the function returns the materials' enthalpy for a given temperature and pressure.

Calling convention:

bool GetTempFromEnth (double* val, int ifluid, double enth, double temp, double press)
Note:

To access this method, you must use the GetTMGFunction method and include the AdditionalFunctions.h file located in the [installation_path]\tmg\include\maya\expeval_utils folder in the beginning of your source file.

Argument Data type Description
val double* The temperature value from the enthalpy value.
ifluid int The index of the additional fluid material in the multiple fluid associated with the boundary condition.
enth double The enthalpy value.
temp double The reference temperature.
press double The given pressure.

For the example, see the GetAreaBC method.