Commit 8d53a8ee authored by Henning Francke's avatar Henning Francke
Browse files

added missing dummy functions

parent 75dae854
......@@ -48,6 +48,8 @@ constant Integer nX_gas = 0;
"(min=0,max=1) gas phase mass fraction";
// Integer phase_out "calculated phase";
//END no gas case
SI.Pressure p_degas[1]={saturationPressure(T)}; //for compatibility with Brine, used in pipeAnnulus
equation
u = h - p/d;
MM = M_H2O;
......@@ -378,6 +380,11 @@ end setState_phX;
// annotation(LateInline=true,inverse(T = temperature_phX(p=p,h=h,X=X,phase=phase)));
end density_phX;
redeclare function extends density_liq_pTX
algorithm
d:=Modelica.Media.Water.IF97_Utilities.rho_pT(p,T,region=1);
end density_liq_pTX;
redeclare function vapourQuality "Return vapour quality"
input ThermodynamicState state "Thermodynamic state record";
output MassFraction x= state.x "Vapour quality";
......@@ -402,6 +409,11 @@ end setState_phX;
state := setState_pTX(1e5,T,X) ",fluidnames)";
end setState_dTX;
redeclare function extends density_gas_pTX
algorithm
d:=Modelica.Media.Water.IF97_Utilities.rho_pT(p,T,region=2);
end density_gas_pTX;
annotation (Documentation(info="<html>
<h1>Water_MixtureTwoPhase_pT</h1>
This is a an example use of PartialMixtureTwoPhaseMedium.
......
......@@ -24,6 +24,7 @@ surfaceTension
setState_phX
density_pTX
density_phX
density_liq_pTX
vapourQuality
temperature_ph
specificEnthalpy_pT
......@@ -31,3 +32,4 @@ density_pT
setState_dTX
specificEnthalpy
fugacity_H2O
density_gas_pTX
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