packageLMedium

Extends from Modelica.Media.Interfaces.PartialPureSubstance (Base class for pure substances of one chemical substance).

Parameters

TypeNameDefaultDescription
Modelica.Media.Interfaces.Choices.IndependentVariablesThermoStates (from PartialMedium)Enumeration type for independent variables
StringmediumName (from PartialMedium)"unusablePartialMedium"Name of the medium
String[:]substanceNames (from PartialMedium){mediumName}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
String[:]extraPropertiesNames (from PartialMedium)fill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
BooleansingleState (from PartialMedium)= true, if u and d are not a function of pressure
BooleanreducedX (from PartialMedium)true= true, if medium contains the equation sum(X) = 1.0; set reducedX=true, if only one substance (see docu for details)
BooleanfixedX (from PartialMedium)false= true, if medium contains the equation X = reference_X
AbsolutePressurereference_p (from PartialMedium)101325Reference pressure of Medium: default 1 atmosphere
Temperaturereference_T (from PartialMedium)298.15Reference temperature of Medium: default 25 deg Celsius
MassFraction[nX]reference_X (from PartialMedium)fill(1/nX, nX)Default mass fractions of medium
AbsolutePressurep_default (from PartialMedium)101325Default value for pressure of medium (for initialization)
TemperatureT_default (from PartialMedium)Modelica.Units.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
SpecificEnthalpyh_default (from PartialMedium)specificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
MassFraction[nX]X_default (from PartialMedium)reference_XDefault value for mass fractions of medium (for initialization)
ExtraProperty[nC]C_default (from PartialMedium)fill(0, nC)Default value for trace substances of medium (for initialization)
IntegernS (from PartialMedium)size(substanceNames, 1)Number of substances
IntegernX (from PartialMedium)nSNumber of mass fractions
IntegernXi (from PartialMedium)if fixedX then 0 else if reducedX then nS - 1 else nSNumber of structurally independent mass fractions (see docu for details)
IntegernC (from PartialMedium)size(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
Real[nC]C_nominal (from PartialMedium)1.0e-6*ones(nC)Default for the nominal values for the extra properties
FluidConstantsfluidConstantsConstant data for the fluid
StringrefState"None"Enthalpy/entropy reference state. Alternatives: ASHRAE, IIR, NBP, User(value at reference_T as 0), otherwise no reference
StringinputChoice"ph"Allows to choose the input choise to use for the construction of a BaseProperties object. Alternative are: pT, ph, dT
BooleanhighPressurefalse

Contents

NameDescription
liqViscPcorLucasLucas liquid viscosity pressure correction.
liqThCondLatini
liqSurfTensSastriRao
BaseProperties
ThermodynamicState
setState_pTXReturn ThermodynamicState record as function of p,T and composition X or Xi
setState_dTXReturn ThermodynamicState record as function of T,d and composition X or Xi
setState_phXReturn ThermodynamicState record as function of p,H and composition X or Xi
setState_psXReturn thermodynamic state as function of p, s and composition X or Xi
pressureReturn pressure
temperatureReturn temperature
densityReturn density
density_derp_TReturn density derivative w.r.t. pressure at const temperature. OK
density_derT_pReturn density derivative w.r.t. temperature at constant pressure. OK
density_derp_hReturn density derivative w.r.t. pressure at const specific enthalpy. Numerical derivative in two phases differs from HelmholtzMedia, but is similar to ExternalMedia
density_derh_pReturn density derivative w.r.t. specific enthalpy at constant pressure. OK
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. OK
specificHeatCapacityCvReturn heat capacity at constant volume
isentropicExponentReturn isentropic exponent
isobaricExpansionCoefficientReturns the approximate isobaric expansion coefficient beta=dV_dT/V
isothermalCompressibilityReturns overall the isothermal compressibility factor
velocityOfSoundReturn velocity of sound
jouleThomsonCoefficient
dynamicViscosityReturn dynamic viscosity
thermalConductivityReturn thermal conductivity
molarMassReturn the molar mass of the medium
surfaceTensionReturn surface tension
setSmoothStateReturn thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b
density_pT
density_pT_state
specificEnthalpy_pT
specificEnthalpy_pT_state
density_pT_der
specificEnthalpy_pT_der
density_ph
density_ph_state
temperature_ph
temperature_ph_state
density_ph_der
temperature_ph_der
pressure_dT
pressure_dT_state
specificEnthalpy_dT
specificEnthalpy_dT_state
pressure_dT_der
pressure_derd_Tpressure derivative w.r.t. density at constant T. OK
pressure_derT_dpressure derivative w.r.t. T at constant density. OK
specifiEnthalpy_dT_der
specificEnthalpy_derd_Tpressure derivative w.r.t. density at constant T. OK, but it seems clear that beta and kappa are bad calculated for the gas
specificEnthalpy_derT_dpressure derivative w.r.t. density at constant T. To be finished analyticaly for two phases