packageCommon

Data structures and fundamental functions for fluid properties

Information

Package description   
This package 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.  
This package is copied from package Modelica.Media.Common in Modelica package version 3.2.2.  
## Copyright © EDF 2002 - 2025

## ThermoSysPro Version 4.2

Parameters

TypeNameDefaultDescription
RealMINPOS1.0e-9Minimal value for physical variables which are always > 0.0
Units.SI.AreaAMINMINPOSMinimal init area
Units.SI.AreaAMAX1.0e5Maximal init area
Units.SI.AreaANOM1.0Nominal init area
Units.SI.AmountOfSubstanceMOLMIN-1.0*MINPOSMinimal Mole Number
Units.SI.AmountOfSubstanceMOLMAX1.0e8Maximal Mole Number
Units.SI.AmountOfSubstanceMOLNOM1.0Nominal Mole Number
Units.SI.DensityDMIN1e-6Minimal init density
Units.SI.DensityDMAX30.0e3Maximal init density
Units.SI.DensityDNOM1.0Nominal init density
Units.SI.ThermalConductivityLAMMINMINPOSMinimal thermal conductivity
Units.SI.ThermalConductivityLAMNOM1.0Nominal thermal conductivity
Units.SI.ThermalConductivityLAMMAX1000.0Maximal thermal conductivity
Units.SI.DynamicViscosityETAMINMINPOSMinimal init dynamic viscosity
Units.SI.DynamicViscosityETAMAX1.0e8Maximal init dynamic viscosity
Units.SI.DynamicViscosityETANOM100.0Nominal init dynamic viscosity
Units.SI.EnergyEMIN-1.0e10Minimal init energy
Units.SI.EnergyEMAX1.0e10Maximal init energy
Units.SI.EnergyENOM1.0e3Nominal init energy
Units.SI.EntropySMIN-1.0e6Minimal init entropy
Units.SI.EntropySMAX1.0e6Maximal init entropy
Units.SI.EntropySNOM1.0e3Nominal init entropy
Units.SI.MassFlowRateMDOTMIN-1.0e5Minimal init mass flow rate
Units.SI.MassFlowRateMDOTMAX1.0e5Maximal init mass flow rate
Units.SI.MassFlowRateMDOTNOM1.0Nominal init mass flow rate
Units.SI.MassFractionMASSXMIN-1.0*MINPOSMinimal init mass fraction
Units.SI.MassFractionMASSXMAX1.0Maximal init mass fraction
Units.SI.MassFractionMASSXNOM0.1Nominal init mass fraction
Units.SI.MassMMIN-1.0*MINPOSMinimal init mass
Units.SI.MassMMAX1.0e8Maximal init mass
Units.SI.MassMNOM1.0Nominal init mass
Units.SI.MolarMassMMMIN0.001Minimal initial molar mass
Units.SI.MolarMassMMMAX250.0Maximal initial molar mass
Units.SI.MolarMassMMNOM0.2Nominal initial molar mass
Units.SI.MoleFractionMOLEYMIN-1.0*MINPOSMinimal init mole fraction
Units.SI.MoleFractionMOLEYMAX1.0Maximal init mole fraction
Units.SI.MoleFractionMOLEYNOM0.1Nominal init mole fraction
Units.SI.MomentumFluxGMIN-1.0e8Minimal init momentum flux
Units.SI.MomentumFluxGMAX1.0e8Maximal init momentum flux
Units.SI.MomentumFluxGNOM1.0Nominal init momentum flux
Units.SI.PowerPOWMIN-1.0e8Minimal init power or heat
Units.SI.PowerPOWMAX1.0e8Maximal init power or heat
Units.SI.PowerPOWNOM1.0e3Nominal init power or heat
Units.SI.PressurePMIN1.0e4Minimal init pressure
Units.SI.PressurePMAX1.0e8Maximal init pressure
Units.SI.PressurePNOM1.0e5Nominal init pressure
Units.SI.PressureCOMPPMIN-1.0*MINPOSMinimal init pressure
Units.SI.PressureCOMPPMAX1.0e8Maximal init pressure
Units.SI.PressureCOMPPNOM1.0e5Nominal init pressure
Units.SI.RatioOfSpecificHeatCapacitiesKAPPAMIN1.0Minimal init isentropic exponent
Units.SI.RatioOfSpecificHeatCapacitiesKAPPAMAX1.7Maximal init isentropic exponent
Units.SI.RatioOfSpecificHeatCapacitiesKAPPANOM1.2Nominal init isentropic exponent
Units.SI.SpecificEnergySEMIN-1.0e8Minimal init specific energy
Units.SI.SpecificEnergySEMAX1.0e8Maximal init specific energy
Units.SI.SpecificEnergySENOM1.0e6Nominal init specific energy
Units.SI.SpecificEnthalpySHMIN-1.0e8Minimal init specific enthalpy
Units.SI.SpecificEnthalpySHMAX1.0e8Maximal init specific enthalpy
Units.SI.SpecificEnthalpySHNOM1.0e6Nominal init specific enthalpy
Units.SI.SpecificEntropySSMIN-1.0e6Minimal init specific entropy
Units.SI.SpecificEntropySSMAX1.0e6Maximal init specific entropy
Units.SI.SpecificEntropySSNOM1.0e3Nominal init specific entropy
Units.SI.SpecificHeatCapacityCPMINMINPOSMinimal init specific heat capacity
Units.SI.SpecificHeatCapacityCPMAX1.0e6Maximal init specific heat capacity
Units.SI.SpecificHeatCapacityCPNOM1.0e3Nominal init specific heat capacity
Units.SI.TemperatureTMIN1.0Minimal init temperature
Units.SI.TemperatureTMAX6000.0Maximal init temperature
Units.SI.TemperatureTNOM320.0Nominal init temperature
Units.SI.ThermalConductivityLMINMINPOSMinimal init thermal conductivity
Units.SI.ThermalConductivityLMAX500.0Maximal init thermal conductivity
Units.SI.ThermalConductivityLNOM1.0Nominal init thermal conductivity
Units.SI.VelocityVELMIN-1.0e5Minimal init speed
Units.SI.VelocityVELMAX1.0e5Maximal init speed
Units.SI.VelocityVELNOM1.0Nominal init speed
Units.SI.VolumeVMIN0.0Minimal init volume
Units.SI.VolumeVMAX1.0e5Maximal init volume
Units.SI.VolumeVNOM1.0e-3Nominal init volume

Contents

NameDescription
Rate
MolarFlowRate
MolarReactionRate
MolarEnthalpy
DerDensityByEntropy
DerEnergyByPressure
DerEnergyByMoles
DerEntropyByTemperature
DerEntropyByPressure
DerEntropyByMoles
DerPressureByDensity
DerPressureBySpecificVolume
DerPressureByTemperature
DerVolumeByTemperature
DerVolumeByPressure
DerVolumeByMoles
IsenthalpicExponent
IsentropicExponent
IsobaricVolumeExpansionCoefficient
IsochoricPressureCoefficient
IsothermalCompressibility
JouleThomsonCoefficient
ThermoFluidSpecialProperty records used by the ThermoFluid library
SaturationPropertiesProperties in the two phase region
SaturationBoundaryPropertiesProperties on both phase boundaries, including some derivatives
IF97BaseTwoPhaseIntermediate property data record for IF 97
IF97PhaseBoundaryPropertiesThermodynamic base properties on the phase boundary for IF97 steam tables
GibbsDerivsDerivatives of dimensionless Gibbs-function w.r.t. dimensionless pressure and temperature
HelmholtzDerivsDerivatives of dimensionless Helmholtz-function w.r.t. dimensionless pressure, density and temperature
TwoPhaseTransportPropsDefines properties on both phase boundaries, needed in the two phase region
PhaseBoundaryPropertiesThermodynamic base properties on the phase boundary
NewtonDerivatives_phDerivatives for fast inverse calculations of Helmholtz functions: p & h
NewtonDerivatives_psDerivatives for fast inverse calculation of Helmholtz functions: p & s
NewtonDerivatives_pTDerivatives for fast inverse calculations of Helmholtz functions:p & T
ExtraDerivativesAdditional thermodynamic derivatives
BridgmansTablesCalculates all entries in Bridgmans tables if first seven variables given
FundamentalConstantsConstants of the medium
AuxiliaryPropertiesIntermediate property data record
GibbsDerivs2Derivatives of Gibbs function w.r.t. pressure and temperature
NewtonDerivatives_dTDerivatives for fast inverse calculations of Gibbs function
gibbsToBridgmansTablesCalculates base coefficients for Bridgman's tables from gibbs enthalpy
helmholtzToBridgmansTablesCalculates base coefficients for Bridgmans tables from Helmholtz energy
gibbsToBoundaryPropsCalculate phase boundary property record from dimensionless Gibbs function
helmholtzToBoundaryPropsCalculate phase boundary property record from dimensionless Helmholtz function
cv2PhaseCompute isochoric specific heat capacity inside the two-phase region
cvdpT2PhaseCompute isochoric specific heat capacity inside the two-phase region and derivative of pressure w.r.t. temperature
gibbsToExtraDerivsCompute additional thermodynamic derivatives from dimensionless Gibbs function
helmholtzToExtraDerivsCompute additional thermodynamic derivatives from dimensionless Helmholtz function
Helmholtz_phFunction to calculate analytic derivatives for computing d and t given p and h
Helmholtz_pTFunction to calculate analytic derivatives for computing d and t given p and t
Helmholtz_psFunction to calculate analytic derivatives for computing d and t given p and s
smoothStepApproximation of a general step, such that the characteristic is continuous and differentiable
Gibbs2_phFunction to calculate analytic derivatives for computing T given p and h
Gibbs2_dTFunction to calculate analytic derivatives for computing p given d and T
Gibbs2_psFunction to calculate analytic derivatives for computing d and t given p and s
OneNonLinearEquationDetermine solution of a non-linear algebraic equation in one unknown without derivatives in a reliable and efficient way

Revisions

First implemented: July, 2000  
      by Hubertus Tummescheit  
      for the ThermoFluid Library with help from Jonas Eborn and Falko Jens Wagner  
        
Code reorganization, enhanced documentation, additional functions: December, 2002  
      by Hubertus Tummescheit and move to Modelica  
                            properties library.  
Inclusion into Modelica.Media: September 2003   

Author: Hubertus Tummescheit,   
      Lund University  
      Department of Automatic Control  
      Box 118, 22100 Lund, Sweden  
      email: hubertus@control.lth.se