WOLFRAM SYSTEM MODELER

Common

Data structures and fundamental functions for fluid properties

Package Contents

Rate (s⁻¹)

MolarFlowRate (mol/s)

MolarReactionRate (mol/(m³⋅s))

MolarEnthalpy (J/mol)

DerDensityByEntropy (kg²⋅K/(m³⋅J))

DerEnergyByPressure (J/Pa)

DerEnergyByMoles (J/mol)

DerEntropyByTemperature (J/K²)

DerEntropyByPressure (J/(K⋅Pa))

DerEntropyByMoles (J/(mol⋅K))

DerPressureByDensity (Pa⋅m³/kg)

DerPressureBySpecificVolume (Pa⋅kg/m³)

DerPressureByTemperature (Pa/K)

DerVolumeByTemperature (m³/K)

DerVolumeByPressure (m³/Pa)

DerVolumeByMoles (m³/mol)

IsenthalpicExponent

IsentropicExponent

IsobaricVolumeExpansionCoefficient (1/K)

IsochoricPressureCoefficient (1/K)

IsothermalCompressibility (1/Pa)

JouleThomsonCoefficient (K/Pa)

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

Package Constants (76)

MINPOS

Value: 1.0e-9

Type: Real

Description: Minimal value for physical variables which are always > 0.0

AMIN

Value: MINPOS

Type: Area (m²)

Description: Minimal init area

AMAX

Value: 1.0e5

Type: Area (m²)

Description: Maximal init area

ANOM

Value: 1.0

Type: Area (m²)

Description: Nominal init area

MOLMIN

Value: -1.0 * MINPOS

Type: AmountOfSubstance (mol)

Description: Minimal Mole Number

MOLMAX

Value: 1.0e8

Type: AmountOfSubstance (mol)

Description: Maximal Mole Number

MOLNOM

Value: 1.0

Type: AmountOfSubstance (mol)

Description: Nominal Mole Number

DMIN

Value: 1e-6

Type: Density (kg/m³)

Description: Minimal init density

DMAX

Value: 30.0e3

Type: Density (kg/m³)

Description: Maximal init density

DNOM

Value: 1.0

Type: Density (kg/m³)

Description: Nominal init density

LAMMIN

Value: MINPOS

Type: ThermalConductivity (W/(m⋅K))

Description: Minimal thermal conductivity

LAMNOM

Value: 1.0

Type: ThermalConductivity (W/(m⋅K))

Description: Nominal thermal conductivity

LAMMAX

Value: 1000.0

Type: ThermalConductivity (W/(m⋅K))

Description: Maximal thermal conductivity

ETAMIN

Value: MINPOS

Type: DynamicViscosity (Pa⋅s)

Description: Minimal init dynamic viscosity

ETAMAX

Value: 1.0e8

Type: DynamicViscosity (Pa⋅s)

Description: Maximal init dynamic viscosity

ETANOM

Value: 100.0

Type: DynamicViscosity (Pa⋅s)

Description: Nominal init dynamic viscosity

EMIN

Value: -1.0e10

Type: Energy (J)

Description: Minimal init energy

EMAX

Value: 1.0e10

Type: Energy (J)

Description: Maximal init energy

ENOM

Value: 1.0e3

Type: Energy (J)

Description: Nominal init energy

SMIN

Value: -1.0e6

Type: Entropy (J/K)

Description: Minimal init entropy

SMAX

Value: 1.0e6

Type: Entropy (J/K)

Description: Maximal init entropy

SNOM

Value: 1.0e3

Type: Entropy (J/K)

Description: Nominal init entropy

MDOTMIN

Value: -1.0e5

Type: MassFlowRate (kg/s)

Description: Minimal init mass flow rate

MDOTMAX

Value: 1.0e5

Type: MassFlowRate (kg/s)

Description: Maximal init mass flow rate

MDOTNOM

Value: 1.0

Type: MassFlowRate (kg/s)

Description: Nominal init mass flow rate

MASSXMIN

Value: -1.0 * MINPOS

Type: MassFraction

Description: Minimal init mass fraction

MASSXMAX

Value: 1.0

Type: MassFraction

Description: Maximal init mass fraction

MASSXNOM

Value: 0.1

Type: MassFraction

Description: Nominal init mass fraction

MMIN

Value: -1.0 * MINPOS

Type: Mass (kg)

Description: Minimal init mass

MMAX

Value: 1.0e8

Type: Mass (kg)

Description: Maximal init mass

MNOM

Value: 1.0

Type: Mass (kg)

Description: Nominal init mass

MMMIN

Value: 0.001

Type: MolarMass (kg/mol)

Description: Minimal initial molar mass

MMMAX

Value: 250.0

Type: MolarMass (kg/mol)

Description: Maximal initial molar mass

MMNOM

Value: 0.2

Type: MolarMass (kg/mol)

Description: Nominal initial molar mass

MOLEYMIN

