Commit 00837a1f authored by Henning Francke's avatar Henning Francke
Browse files

fixed endless loop in BrineProps2phaseFull

parent ba123a19
......@@ -146,6 +146,15 @@ partial package PartialBrineMultiSaltMultiGasTwoPhase "Template medium for aqueo
annotation(LateInline=true,inverse(p=pressure_dTX(d,T,X,phase,n_g_norm_start)));
end density_pTX;
redeclare function density "density from state"
extends Modelica.Icons.Function;
input ThermodynamicState state "Thermodynamic state record";
output Density d "Density";
// extends Modelica.Media.Interfaces.PartialMedium.density;
algorithm
d := state.d;
end density;
redeclare function extends saturationTemperature "saturation temperature"
algorithm
T := 373.15;
......
......@@ -15,6 +15,7 @@ nM_gas
BaseProperties
ThermodynamicState
density_pTX
density
saturationTemperature
dewEnthalpy
bubbleEnthalpy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment