packageCommon

Data structures and fundamental functions for fluid properties

Extends from Modelica.Icons.Package (Icon for standard packages).

Information

Package description

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.

Parameters

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

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