The medium is designed for substance mixtures in liquid, gas or biphasic (VL) state. It uses external C functions for the calculations, and it follows, where possible, the masterlines of Modelica. Media.Interfaces.PartialTwoPhaseMedium.It is mandatory to switch to the gcc compilers, as the C code is incompatible with the clang compilers. The implementation is based in a static object created in the C code, as it has been impossible to make it work, at least in OpenModelica, using the Modelica external object feature.
The data for the pure, or pseudo pure, substances are in the Resources/Fluids directory.
At the moment the implementation is just beginning and very few testing has been done, nevertheless bubble and dew calculations and the pTX flash are already working.
For the thermodynamic models, you can use Cubic and PCSAFT EOS without iteraction parameters, and UNIFAC with gE EOS. The code can work with interaction parameters and other activity models, but I need to implement the reading of these parameters.
For the future I plan the addition of interaction parameters, pressure-enthalpy flash and transport properties calculation.
Contents
Generated at 2024-11-20T19:25:51Z
by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos