24.6.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 ANSYS Fluent solver consist of one or more of the following variables: T = temperature (), P = pressure (), and = vapor-phase density ().

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*/
  };  

Release 18.2 - © ANSYS, Inc. All rights reserved.