packagePartialMedium

Partial medium properties (base package of all media packages)

Extends from Modelica.Media.Interfaces.Types (Types to be used in fluid models), Modelica.Icons.MaterialPropertiesPackage (Icon for package containing property classes).

Information

PartialMedium is a package and contains all declarations for a medium. This means that constants, models, and functions are defined that every medium is supposed to support (some of them are optional). A medium package inherits from PartialMedium and provides the equations for the medium. The details of this package are described in Modelica.Media.UsersGuide.

Parameters

TypeNameDefaultDescription
Modelica.Media.Interfaces.Choices.IndependentVariablesThermoStatesEnumeration type for independent variables
StringmediumName"unusablePartialMedium"Name of the medium
String[:]substanceNames{mediumName}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
String[:]extraPropertiesNamesfill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
BooleansingleState= true, if u and d are not a function of pressure
BooleanreducedXtrue= true, if medium contains the equation sum(X) = 1.0; set reducedX=true, if only one substance (see docu for details)
BooleanfixedXfalse= true, if medium contains the equation X = reference_X
AbsolutePressurereference_p101325Reference pressure of Medium: default 1 atmosphere
Temperaturereference_T298.15Reference temperature of Medium: default 25 deg Celsius
MassFraction[nX]reference_Xfill(1/nX, nX)Default mass fractions of medium
AbsolutePressurep_default101325Default value for pressure of medium (for initialization)
TemperatureT_defaultModelica.Units.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
SpecificEnthalpyh_defaultspecificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
MassFraction[nX]X_defaultreference_XDefault value for mass fractions of medium (for initialization)
ExtraProperty[nC]C_defaultfill(0, nC)Default value for trace substances of medium (for initialization)
IntegernSsize(substanceNames, 1)Number of substances
IntegernXnSNumber of mass fractions
IntegernXiif fixedX then 0 else if reducedX then nS - 1 else nSNumber of structurally independent mass fractions (see docu for details)
IntegernCsize(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
Real[nC]C_nominal1.0e-6*ones(nC)Default for the nominal values for the extra properties

Contents

NameDescription
FluidConstantsCritical, triple, molecular and other standard data of fluid
ThermodynamicStateMinimal variable set that is available as input argument to every medium function
BasePropertiesBase properties (p, d, T, h, u, R_s, MM and, if applicable, X and Xi) of a medium
setState_pTXReturn thermodynamic state as function of p, T and composition X or Xi
setState_phXReturn thermodynamic state as function of p, h and composition X or Xi
setState_psXReturn thermodynamic state as function of p, s and composition X or Xi
setState_dTXReturn thermodynamic state as function of d, T and composition X or Xi
setSmoothStateReturn thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b
dynamicViscosityReturn dynamic viscosity
thermalConductivityReturn thermal conductivity
prandtlNumberReturn the Prandtl number
pressureReturn pressure
temperatureReturn temperature
densityReturn density
specificEnthalpyReturn specific enthalpy
specificInternalEnergyReturn specific internal energy
specificEntropyReturn specific entropy
specificGibbsEnergyReturn specific Gibbs energy
specificHelmholtzEnergyReturn specific Helmholtz energy
specificHeatCapacityCpReturn specific heat capacity at constant pressure
heatCapacity_cpAlias for deprecated name
specificHeatCapacityCvReturn specific heat capacity at constant volume
heatCapacity_cvAlias for deprecated name
isentropicExponentReturn isentropic exponent
isentropicEnthalpyReturn isentropic enthalpy
velocityOfSoundReturn velocity of sound
isobaricExpansionCoefficientReturn overall the isobaric expansion coefficient beta
betaAlias for isobaricExpansionCoefficient for user convenience
isothermalCompressibilityReturn overall the isothermal compressibility factor
kappaAlias of isothermalCompressibility for user convenience
density_derp_hReturn density derivative w.r.t. pressure at constant specific enthalpy
density_derh_pReturn density derivative w.r.t. specific enthalpy at constant pressure
density_derp_TReturn density derivative w.r.t. pressure at constant temperature
density_derT_pReturn density derivative w.r.t. temperature at constant pressure
density_derXReturn density derivative w.r.t. mass fraction
molarMassReturn the molar mass of the medium
specificEnthalpy_pTXReturn specific enthalpy from p, T, and X or Xi
specificEntropy_pTXReturn specific entropy from p, T, and X or Xi
density_pTXReturn density from p, T, and X or Xi
temperature_phXReturn temperature from p, h, and X or Xi
density_phXReturn density from p, h, and X or Xi
temperature_psXReturn temperature from p, s, and X or Xi
density_psXReturn density from p, s, and X or Xi
specificEnthalpy_psXReturn specific enthalpy from p, s, and X or Xi
massFractionReturn independent mass fractions (if any)
MassFlowRateType for mass flow rate with medium specific attributes

Revisions