recordBridgmansTables

Calculates all entries in Bridgmans tables if first seven variables given

Extends from Modelica.Icons.Record (Icon for records).

Information

Important: the phase equilibrium conditions are not yet considered. this means that Bridgman's tables do not yet work in the two phase region. Some derivatives are 0 or infinity anyways. Idea: Do not use the values in Bridgmans table directly, all derivatives are calculated as the quotient of two entries in the table. The last letter indicates which variable is held constant in taking the derivative. The second letters are the two variables involved in the derivative and the first letter is always a d to remind of differentiation.

Example 1: Get the derivative of specific entropy s w.r.t. Temperature at
constant specific volume (between identical to constant density)
constant volume  --> last letter v
Temperature      --> second letter T
Specific entropy --> second letter s
--> the needed value is dsv/dTv
Known variables:
Temperature T
pressure p
specific volume v
specific inner energy u
specific enthalpy h
specific entropy s
specific Helmholtz energy f
specific gibbs enthalpy g
Not included but useful:
density d
In order to convert derivatives involving density use the following
rules:
at constant density == at constant specific volume
ddx/dyx = -d*d*dvx/dyx with y,x any of T,p,u,h,s,f,g
dyx/ddx = -1/(d*d)dyx/dvx with y,x any of T,p,u,h,s,f,g
Usage example assuming water as the medium:
model BridgmansTablesForWater
extends ThermoFluid.BaseClasses.MediumModels.Water.WaterSteamMedium_ph;
Real derOfsByTAtConstantv "derivative of sp. entropy by temperature at constant sp. volume"
ThermoFluid.BaseClasses.MediumModels.Common.ExtraDerivatives dpro;
ThermoFluid.BaseClasses.MediumModels.Common.BridgmansTables bt;
equation
dpro = ThermoFluid.BaseClasses.MediumModels.SteamIF97.extraDerivs_pT(p[1],T[1]);
bt.p = p[1];
bt.T = T[1];
bt.v = 1/pro[1].d;
bt.s = pro[1].s;
bt.cp = pro[1].cp;
bt.alpha = dpro.alpha;
bt.gamma = dpro.gamma;
derOfsByTAtConstantv =  bt.dsv/bt.dTv;
                ...
end BridgmansTablesForWater;
                

Components

TypeNameDefaultDescription
SI.SpecificVolumevSpecific volume
SI.PressurepPressure
SI.TemperatureTTemperature
SI.SpecificEntropysSpecific entropy
SI.SpecificHeatCapacitycpHeat capacity at constant pressure
IsobaricVolumeExpansionCoefficientalphaIsobaric volume expansion coefficient
IsothermalCompressibilitygammaIsothermal compressibility
RealdTp1Coefficient in Bridgmans table, see info for usage
RealdpT-dTpCoefficient in Bridgmans table, see info for usage
Realdvpalpha*vCoefficient in Bridgmans table, see info for usage
Realdpv-dvpCoefficient in Bridgmans table, see info for usage
Realdspcp/TCoefficient in Bridgmans table, see info for usage
Realdps-dspCoefficient in Bridgmans table, see info for usage
Realdupcp - alpha*p*vCoefficient in Bridgmans table, see info for usage
Realdpu-dupCoefficient in Bridgmans table, see info for usage
RealdhpcpCoefficient in Bridgmans table, see info for usage
Realdph-dhpCoefficient in Bridgmans table, see info for usage
Realdfp-s - alpha*p*vCoefficient in Bridgmans table, see info for usage
Realdpf-dfpCoefficient in Bridgmans table, see info for usage
Realdgp-sCoefficient in Bridgmans table, see info for usage
Realdpg-dgpCoefficient in Bridgmans table, see info for usage
RealdvTgamma*vCoefficient in Bridgmans table, see info for usage
RealdTv-dvTCoefficient in Bridgmans table, see info for usage
RealdsTalpha*vCoefficient in Bridgmans table, see info for usage
RealdTs-dsTCoefficient in Bridgmans table, see info for usage
RealduTalpha*T*v - gamma*p*vCoefficient in Bridgmans table, see info for usage
RealdTu-duTCoefficient in Bridgmans table, see info for usage
RealdhT-v + alpha*T*vCoefficient in Bridgmans table, see info for usage
RealdTh-dhTCoefficient in Bridgmans table, see info for usage
RealdfT-gamma*p*vCoefficient in Bridgmans table, see info for usage
RealdTf-dfTCoefficient in Bridgmans table, see info for usage
RealdgT-vCoefficient in Bridgmans table, see info for usage
RealdTg-dgTCoefficient in Bridgmans table, see info for usage
Realdsvalpha*alpha*v*v - gamma*v*cp/TCoefficient in Bridgmans table, see info for usage
Realdvs-dsvCoefficient in Bridgmans table, see info for usage
RealduvT*alpha*alpha*v*v - gamma*v*cpCoefficient in Bridgmans table, see info for usage
Realdvu-duvCoefficient in Bridgmans table, see info for usage
RealdhvT*alpha*alpha*v*v - alpha*v*v - gamma*v*cpCoefficient in Bridgmans table, see info for usage
Realdvh-dhvCoefficient in Bridgmans table, see info for usage
Realdfvgamma*v*sCoefficient in Bridgmans table, see info for usage
Realdvf-dfvCoefficient in Bridgmans table, see info for usage
Realdgvgamma*v*s - alpha*v*vCoefficient in Bridgmans table, see info for usage
Realdvg-dgvCoefficient in Bridgmans table, see info for usage
Realdusdsv*pCoefficient in Bridgmans table, see info for usage
Realdsu-dusCoefficient in Bridgmans table, see info for usage
Realdhs-v*cp/TCoefficient in Bridgmans table, see info for usage
Realdsh-dhsCoefficient in Bridgmans table, see info for usage
Realdfsalpha*v*s + dusCoefficient in Bridgmans table, see info for usage
Realdsf-dfsCoefficient in Bridgmans table, see info for usage
Realdgsalpha*v*s - v*cp/TCoefficient in Bridgmans table, see info for usage
Realdsg-dgsCoefficient in Bridgmans table, see info for usage
Realdhup*alpha*v*v + gamma*v*cp*p - v*cp - p*T*alpha*alpha*v*vCoefficient in Bridgmans table, see info for usage
Realduh-dhuCoefficient in Bridgmans table, see info for usage
Realdfus*T*alpha*v - gamma*v*cp*p - gamma*v*s*p + p*T*alpha*alpha*v*vCoefficient in Bridgmans table, see info for usage
Realduf-dfuCoefficient in Bridgmans table, see info for usage
Realdgualpha*v*v*p + alpha*v*s*T - v*cp - gamma*v*s*pCoefficient in Bridgmans table, see info for usage
Realdug-dguCoefficient in Bridgmans table, see info for usage
Realdfh(s - v*alpha*p)*(v - v*alpha*T) - gamma*v*cp*pCoefficient in Bridgmans table, see info for usage
Realdhf-dfhCoefficient in Bridgmans table, see info for usage
Realdghalpha*v*s*T - v*(s + cp)Coefficient in Bridgmans table, see info for usage
Realdhg-dghCoefficient in Bridgmans table, see info for usage
Realdfggamma*v*s*p - v*s - alpha*v*v*pCoefficient in Bridgmans table, see info for usage
Realdgf-dfgCoefficient in Bridgmans table, see info for usage