[Fluent Inc. Logo] return to home search
next up previous contents index

23.13.2 Writing the User-Defined Wet Steam Property Functions (UDWSPF)

Creating a UDWSPF C function library is reasonably straightforward:

The following lists the user-defined wet steam property function names and arguments, as well as a short description of their functions. Function inputs from the FLUENT solver consist of one or more of the following variables: T = temperature ( $K$), P = pressure ( $Pa$), and $\rho$ = vapor-phase density ( $kg/m^3$).

At the end of the code you must define a structure of type WS_Functions whose members are pointers to the principle functions listed previously. The structure is of type WS_Functions and its name is WetSteamFunctionList.

UDF_EXPORT WS_Functions WetSteamFunctionList =
  wetst_init,            /*initialization function*/
  wetst_satP,         /*Saturation pressure*/
  wetst_satT,         /*Saturation temperature*/
  wetst_eosP,        /*equation of state*/
  wetst_eosRHO,   /*equation of state*/
  wetst_hv,            /*vapor enthalpy*/
  wetst_sv,            /*vapor entropy*/
  wetst_cpv,          /*vapor isobaric specific heat*/
  wetst_cvv,          /*vapor isochoric specific heat*/
  wetst_muv,        /*vapor dynamic viscosity*/
  wetst_ktv,          /*vapor thermal conductivity*/
  wetst_rhol,         /*sat. liquid density*/
  wetst_cpl,          /*sat. liquid specific heat*/
  wetst_mul,         /*sat. liquid viscosity*/
  wetst_ktl,          /*sat. liquid thermal conductivity*/
  wetst_surft        /*liquid surface tension*/

next up previous contents index Previous: 23.13.1 Using User-Defined Thermodynamic
Up: 23.13 Setting Up the
Next: 23.13.3 Compiling Your UDWSPF
© Fluent Inc. 2006-09-20