Package Modelica.Media.Common provides records and functions shared by many of the property sub-packages. High accuracy fluid property models share a lot of common structure, even if the actual models are different. Common data structures and computations shared by these property models are collected in this library.
Extends from Modelica.Icons.Package
(Icon for standard packages).
Name | Description |
---|---|
AuxiliaryProperties | Intermediate property data record |
BridgmansTables | Calculates all entries in Bridgmans tables if first seven variables given |
cv2Phase | Compute isochoric specific heat capacity inside the two-phase region |
cvdpT2Phase | Compute isochoric specific heat capacity inside the two-phase region and derivative of pressure w.r.t. temperature |
DerDensityByEntropy |   |
DerEnergyByMoles |   |
DerEnergyByPressure |   |
DerEntropyByMoles |   |
DerEntropyByPressure |   |
DerEntropyByTemperature |   |
DerPressureByDensity |   |
DerPressureBySpecificVolume |   |
DerPressureByTemperature |   |
DerVolumeByMoles |   |
DerVolumeByPressure |   |
DerVolumeByTemperature |   |
ExtraDerivatives | Additional thermodynamic derivatives |
FundamentalConstants | Constants of the medium |
Gibbs2_dT | Function to calculate analytic derivatives for computing p given d and T |
Gibbs2_ph | Function to calculate analytic derivatives for computing T given p and h |
Gibbs2_ps | Function to calculate analytic derivatives for computing d and t given p and s |
GibbsDerivs | Derivatives of dimensionless Gibbs-function w.r.t. dimensionless pressure and temperature |
GibbsDerivs2 | Derivatives of Gibbs function w.r.t. pressure and temperature |
gibbsToBoundaryProps | Calculate phase boundary property record from dimensionless Gibbs function |
gibbsToBridgmansTables | Calculates base coefficients for Bridgman's tables from gibbs enthalpy |
gibbsToExtraDerivs | Compute additional thermodynamic derivatives from dimensionless Gibbs function |
Helmholtz_ph | Function to calculate analytic derivatives for computing d and t given p and h |
Helmholtz_ps | Function to calculate analytic derivatives for computing d and t given p and s |
Helmholtz_pT | Function to calculate analytic derivatives for computing d and t given p and t |
HelmholtzDerivs | Derivatives of dimensionless Helmholtz-function w.r.t. dimensionless pressure, density and temperature |
helmholtzToBoundaryProps | Calculate phase boundary property record from dimensionless Helmholtz function |
helmholtzToBridgmansTables | Calculates base coefficients for Bridgmans tables from Helmholtz energy |
helmholtzToExtraDerivs | Compute additional thermodynamic derivatives from dimensionless Helmholtz function |
IF97BaseTwoPhase | Intermediate property data record for IF 97 |
IF97PhaseBoundaryProperties | Thermodynamic base properties on the phase boundary for IF97 steam tables |
IsenthalpicExponent |   |
IsentropicExponent |   |
IsobaricVolumeExpansionCoefficient |   |
IsochoricPressureCoefficient |   |
IsothermalCompressibility |   |
JouleThomsonCoefficient |   |
MolarEnthalpy |   |
MolarFlowRate |   |
MolarReactionRate |   |
NewtonDerivatives_dT | Derivatives for fast inverse calculations of Gibbs function |
NewtonDerivatives_ph | Derivatives for fast inverse calculations of Helmholtz functions: p & h |
NewtonDerivatives_ps | Derivatives for fast inverse calculation of Helmholtz functions: p & s |
NewtonDerivatives_pT | Derivatives for fast inverse calculations of Helmholtz functions:p & T |
OneNonLinearEquation … | Determine solution of a non-linear algebraic equation in one unknown without derivatives in a reliable and efficient way |
PhaseBoundaryProperties | Thermodynamic base properties on the phase boundary |
Rate |   |
SaturationBoundaryProperties | Properties on both phase boundaries, including some derivatives |
SaturationProperties | Properties in the two phase region |
smoothStep | Approximation of a general step, such that the characteristic is continuous and differentiable |
ThermoFluidSpecial … | Property records used by the ThermoFluid library |
TwoPhaseTransportProps | Defines properties on both phase boundaries, needed in the two phase region |
Type | Name | Value | Description |
---|---|---|---|
Area | AMAX | 100000 | Maximal init area |
Area | AMIN | MINPOS | Minimal init area |
Area | ANOM | 1 | Nominal init area |
Pressure | COMPPMAX | 1e+8 | Maximal init pressure |
Pressure | COMPPMIN | -1 * MINPOS | Minimal init pressure |
Pressure | COMPPNOM | 100000 | Nominal init pressure |
SpecificHeatCapacity | CPMAX | 1000000 | Maximal init specific heat capacity |
SpecificHeatCapacity | CPMIN | MINPOS | Minimal init specific heat capacity |
SpecificHeatCapacity | CPNOM | 1000 | Nominal init specific heat capacity |
Density | DMAX | 30000 | Maximal init density |
Density | DMIN | 1e-6 | Minimal init density |
Density | DNOM | 1 | Nominal init density |
Energy | EMAX | 1e+10 | Maximal init energy |
Energy | EMIN | -1e+10 | Minimal init energy |
Energy | ENOM | 1000 | Nominal init energy |
DynamicViscosity | ETAMAX | 1e+8 | Maximal init dynamic viscosity |
DynamicViscosity | ETAMIN | MINPOS | Minimal init dynamic viscosity |
DynamicViscosity | ETANOM | 100 | Nominal init dynamic viscosity |
MomentumFlux | GMAX | 1e+8 | Maximal init momentum flux |
MomentumFlux | GMIN | -1e+8 | Minimal init momentum flux |
MomentumFlux | GNOM | 1 | Nominal init momentum flux |
RatioOfSpecificHeatCapacities | KAPPAMAX | 1.7 | Maximal init isentropic exponent |
RatioOfSpecificHeatCapacities | KAPPAMIN | 1 | Minimal init isentropic exponent |
RatioOfSpecificHeatCapacities | KAPPANOM | 1.2 | Nominal init isentropic exponent |
ThermalConductivity | LAMMAX | 1000 | Maximal thermal conductivity |
ThermalConductivity | LAMMIN | MINPOS | Minimal thermal conductivity |
ThermalConductivity | LAMNOM | 1 | Nominal thermal conductivity |
ThermalConductivity | LMAX | 500 | Maximal init thermal conductivity |
ThermalConductivity | LMIN | MINPOS | Minimal init thermal conductivity |
ThermalConductivity | LNOM | 1 | Nominal init thermal conductivity |
MassFraction | MASSXMAX | 1 | Maximal init mass fraction |
MassFraction | MASSXMIN | -1 * MINPOS | Minimal init mass fraction |
MassFraction | MASSXNOM | 0.1 | Nominal init mass fraction |
MassFlowRate | MDOTMAX | 100000 | Maximal init mass flow rate |
MassFlowRate | MDOTMIN | -100000 | Minimal init mass flow rate |
MassFlowRate | MDOTNOM | 1 | Nominal init mass flow rate |
Real | MINPOS | 1e-9 | Minimal value for physical variables which are always > 0.0 |
Mass | MMAX | 1e+8 | Maximal init mass |
Mass | MMIN | -1 * MINPOS | Minimal init mass |
MolarMass | MMMAX | 250 | Maximal initial molar mass |
MolarMass | MMMIN | 0.001 | Minimal initial molar mass |
MolarMass | MMNOM | 0.2 | Nominal initial molar mass |
Mass | MNOM | 1 | Nominal init mass |
MoleFraction | MOLEYMAX | 1 | Maximal init mole fraction |
MoleFraction | MOLEYMIN | -1 * MINPOS | Minimal init mole fraction |
MoleFraction | MOLEYNOM | 0.1 | Nominal init mole fraction |
AmountOfSubstance | MOLMAX | 1e+8 | Maximal Mole Number |
AmountOfSubstance | MOLMIN | -1 * MINPOS | Minimal Mole Number |
AmountOfSubstance | MOLNOM | 1 | Nominal Mole Number |
Pressure | PMAX | 1e+8 | Maximal init pressure |
Pressure | PMIN | 10000 | Minimal init pressure |
Pressure | PNOM | 100000 | Nominal init pressure |
Power | POWMAX | 1e+8 | Maximal init power or heat |
Power | POWMIN | -1e+8 | Minimal init power or heat |
Power | POWNOM | 1000 | Nominal init power or heat |
SpecificEnergy | SEMAX | 1e+8 | Maximal init specific energy |
SpecificEnergy | SEMIN | -1e+8 | Minimal init specific energy |
SpecificEnergy | SENOM | 1000000 | Nominal init specific energy |
SpecificEnthalpy | SHMAX | 1e+8 | Maximal init specific enthalpy |
SpecificEnthalpy | SHMIN | -1e+8 | Minimal init specific enthalpy |
SpecificEnthalpy | SHNOM | 1000000 | Nominal init specific enthalpy |
Entropy | SMAX | 1000000 | Maximal init entropy |
Entropy | SMIN | -1000000 | Minimal init entropy |
Entropy | SNOM | 1000 | Nominal init entropy |
SpecificEntropy | SSMAX | 1000000 | Maximal init specific entropy |
SpecificEntropy | SSMIN | -1000000 | Minimal init specific entropy |
SpecificEntropy | SSNOM | 1000 | Nominal init specific entropy |
Temperature | TMAX | 6000 | Maximal init temperature |
Temperature | TMIN | 1 | Minimal init temperature |
Temperature | TNOM | 320 | Nominal init temperature |
Velocity | VELMAX | 100000 | Maximal init speed |
Velocity | VELMIN | -100000 | Minimal init speed |
Velocity | VELNOM | 1 | Nominal init speed |
Volume | VMAX | 100000 | Maximal init volume |
Volume | VMIN | 0 | Minimal init volume |
Volume | VNOM | 0.001 | Nominal init volume |
Extends from Real
.
Name | Value |
---|---|
quantity | "Rate" |
unit | "s-1" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "MolarFlowRate" |
unit | "mol/s" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "MolarReactionRate" |
unit | "mol/(m3.s)" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "MolarEnthalpy" |
unit | "J/mol" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerDensityByEntropy" |
unit | "kg2.K/(m3.J)" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerEnergyByPressure" |
unit | "J/Pa" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerEnergyByMoles" |
unit | "J/mol" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerEntropyByTemperature" |
unit | "J/K2" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerEntropyByPressure" |
unit | "J/(K.Pa)" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerEntropyByMoles" |
unit | "J/(mol.K)" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerPressureByDensity" |
unit | "Pa.m3/kg" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerPressureBySpecificVolume" |
unit | "Pa.kg/m3" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerPressureByTemperature" |
unit | "Pa/K" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerVolumeByTemperature" |
unit | "m3/K" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerVolumeByPressure" |
unit | "m3/Pa" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "DerVolumeByMoles" |
unit | "m3/mol" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "IsenthalpicExponent" |
unit | "1" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "IsentropicExponent" |
unit | "1" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "IsobaricVolumeExpansionCoefficient" |
unit | "1/K" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "IsochoricPressureCoefficient" |
unit | "1/K" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "IsothermalCompressibility" |
unit | "1/Pa" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
Extends from Real
.
Name | Value |
---|---|
quantity | "JouleThomsonCoefficient" |
unit | "K/Pa" |
min | -Modelica.Constants.inf |
max | Modelica.Constants.inf |
start | 0. |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Temp_K | T | Temperature |
Density | d | Density |
Pressure | p | Pressure |
SpecificEnergy | u | Specific inner energy |
SpecificEnthalpy | h | Specific enthalpy |
SpecificEntropy | s | Specific entropy |
SpecificHeatCapacity | cp | Heat capacity at constant pressure |
SpecificHeatCapacity | cv | Heat capacity at constant volume |
SpecificHeatCapacity | R | Gas constant |
RatioOfSpecificHeatCapacities | kappa | Isentropic expansion coefficient |
PhaseBoundaryProperties | liq | Thermodynamic base properties on the boiling curve |
PhaseBoundaryProperties | vap | Thermodynamic base properties on the dew curve |
Real | dpT | Derivative of saturation pressure w.r.t. temperature |
MassFraction | x | Vapour mass fraction |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Temp_K | T | Saturation temperature |
Density | dl | Liquid density |
Density | dv | Vapour density |
SpecificEnthalpy | hl | Liquid specific enthalpy |
SpecificEnthalpy | hv | Vapour specific enthalpy |
Real | dTp | Derivative of temperature w.r.t. saturation pressure |
Real | ddldp | Derivative of density along boiling curve |
Real | ddvdp | Derivative of density along dew curve |
Real | dhldp | Derivative of specific enthalpy along boiling curve |
Real | dhvdp | Derivative of specific enthalpy along dew curve |
MassFraction | x | Vapour mass fraction |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Integer | phase | Phase: 2 for two-phase, 1 for one phase, 0 if unknown |
Integer | region | IF 97 region |
Pressure | p | Pressure |
Temperature | T | Temperature |
SpecificEnthalpy | h | Specific enthalpy |
SpecificHeatCapacity | R | Gas constant |
SpecificHeatCapacity | cp | Specific heat capacity |
SpecificHeatCapacity | cv | Specific heat capacity |
Density | rho | Density |
SpecificEntropy | s | Specific entropy |
DerPressureByTemperature | pt | Derivative of pressure w.r.t. temperature |
DerPressureByDensity | pd | Derivative of pressure w.r.t. density |
Real | vt | Derivative of specific volume w.r.t. temperature |
Real | vp | Derivative of specific volume w.r.t. pressure |
Real | x | Dryness fraction |
Real | dpT | dp/dT derivative of saturation curve |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Boolean | region3boundary | True if boundary between 2-phase and region 3 |
SpecificHeatCapacity | R | Specific heat capacity |
Temperature | T | Temperature |
Density | d | Density |
SpecificEnthalpy | h | Specific enthalpy |
SpecificEntropy | s | Specific entropy |
SpecificHeatCapacity | cp | Heat capacity at constant pressure |
SpecificHeatCapacity | cv | Heat capacity at constant volume |
DerPressureByTemperature | dpT | dp/dT derivative of saturation curve |
DerPressureByTemperature | pt | Derivative of pressure w.r.t. temperature |
DerPressureByDensity | pd | Derivative of pressure w.r.t. density |
Real | vt | Derivative of specific volume w.r.t. temperature |
Real | vp | Derivative of specific volume w.r.t. pressure |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature |
SpecificHeatCapacity | R | Specific heat capacity |
Real | pi | Dimensionless pressure |
Real | tau | Dimensionless temperature |
Real | g | Dimensionless Gibbs-function |
Real | gpi | Derivative of g w.r.t. pi |
Real | gpipi | 2nd derivative of g w.r.t. pi |
Real | gtau | Derivative of g w.r.t. tau |
Real | gtautau | 2nd derivative of g w.r.t. tau |
Real | gtaupi | Mixed derivative of g w.r.t. pi and tau |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Density | d | Density |
Temperature | T | Temperature |
SpecificHeatCapacity | R | Specific heat capacity |
Real | delta | Dimensionless density |
Real | tau | Dimensionless temperature |
Real | f | Dimensionless Helmholtz-function |
Real | fdelta | Derivative of f w.r.t. delta |
Real | fdeltadelta | 2nd derivative of f w.r.t. delta |
Real | ftau | Derivative of f w.r.t. tau |
Real | ftautau | 2nd derivative of f w.r.t. tau |
Real | fdeltatau | Mixed derivative of f w.r.t. delta and tau |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Density | d_vap | Density on the dew line |
Density | d_liq | Density on the bubble line |
DynamicViscosity | eta_vap | Dynamic viscosity on the dew line |
DynamicViscosity | eta_liq | Dynamic viscosity on the bubble line |
ThermalConductivity | lam_vap | Thermal conductivity on the dew line |
ThermalConductivity | lam_liq | Thermal conductivity on the bubble line |
SpecificHeatCapacity | cp_vap | Cp on the dew line |
SpecificHeatCapacity | cp_liq | Cp on the bubble line |
MassFraction | x | Steam quality |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Density | d | Density |
SpecificEnthalpy | h | Specific enthalpy |
SpecificEnergy | u | Inner energy |
SpecificEntropy | s | Specific entropy |
SpecificHeatCapacity | cp | Heat capacity at constant pressure |
SpecificHeatCapacity | cv | Heat capacity at constant volume |
DerPressureByTemperature | pt | Derivative of pressure w.r.t. temperature |
DerPressureByDensity | pd | Derivative of pressure w.r.t. density |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Pressure | p | Pressure |
SpecificEnthalpy | h | Specific enthalpy |
DerPressureByDensity | pd | Derivative of pressure w.r.t. density |
DerPressureByTemperature | pt | Derivative of pressure w.r.t. temperature |
Real | hd | Derivative of specific enthalpy w.r.t. density |
Real | ht | Derivative of specific enthalpy w.r.t. temperature |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
DerPressureByDensity | pd | Derivative of pressure w.r.t. density |
DerPressureByTemperature | pt | Derivative of pressure w.r.t. temperature |
Real | sd | Derivative of specific entropy w.r.t. density |
Real | st | Derivative of specific entropy w.r.t. temperature |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Pressure | p | Pressure |
DerPressureByDensity | pd | Derivative of pressure w.r.t. density |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
IsentropicExponent | kappa | Isentropic expansion coefficient |
IsenthalpicExponent | theta | Isenthalpic exponent |
IsobaricVolumeExpansionCoefficient | alpha | Isobaric volume expansion coefficient |
IsochoricPressureCoefficient | beta | Isochoric pressure coefficient |
IsothermalCompressibility | gamma | Isothermal compressibility |
JouleThomsonCoefficient | mu | Joule-Thomson coefficient |
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;
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
SpecificVolume | v | Specific volume |
Pressure | p | Pressure |
Temperature | T | Temperature |
SpecificEntropy | s | Specific entropy |
SpecificHeatCapacity | cp | Heat capacity at constant pressure |
IsobaricVolumeExpansionCoefficient | alpha | Isobaric volume expansion coefficient |
IsothermalCompressibility | gamma | Isothermal compressibility |
Real | dTp | Coefficient in Bridgmans table, see info for usage |
Real | dpT | Coefficient in Bridgmans table, see info for usage |
Real | dvp | Coefficient in Bridgmans table, see info for usage |
Real | dpv | Coefficient in Bridgmans table, see info for usage |
Real | dsp | Coefficient in Bridgmans table, see info for usage |
Real | dps | Coefficient in Bridgmans table, see info for usage |
Real | dup | Coefficient in Bridgmans table, see info for usage |
Real | dpu | Coefficient in Bridgmans table, see info for usage |
Real | dhp | Coefficient in Bridgmans table, see info for usage |
Real | dph | Coefficient in Bridgmans table, see info for usage |
Real | dfp | Coefficient in Bridgmans table, see info for usage |
Real | dpf | Coefficient in Bridgmans table, see info for usage |
Real | dgp | Coefficient in Bridgmans table, see info for usage |
Real | dpg | Coefficient in Bridgmans table, see info for usage |
Real | dvT | Coefficient in Bridgmans table, see info for usage |
Real | dTv | Coefficient in Bridgmans table, see info for usage |
Real | dsT | Coefficient in Bridgmans table, see info for usage |
Real | dTs | Coefficient in Bridgmans table, see info for usage |
Real | duT | Coefficient in Bridgmans table, see info for usage |
Real | dTu | Coefficient in Bridgmans table, see info for usage |
Real | dhT | Coefficient in Bridgmans table, see info for usage |
Real | dTh | Coefficient in Bridgmans table, see info for usage |
Real | dfT | Coefficient in Bridgmans table, see info for usage |
Real | dTf | Coefficient in Bridgmans table, see info for usage |
Real | dgT | Coefficient in Bridgmans table, see info for usage |
Real | dTg | Coefficient in Bridgmans table, see info for usage |
Real | dsv | Coefficient in Bridgmans table, see info for usage |
Real | dvs | Coefficient in Bridgmans table, see info for usage |
Real | duv | Coefficient in Bridgmans table, see info for usage |
Real | dvu | Coefficient in Bridgmans table, see info for usage |
Real | dhv | Coefficient in Bridgmans table, see info for usage |
Real | dvh | Coefficient in Bridgmans table, see info for usage |
Real | dfv | Coefficient in Bridgmans table, see info for usage |
Real | dvf | Coefficient in Bridgmans table, see info for usage |
Real | dgv | Coefficient in Bridgmans table, see info for usage |
Real | dvg | Coefficient in Bridgmans table, see info for usage |
Real | dus | Coefficient in Bridgmans table, see info for usage |
Real | dsu | Coefficient in Bridgmans table, see info for usage |
Real | dhs | Coefficient in Bridgmans table, see info for usage |
Real | dsh | Coefficient in Bridgmans table, see info for usage |
Real | dfs | Coefficient in Bridgmans table, see info for usage |
Real | dsf | Coefficient in Bridgmans table, see info for usage |
Real | dgs | Coefficient in Bridgmans table, see info for usage |
Real | dsg | Coefficient in Bridgmans table, see info for usage |
Real | dhu | Coefficient in Bridgmans table, see info for usage |
Real | duh | Coefficient in Bridgmans table, see info for usage |
Real | dfu | Coefficient in Bridgmans table, see info for usage |
Real | duf | Coefficient in Bridgmans table, see info for usage |
Real | dgu | Coefficient in Bridgmans table, see info for usage |
Real | dug | Coefficient in Bridgmans table, see info for usage |
Real | dfh | Coefficient in Bridgmans table, see info for usage |
Real | dhf | Coefficient in Bridgmans table, see info for usage |
Real | dgh | Coefficient in Bridgmans table, see info for usage |
Real | dhg | Coefficient in Bridgmans table, see info for usage |
Real | dfg | Coefficient in Bridgmans table, see info for usage |
Real | dgf | Coefficient in Bridgmans table, see info for usage |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
MolarHeatCapacity | R_bar |   |
SpecificHeatCapacity | R |   |
MolarMass | MM |   |
MolarDensity | rhored |   |
Temperature | Tred |   |
AbsolutePressure | pred |   |
SpecificEnthalpy | h_off |   |
SpecificEntropy | s_off |   |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature |
SpecificEnthalpy | h | Specific enthalpy |
SpecificHeatCapacity | R | Gas constant |
SpecificHeatCapacity | cp | Specific heat capacity |
SpecificHeatCapacity | cv | Specific heat capacity |
Density | rho | Density |
SpecificEntropy | s | Specific entropy |
DerPressureByTemperature | pt | Derivative of pressure w.r.t. temperature |
DerPressureByDensity | pd | Derivative of pressure w.r.t. density |
Real | vt | Derivative of specific volume w.r.t. temperature |
Real | vp | Derivative of specific volume w.r.t. pressure |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature |
SpecificHeatCapacity | R | Specific heat capacity |
Real | pi | Dimensionless pressure |
Real | theta | Dimensionless temperature |
Real | g | Gibbs function |
Real | gp | Derivative of g w.r.t. p |
Real | gpp | 2nd derivative of g w.r.t. p |
Real | gT | Derivative of g w.r.t. T |
Real | gTT | 2nd derivative of g w.r.t. T |
Real | gTp | Mixed derivative of g w.r.t. T and p |
This icon is indicates a record.
Extends from Modelica.Icons.Record
(Icon for records).
Type | Name | Description |
---|---|---|
SpecificVolume | v | Specific volume |
Real | vp | Derivative of specific volume w.r.t. pressure |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
GibbsDerivs | g | Dimensionless derivatives of Gibbs function |
Type | Name | Description |
---|---|---|
SpecificVolume | v | Specific volume |
Pressure | p | Pressure |
Temperature | T | Temperature |
SpecificEntropy | s | Specific entropy |
SpecificHeatCapacity | cp | Heat capacity at constant pressure |
IsobaricVolumeExpansionCoefficient | alpha | Isobaric volume expansion coefficient |
IsothermalCompressibility | gamma | Isothermal compressibility |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
HelmholtzDerivs | f | Dimensionless derivatives of Helmholtz function |
Type | Name | Description |
---|---|---|
SpecificVolume | v | Specific volume |
Pressure | p | Pressure |
Temperature | T | Temperature |
SpecificEntropy | s | Specific entropy |
SpecificHeatCapacity | cp | Heat capacity at constant pressure |
IsobaricVolumeExpansionCoefficient | alpha | Isobaric volume expansion coefficient |
IsothermalCompressibility | gamma | Isothermal compressibility |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
GibbsDerivs | g | Dimensionless derivatives of Gibbs function |
Type | Name | Description |
---|---|---|
PhaseBoundaryProperties | sat | Phase boundary properties |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
HelmholtzDerivs | f | Dimensionless derivatives of Helmholtz function |
Type | Name | Description |
---|---|---|
PhaseBoundaryProperties | sat | Phase boundary property record |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
PhaseBoundaryProperties | liq | Properties on the boiling curve |
PhaseBoundaryProperties | vap | Properties on the condensation curve |
MassFraction | x | Vapour mass fraction |
Temperature | T | Temperature |
Pressure | p | Properties |
Type | Name | Description |
---|---|---|
SpecificHeatCapacity | cv | Isochoric specific heat capacity |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
PhaseBoundaryProperties | liq | Properties on the boiling curve |
PhaseBoundaryProperties | vap | Properties on the condensation curve |
MassFraction | x | Vapour mass fraction |
Temperature | T | Temperature |
Pressure | p | Properties |
Type | Name | Description |
---|---|---|
SpecificHeatCapacity | cv | Isochoric specific heat capacity |
Real | dpT | Derivative of pressure w.r.t. temperature |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
GibbsDerivs | g | Dimensionless derivatives of Gibbs function |
Type | Name | Description |
---|---|---|
ExtraDerivatives | dpro | Additional property derivatives |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
HelmholtzDerivs | f | Dimensionless derivatives of Helmholtz function |
Type | Name | Description |
---|---|---|
ExtraDerivatives | dpro | Additional property derivatives |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
HelmholtzDerivs | f | Dimensionless derivatives of Helmholtz function |
Type | Name | Description |
---|---|---|
NewtonDerivatives_ph | nderivs | Derivatives for Newton iteration to calculate d and t from p and h |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
HelmholtzDerivs | f | Dimensionless derivatives of Helmholtz function |
Type | Name | Description |
---|---|---|
NewtonDerivatives_pT | nderivs | Derivatives for Newton iteration to compute d and t from p and t |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
HelmholtzDerivs | f | Dimensionless derivatives of Helmholtz function |
Type | Name | Description |
---|---|---|
NewtonDerivatives_ps | nderivs | Derivatives for Newton iteration to compute d and t from p and s |
This function is used to approximate the equation
y = if x > 0 then y1 else y2;
by a smooth characteristic, so that the expression is continuous and differentiable:
y = smooth(1, if x > x_small then y1 else if x < -x_small then y2 else f(y1, y2));
In the region -x_small < x < x_small a 2nd order polynomial is used for a smooth transition from y1 to y2.
If mass fractions X[:] are approximated with this function then this can be performed for all nX mass fractions, instead of applying it for nX-1 mass fractions and computing the last one by the mass fraction constraint sum(X)=1. The reason is that the approximating function has the property that sum(X) = 1, provided sum(X_a) = sum(X_b) = 1 (and y1=X_a[i], y2=X_b[i]). This can be shown by evaluating the approximating function in the abs(x) < x_small region (otherwise X is either X_a or X_b):
X[1] = smoothStep(x, X_a[1] , X_b[1] , x_small); X[2] = smoothStep(x, X_a[2] , X_b[2] , x_small); ... X[nX] = smoothStep(x, X_a[nX], X_b[nX], x_small);
or
X[1] = c*(X_a[1] - X_b[1]) + (X_a[1] + X_b[1])/2 X[2] = c*(X_a[2] - X_b[2]) + (X_a[2] + X_b[2])/2; ... X[nX] = c*(X_a[nX] - X_b[nX]) + (X_a[nX] + X_b[nX])/2; c = (x/x_small)*((x/x_small)^2 - 3)/4
Summing all mass fractions together results in
sum(X) = c*(sum(X_a) - sum(X_b)) + (sum(X_a) + sum(X_b))/2 = c*(1 - 1) + (1 + 1)/2 = 1
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
Real | x | Abscissa value |
Real | y1 | Ordinate value for x > 0 |
Real | y2 | Ordinate value for x < 0 |
Real | x_small | Approximation of step for -x_small <= x <= x_small; x_small > 0 required |
Type | Name | Description |
---|---|---|
Real | y | Ordinate value to approximate y = if x > 0 then y1 else y2 |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
GibbsDerivs2 | g | Dimensionless derivatives of Gibbs function |
Type | Name | Description |
---|---|---|
NewtonDerivatives_ph | nderivs | Derivatives for Newton iteration to calculate d and t from p and h |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
GibbsDerivs2 | g | Dimensionless derivatives of Gibbs function |
Type | Name | Description |
---|---|---|
NewtonDerivatives_dT | nderivs | Derivatives for Newton iteration to compute p from d and T |
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function
(Icon for functions).
Type | Name | Description |
---|---|---|
GibbsDerivs2 | g | Dimensionless derivatives of Gibbs function |
Type | Name | Description |
---|---|---|
NewtonDerivatives_ps | nderivs | Derivatives for Newton iteration to compute T from p and s |
Generated 2018-12-12 12:13:47 EST by MapleSim.