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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | MINPOS | 1.0e-9 | Minimal value for physical variables which are always > 0.0 |
| SI.Area | AMIN | MINPOS | Minimal init area |
| SI.Area | AMAX | 1.0e5 | Maximal init area |
| SI.Area | ANOM | 1.0 | Nominal init area |
| SI.AmountOfSubstance | MOLMIN | -1.0*MINPOS | Minimal Mole Number |
| SI.AmountOfSubstance | MOLMAX | 1.0e8 | Maximal Mole Number |
| SI.AmountOfSubstance | MOLNOM | 1.0 | Nominal Mole Number |
| SI.Density | DMIN | 1e-6 | Minimal init density |
| SI.Density | DMAX | 30.0e3 | Maximal init density |
| SI.Density | DNOM | 1.0 | Nominal init density |
| SI.ThermalConductivity | LAMMIN | MINPOS | Minimal thermal conductivity |
| SI.ThermalConductivity | LAMNOM | 1.0 | Nominal thermal conductivity |
| SI.ThermalConductivity | LAMMAX | 1000.0 | Maximal thermal conductivity |
| SI.DynamicViscosity | ETAMIN | MINPOS | Minimal init dynamic viscosity |
| SI.DynamicViscosity | ETAMAX | 1.0e8 | Maximal init dynamic viscosity |
| SI.DynamicViscosity | ETANOM | 100.0 | Nominal init dynamic viscosity |
| SI.Energy | EMIN | -1.0e10 | Minimal init energy |
| SI.Energy | EMAX | 1.0e10 | Maximal init energy |
| SI.Energy | ENOM | 1.0e3 | Nominal init energy |
| SI.Entropy | SMIN | -1.0e6 | Minimal init entropy |
| SI.Entropy | SMAX | 1.0e6 | Maximal init entropy |
| SI.Entropy | SNOM | 1.0e3 | Nominal init entropy |
| SI.MassFlowRate | MDOTMIN | -1.0e5 | Minimal init mass flow rate |
| SI.MassFlowRate | MDOTMAX | 1.0e5 | Maximal init mass flow rate |
| SI.MassFlowRate | MDOTNOM | 1.0 | Nominal init mass flow rate |
| SI.MassFraction | MASSXMIN | -1.0*MINPOS | Minimal init mass fraction |
| SI.MassFraction | MASSXMAX | 1.0 | Maximal init mass fraction |
| SI.MassFraction | MASSXNOM | 0.1 | Nominal init mass fraction |
| SI.Mass | MMIN | -1.0*MINPOS | Minimal init mass |
| SI.Mass | MMAX | 1.0e8 | Maximal init mass |
| SI.Mass | MNOM | 1.0 | Nominal init mass |
| SI.MolarMass | MMMIN | 0.001 | Minimal initial molar mass |
| SI.MolarMass | MMMAX | 250.0 | Maximal initial molar mass |
| SI.MolarMass | MMNOM | 0.2 | Nominal initial molar mass |
| SI.MoleFraction | MOLEYMIN | -1.0*MINPOS | Minimal init mole fraction |
| SI.MoleFraction | MOLEYMAX | 1.0 | Maximal init mole fraction |
| SI.MoleFraction | MOLEYNOM | 0.1 | Nominal init mole fraction |
| SI.MomentumFlux | GMIN | -1.0e8 | Minimal init momentum flux |
| SI.MomentumFlux | GMAX | 1.0e8 | Maximal init momentum flux |
| SI.MomentumFlux | GNOM | 1.0 | Nominal init momentum flux |
| SI.Power | POWMIN | -1.0e8 | Minimal init power or heat |
| SI.Power | POWMAX | 1.0e8 | Maximal init power or heat |
| SI.Power | POWNOM | 1.0e3 | Nominal init power or heat |
| SI.Pressure | PMIN | 1.0e4 | Minimal init pressure |
| SI.Pressure | PMAX | 1.0e8 | Maximal init pressure |
| SI.Pressure | PNOM | 1.0e5 | Nominal init pressure |
| SI.Pressure | COMPPMIN | -1.0*MINPOS | Minimal init pressure |
| SI.Pressure | COMPPMAX | 1.0e8 | Maximal init pressure |
| SI.Pressure | COMPPNOM | 1.0e5 | Nominal init pressure |
| SI.RatioOfSpecificHeatCapacities | KAPPAMIN | 1.0 | Minimal init isentropic exponent |
| SI.RatioOfSpecificHeatCapacities | KAPPAMAX | 1.7 | Maximal init isentropic exponent |
| SI.RatioOfSpecificHeatCapacities | KAPPANOM | 1.2 | Nominal init isentropic exponent |
| SI.SpecificEnergy | SEMIN | -1.0e8 | Minimal init specific energy |
| SI.SpecificEnergy | SEMAX | 1.0e8 | Maximal init specific energy |
| SI.SpecificEnergy | SENOM | 1.0e6 | Nominal init specific energy |
| SI.SpecificEnthalpy | SHMIN | -1.0e8 | Minimal init specific enthalpy |
| SI.SpecificEnthalpy | SHMAX | 1.0e8 | Maximal init specific enthalpy |
| SI.SpecificEnthalpy | SHNOM | 1.0e6 | Nominal init specific enthalpy |
| SI.SpecificEntropy | SSMIN | -1.0e6 | Minimal init specific entropy |
| SI.SpecificEntropy | SSMAX | 1.0e6 | Maximal init specific entropy |
| SI.SpecificEntropy | SSNOM | 1.0e3 | Nominal init specific entropy |
| SI.SpecificHeatCapacity | CPMIN | MINPOS | Minimal init specific heat capacity |
| SI.SpecificHeatCapacity | CPMAX | 1.0e6 | Maximal init specific heat capacity |
| SI.SpecificHeatCapacity | CPNOM | 1.0e3 | Nominal init specific heat capacity |
| SI.Temperature | TMIN | 1.0 | Minimal init temperature |
| SI.Temperature | TMAX | 6000.0 | Maximal init temperature |
| SI.Temperature | TNOM | 320.0 | Nominal init temperature |
| SI.ThermalConductivity | LMIN | MINPOS | Minimal init thermal conductivity |
| SI.ThermalConductivity | LMAX | 500.0 | Maximal init thermal conductivity |
| SI.ThermalConductivity | LNOM | 1.0 | Nominal init thermal conductivity |
| SI.Velocity | VELMIN | -1.0e5 | Minimal init speed |
| SI.Velocity | VELMAX | 1.0e5 | Maximal init speed |
| SI.Velocity | VELNOM | 1.0 | Nominal init speed |
| SI.Volume | VMIN | 0.0 | Minimal init volume |
| SI.Volume | VMAX | 1.0e5 | Maximal init volume |
| SI.Volume | VNOM | 1.0e-3 | Nominal init volume |
Contents
| Name | Description |
|---|---|
| Rate | |
| MolarFlowRate | |
| MolarReactionRate | |
| MolarEnthalpy | |
| DerDensityByEntropy | |
| DerEnergyByPressure | |
| DerEnergyByMoles | |
| DerEntropyByTemperature | |
| DerEntropyByPressure | |
| DerEntropyByMoles | |
| DerPressureByDensity | |
| DerPressureBySpecificVolume | |
| DerPressureByTemperature | |
| DerVolumeByTemperature | |
| DerVolumeByPressure | |
| DerVolumeByMoles | |
| IsenthalpicExponent | |
| IsentropicExponent | |
| IsobaricVolumeExpansionCoefficient | |
| IsochoricPressureCoefficient | |
| IsothermalCompressibility | |
| JouleThomsonCoefficient | |
| Property records used by the ThermoFluid library | |
| Properties in the two phase region | |
| Properties on both phase boundaries, including some derivatives | |
| Intermediate property data record for IF 97 | |
| Thermodynamic base properties on the phase boundary for IF97 steam tables | |
| Derivatives of dimensionless Gibbs-function w.r.t. dimensionless pressure and temperature | |
| Derivatives of dimensionless Helmholtz-function w.r.t. dimensionless pressure, density and temperature | |
| Defines properties on both phase boundaries, needed in the two phase region | |
| Thermodynamic base properties on the phase boundary | |
| Derivatives for fast inverse calculations of Helmholtz functions: p & h | |
| Derivatives for fast inverse calculation of Helmholtz functions: p & s | |
| Derivatives for fast inverse calculations of Helmholtz functions:p & T | |
| Additional thermodynamic derivatives | |
| Calculates all entries in Bridgmans tables if first seven variables given | |
| Constants of the medium | |
| Intermediate property data record | |
| Derivatives of Gibbs function w.r.t. pressure and temperature | |
| Derivatives for fast inverse calculations of Gibbs function | |
| Calculates base coefficients for Bridgman's tables from gibbs enthalpy | |
| Calculates base coefficients for Bridgmans tables from Helmholtz energy | |
| Calculate phase boundary property record from dimensionless Gibbs function | |
| Calculate phase boundary property record from dimensionless Helmholtz function | |
| Compute isochoric specific heat capacity inside the two-phase region | |
| Compute isochoric specific heat capacity inside the two-phase region and derivative of pressure w.r.t. temperature | |
| Compute additional thermodynamic derivatives from dimensionless Gibbs function | |
| Compute additional thermodynamic derivatives from dimensionless Helmholtz function | |
| Function to calculate analytic derivatives for computing d and t given p and h | |
| Function to calculate analytic derivatives for computing d and t given p and t | |
| Function to calculate analytic derivatives for computing d and t given p and s | |
| Approximation of a general step, such that the characteristic is continuous and differentiable | |
| Function to calculate analytic derivatives for computing T given p and h | |
| Function to calculate analytic derivatives for computing p given d and T | |
| Function 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
Lund University
Department of Automatic Control
Box 118, 22100 Lund, Sweden
email: hubertus@control.lth.se