BrineGas_3Gas is a medium package that, based on Brine.PartialBrineGas, defines a brine with 3 gases (CO2, N2, CH4), which are the main gases in the geofluid in Gross Schoenebeck, Germany.


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 = BrineGas_3Gas(ignoreLimitN2_T=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 = {1-4, 7e-4, 6e-005} "CO2, N2, CH4"
  d = props.d;

See BrineProp.Examples.BrineGas for more usage examples.

Returns properties for given composition when _pTX functions are called directly. Returns properties for given gas composition + saturated water when called via state functions (e.g. density)

All calculated values are returned in SI units and are mass based.

Potential speedup:

Calculate water saturated composition externally once (instead of separately in each property function) and pass on.


 waterSaturatedComposition_pTXcalculates the water saturated mass vector for a given Temperature
 densitywater-saturated density from state
 density_pTXDensity of an ideal mixture of ideal gases
 specificHeatCapacityCpwater-saturated heat capacity of gas phase
 specificHeatCapacityCp_pTXcalculation of specific heat capacities of gas mixture
 dynamicViscositywater-saturated thermal conductivity of water
 dynamicViscosity_pTXcalculation of gas dynamic Viscosity
 thermalConductivitywater-saturated thermal conductivity of water
 thermalConductivity_pTXcalculation of gas thermal conductivity
 specificEnthalpy_pTXcalculation of specific enthalpy of gas mixture
 specificEnthalpywater-saturated specific enthalpy of gas phase

Generated at 2024-06-24T18:16:00Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos