.BrineProp

Information

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.

Usage

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.

Known issues:

Compatibilty:

OpenModelica 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

?


TODO:

Created by

Henning Francke (francke@gfz-potsdam.de)

Helmholtz Centre Potsdam GFZ German Research Centre for Geosciences

Telegrafenberg, D-14473 Potsdam, Germany

Contents

NameDescription
 UsersGuide
 ExamplesUsage examples
 Utilities
 SaltDataMolar masses and mole numbers of the contained salts
 SaltDataDuanCoefficients used in Duan density calculation
 DensitiesDensity functions
 SpecificEnthalpiesEnthalpy functions
 ViscositiesViscosity functions
 Resistivities
 TypesDefinition of additional units used in BrineProp
 PartialFlags
 PartialBrineMultiSaltOnePhaseTemplate medium for one-phase aqueous solution of m Salts and n Gases based on PartialMediaMixtureMedium
 ComponentsOrderto be defined in actual Medium package
 BrineDriesnerNaCl solution using Driesner density and enthalpy function
 BrineDuanNaCl solution using Duan density
 Brine3saltsOne-phase (liquid) multisalt brine solution
 Brine5salts
 GasDataMolar masses and ion numbers of gases
 PartialBrineGasMedium template for gas mixture of nX_gas gases and water based on PartialMixtureMedium
 BrineGas3GasGas mixture of CO2+N2+CH4+H2O
 BrineGas4Gas"Gas mixture of CO2+N2+CH4+H2+H2O"
 VacuumMedium with zero properties
 PartialMixtureTwoPhaseMediumTemplate class for two phase medium of a mixture of substances
 WaterMixtureTwoPhase_pT(incomplete) Water model from Modelica.Media compatible to PartialMixtureTwoPhaseMedium (Example use)
 PartialBrineMultiSaltMultiGasTwoPhaseTemplate medium for aqueous solutions of m Salts and n Gases, VLE solved by Newton's method
 Brine3salts3gasTwo-phase aqueous solution of NaCl, KCl, CaCl2, N2, CO2, CH4
 Brine5salts3gasTwo-phase aqueous solution of NaCl, KCl, CaCl2, N2, CO2, CH4
 Brine3salts4gasTwo-phase aqueous solution of NaCl, KCl, CaCl2, N2, CO2, CH4, H2

Revisions


Generated at 2024-05-28T18:15:54Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos