.ExternalMedia.UserGuide.Usage.FluidProp

Information

Pure (or pseudo-pure) medium models from all the libraries in FluidProp can be accessed by extending the ExternalMedia.Media.FluidPropMedium package. You need to download and install FluidProp on your computer for these models to work: ExternalMedia accesses them through a COM interface.

Set libraryName to "FluidProp.RefProp", "FluidProp.StanMix", "FluidProp.TPSI", "FluidProp.IF97", or "FluidProp.GasMix" (only single-component), depending on the specific library you need to use. Set substanceNames to a single-element string array containing the name of the specific medium, as specified by the FluidProp documentation. Set mediumName to a string that describes the medium (this only used for documentation purposes but has no effect in selecting the medium model).

See ExternalMedia.Examples for examples.

Please note that the medium models IF97 and GasMix are already available natively in Modelica.Media as Water.StandardWater and IdealGases.MixtureGases, and are included here for comparison purposes. It is recommended to use the Modelica.Media models instead, since they are much faster to compute.


Generated at 2024-12-27T19:26:12Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos