24.6.1. Using User-Defined Thermodynamic Wet Steam Properties

ANSYS Fluent allows you to use your own property functions and data with the wet steam model. This is achieved with user-defined wet steam property functions (UDWSPF).

These user-defined functions are written in the C programming language and there is a certain programming format that must be used so that you can build a successful library that can be loaded into the ANSYS Fluent code.

The following is the procedure for using the user-defined wet steam property functions (UDWSPF):

  1. Define the wet steam equation of state and all related thermodynamic and transport property equations.

  2. Create a C source code file that conforms to the format defined in this section.

  3. Start ANSYS Fluent and set up your case file in the usual way.

  4. Turn on the wet steam model.

  5. Compile your UDWSPF C functions and build a shared library file using the text user interface.

    define → models → multiphase → wet-steam → compile-user-defined-wetsteam-functions

  6. Load your newly created UDWSPF library using the text user interface.

    define → models → multiphase → wet-steam → load-unload-user-defined-wetsteam-library

  7. Run your calculation.


    Important:  Note that the UDWSPF can only be used when the wet steam model is selected. Therefore, the UDWSPF are available for use with the density-based solver only.



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