BrineProp.Brine_5salts is a medium package that provides properties of one-phase solution of five salts (NaCl, KCl, CaCl2, MgCl2, SrCl2).


It is based on Modelica.Media, the usage is accordingly:

Create an instance of the Medium (optionally deactivating range checks, for all options see .PartialFlags):

  package Medium = Brine_5salts(AssertLevel=1,ignoreLimitSalt_T={false,true,true,false,false});

Create an instance of Medium.Baseproperties:

  Medium.BaseProperties props;

Use the BaseProperties model to define the actual brine composition(Xi or X), to define the thermodynamic state and calculate the corresponding properties.

  props.p = 1e5;
  props.T = 300;
  props.Xi = {0.08, 0.004, 0.12, 0.001, 0.002} "NaCl, KCl, CaCl2, MgCl2, SrCl2"
  d = props.d;

Pressure and temperature as well as pressure and specific enthalpy can be used to define a thermodynamic state.

All calculated values are returned in SI-Units and are mass based.


The model is explicit for p and T, but for h(p,T) the inverse function T(p,h) is defined. T(p,h) is inverts h(p,T) numerically by bisection, stopping at a given tolerance.

Density and enthalpy are calculated like the liquid phase properties in BrineProp.Brine_5salts_TwoPhase_3gas .


 specificHeatCapacityCpcalculation of liquid specific heat capacity from apparent molar heat capacities
 thermalConductivityThermal conductivity of water TODO

Generated at 2024-03-03T19:16:20Z by OpenModelicaOpenModelica 1.22.1 using GenerateDoc.mos