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
.
Name | Description |
---|---|
density_pTX | |
specificEnthalpy_pTX | |
dynamicViscosity_pTXd | |
specificHeatCapacityCp | calculation of liquid specific heat capacity from apparent molar heat capacities |
surfaceTension_T | |
thermalConductivity | Thermal conductivity of water TODO |
dynamicViscosity_pTX |