Value: -1.0 * MINPOS

Type: MoleFraction

Description: Minimal init mole fraction

MOLEYMAX

Value: 1.0

Type: MoleFraction

Description: Maximal init mole fraction

MOLEYNOM

Value: 0.1

Type: MoleFraction

Description: Nominal init mole fraction

GMIN

Value: -1.0e8

Type: MomentumFlux (N)

Description: Minimal init momentum flux

GMAX

Value: 1.0e8

Type: MomentumFlux (N)

Description: Maximal init momentum flux

GNOM

Value: 1.0

Type: MomentumFlux (N)

Description: Nominal init momentum flux

POWMIN

Value: -1.0e8

Type: Power (W)

Description: Minimal init power or heat

POWMAX

Value: 1.0e8

Type: Power (W)

Description: Maximal init power or heat

POWNOM

Value: 1.0e3

Type: Power (W)

Description: Nominal init power or heat

PMIN

Value: 1.0e4

Type: Pressure (Pa)

Description: Minimal init pressure

PMAX

Value: 1.0e8

Type: Pressure (Pa)

Description: Maximal init pressure

PNOM

Value: 1.0e5

Type: Pressure (Pa)

Description: Nominal init pressure

COMPPMIN

Value: -1.0 * MINPOS

Type: Pressure (Pa)

Description: Minimal init pressure

COMPPMAX

Value: 1.0e8

Type: Pressure (Pa)

Description: Maximal init pressure

COMPPNOM

Value: 1.0e5

Type: Pressure (Pa)

Description: Nominal init pressure

KAPPAMIN

Value: 1.0

Type: RatioOfSpecificHeatCapacities

Description: Minimal init isentropic exponent

KAPPAMAX

Value: 1.7

Type: RatioOfSpecificHeatCapacities

Description: Maximal init isentropic exponent

KAPPANOM

Value: 1.2

Type: RatioOfSpecificHeatCapacities

Description: Nominal init isentropic exponent

SEMIN

Value: -1.0e8

Type: SpecificEnergy (J/kg)

Description: Minimal init specific energy

SEMAX

Value: 1.0e8

Type: SpecificEnergy (J/kg)

Description: Maximal init specific energy

SENOM

Value: 1.0e6

Type: SpecificEnergy (J/kg)

Description: Nominal init specific energy

SHMIN

Value: -1.0e8

Type: SpecificEnthalpy (J/kg)

Description: Minimal init specific enthalpy

SHMAX

Value: 1.0e8

Type: SpecificEnthalpy (J/kg)

Description: Maximal init specific enthalpy

SHNOM

Value: 1.0e6

Type: SpecificEnthalpy (J/kg)

Description: Nominal init specific enthalpy

SSMIN

Value: -1.0e6

Type: SpecificEntropy (J/(kg⋅K))

Description: Minimal init specific entropy

SSMAX

Value: 1.0e6

Type: SpecificEntropy (J/(kg⋅K))

Description: Maximal init specific entropy

SSNOM

Value: 1.0e3

Type: SpecificEntropy (J/(kg⋅K))

Description: Nominal init specific entropy

CPMIN

Value: MINPOS

Type: SpecificHeatCapacity (J/(kg⋅K))

Description: Minimal init specific heat capacity

CPMAX

Value: 1.0e6

Type: SpecificHeatCapacity (J/(kg⋅K))

Description: Maximal init specific heat capacity

CPNOM

Value: 1.0e3

Type: SpecificHeatCapacity (J/(kg⋅K))

Description: Nominal init specific heat capacity

TMIN

Value: 1.0

Type: Temperature (K)

Description: Minimal init temperature

TMAX

Value: 6000.0

Type: Temperature (K)

Description: Maximal init temperature

TNOM

Value: 320.0

Type: Temperature (K)

Description: Nominal init temperature

LMIN

Value: MINPOS

Type: ThermalConductivity (W/(m⋅K))

Description: Minimal init thermal conductivity

LMAX

Value: 500.0

Type: ThermalConductivity (W/(m⋅K))

Description: Maximal init thermal conductivity

LNOM

Value: 1.0

Type: ThermalConductivity (W/(m⋅K))

Description: Nominal init thermal conductivity

VELMIN

Value: -1.0e5

Type: Velocity (m/s)

Description: Minimal init speed

VELMAX

Value: 1.0e5

Type: Velocity (m/s)

Description: Maximal init speed

VELNOM

Value: 1.0

Type: Velocity (m/s)

Description: Nominal init speed

VMIN

Value: 0.0

Type: Volume (m³)

Description: Minimal init volume

VMAX

Value: 1.0e5

Type: Volume (m³)

Description: Maximal init volume

VNOM

Value: 1.0e-3

Type: Volume (m³)

Description: Nominal init volume

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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.

Wolfram Language

In[1]:=
SystemModel["Modelica.Media.Common"]
Out[1]:=

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