BrineProp is a modelica package that calculates the thermodynamic properties of a specified brine, i.e. an aqueous solution of salts and gases, with a potential gas phase, including degassing/evaporation and solution/condensation.
It was developed as a part of a PhD projected, documented in the thesis "Thermo-hydraulic model of the two-phase flow in the brine circuit of a geothermal power plant".
This package contains an extension of the Modelica.Media interfaces for two-phase mixtures (PartialMixtureTwoPhaseMedium), the generic brine template with the vapour-liquid-equilibrium calculation (PartialBrine_ngas_Newton), as well specific brine models for NaCl, KCl, CaCl2, [MgCl2, SrCl2 partially supported] (1-phase: Brine_5salts) and CO2, N2 and CH4 (2-phase: Brine_5salts_TwoPhase_3gas).
This package has been developed and tested in Dymola up to 2020x MSL 3.2.3 (See "Known issues").
Licensed by the Helmholtz Centre Potsdam, GFZ German Research Centre for Geosciences under the Modelica License 2
Copyright © 2009-2014 Henning Francke.
This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the Modelica License 2. For license conditions (including the disclaimer of warranty) see Modelica.UsersGuide.ModelicaLicense2 or visit http://www.modelica.org/licenses/ModelicaLicense2.
set Advanced.PedanticModelica:=false;
Check the (non-partial) Brine packages (Brine_5salts, BrineGas_3Gas or Brine_5salts_TwoPhase_3gas) for instructions or run models from BrineProp/Examples
.
All calculated values are returned in SI-Units and are mass based.
PartialMixtureTwoPhaseMedium
to avoid warningsPartialMixtureTwoPhaseMedium
to avoid errorsOpenModelica 1.9.1 beta2 |
JModelica 1.14 |
|
SingleSaltBrine |
check |
? |
BrineProps1PhaseMinimal |
check |
? |
BrineProps1PhaseFull |
check |
? |
BrineGas |
check, compile w/ warning |
? |
PureWaterMinimal |
check, compile, simulate |
error |
PureWaterFlashing |
check |
? |
BrineProps2PhaseMinimal |
check |
? |
BrineProps2phaseFull |
check |
? |
BrineProps2PhaseMinimal_state |
check |
? |
ConvertBrineComposition |
check |
? |
MM_vec
in property functionsHenning Francke (francke@gfz-potsdam.de)
Helmholtz Centre Potsdam GFZ German Research Centre for Geosciences
Telegrafenberg, D-14473 Potsdam, Germany
Name | Description |
---|---|
UsersGuide | |
Examples | Usage examples |
Utilities | |
SaltData | Molar masses and mole numbers of the contained salts |
SaltDataDuan | Coefficients used in Duan density calculation |
Densities | Density functions |
SpecificEnthalpies | Enthalpy functions |
Viscosities | Viscosity functions |
Resistivities | |
Types | Definition of additional units used in BrineProp |
PartialFlags | |
PartialBrineMultiSaltOnePhase | Template medium for one-phase aqueous solution of m Salts and n Gases based on PartialMediaMixtureMedium |
ComponentsOrder | to be defined in actual Medium package |
BrineDriesner | NaCl solution using Driesner density and enthalpy function |
BrineDuan | NaCl solution using Duan density |
Brine3salts | One-phase (liquid) multisalt brine solution |
Brine5salts | |
GasData | Molar masses and ion numbers of gases |
PartialBrineGas | Medium template for gas mixture of nX_gas gases and water based on PartialMixtureMedium |
BrineGas3Gas | Gas mixture of CO2+N2+CH4+H2O |
BrineGas4Gas | "Gas mixture of CO2+N2+CH4+H2+H2O" |
Vacuum | Medium with zero properties |
PartialMixtureTwoPhaseMedium | Template class for two phase medium of a mixture of substances |
WaterMixtureTwoPhase_pT | (incomplete) Water model from Modelica.Media compatible to PartialMixtureTwoPhaseMedium (Example use) |
PartialBrineMultiSaltMultiGasTwoPhase | Template medium for aqueous solutions of m Salts and n Gases, VLE solved by Newton's method |
Brine3salts3gas | Two-phase aqueous solution of NaCl, KCl, CaCl2, N2, CO2, CH4 |
Brine5salts3gas | Two-phase aqueous solution of NaCl, KCl, CaCl2, N2, CO2, CH4 |
Brine3salts4gas | Two-phase aqueous solution of NaCl, KCl, CaCl2, N2, CO2, CH4, H2 |