packageCommon
Data structures and fundamental functions for fluid properties
Extends from Modelica.Icons.Package.
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 | |
| ThermoFluidSpecial | Property records used by the ThermoFluid library |
| SaturationProperties | Properties in the two phase region |
| SaturationBoundaryProperties | Properties on both phase boundaries, including some derivatives |
| IF97BaseTwoPhase | Intermediate property data record for IF 97 |
| IF97PhaseBoundaryProperties | Thermodynamic base properties on the phase boundary for IF97 steam tables |
| GibbsDerivs | Derivatives of dimensionless Gibbs-function w.r.t. dimensionless pressure and temperature |
| HelmholtzDerivs | Derivatives of dimensionless Helmholtz-function w.r.t. dimensionless pressure, density and temperature |
| TwoPhaseTransportProps | Defines properties on both phase boundaries, needed in the two phase region |
| PhaseBoundaryProperties | Thermodynamic base properties on the phase boundary |
| 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 |
| ExtraDerivatives | Additional thermodynamic derivatives |
| BridgmansTables | Calculates all entries in Bridgmans tables if first seven variables given |
| FundamentalConstants | Constants of the medium |
| AuxiliaryProperties | Intermediate property data record |
| GibbsDerivs2 | Derivatives of Gibbs function w.r.t. pressure and temperature |
| NewtonDerivatives_dT | Derivatives for fast inverse calculations of Gibbs function |
| gibbsToBridgmansTables | Calculates base coefficients for Bridgman's tables from gibbs enthalpy |
| helmholtzToBridgmansTables | Calculates base coefficients for Bridgmans tables from Helmholtz energy |
| gibbsToBoundaryProps | Calculate phase boundary property record from dimensionless Gibbs function |
| helmholtzToBoundaryProps | Calculate phase boundary property record from dimensionless Helmholtz function |
| 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 |
| gibbsToExtraDerivs | Compute additional thermodynamic derivatives from dimensionless Gibbs function |
| helmholtzToExtraDerivs | Compute additional thermodynamic derivatives from dimensionless Helmholtz function |
| Helmholtz_ph | Function to calculate analytic derivatives for computing d and t given p and h |
| Helmholtz_pT | Function to calculate analytic derivatives for computing d and t given p and t |
| Helmholtz_ps | Function to calculate analytic derivatives for computing d and t given p and s |
| smoothStep | Approximation of a general step, such that the characteristic is continuous and differentiable |
| Gibbs2_ph | Function to calculate analytic derivatives for computing T given p and h |
| Gibbs2_dT | Function to calculate analytic derivatives for computing p given d and T |
| Gibbs2_ps | 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