packagePartialSimpleMedium

Medium model with linear dependency of u, h from temperature. All other quantities are constant, including density.

Extends from Modelica.Media.Interfaces.PartialPureSubstance.

Information

Partial medium that contains an explicit expression for the computation T=T0+u/cv instead of using implicit function of u=cv*(T-T0). This Medium generates fewer algebraic loops in JModelica.

Parameters

TypeNameDefaultDescription
SpecificHeatCapacitycp_constConstant specific heat capacity at constant pressure
SpecificHeatCapacitycv_constConstant specific heat capacity at constant volume
Densityd_constConstant density
DynamicViscosityeta_constConstant dynamic viscosity
ThermalConductivitylambda_constConstant thermal conductivity
VelocityOfSounda_constConstant velocity of sound
TemperatureT_minMinimum temperature valid for medium model
TemperatureT_maxMaximum temperature valid for medium model
TemperatureT0reference_TZero enthalpy temperature
MolarMassMM_constMolar mass
FluidConstantsfluidConstantsFluid constants

Contents

NameDescription
ThermodynamicStateThermodynamic state
BasePropertiesBase properties
setState_pTXReturn thermodynamic state from p, T, and X or Xi
setState_phXReturn thermodynamic state from p, h, and X or Xi
setState_psXReturn thermodynamic state from p, s, and X or Xi
setState_dTXReturn thermodynamic state from d, T, and 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
pressureReturn pressure
temperatureReturn temperature
densityReturn density
specificEnthalpyReturn specific enthalpy
specificHeatCapacityCpReturn specific heat capacity at constant pressure
specificHeatCapacityCvReturn specific heat capacity at constant volume
isentropicExponentReturn isentropic exponent
velocityOfSoundReturn velocity of sound
specificEnthalpy_pTXReturn specific enthalpy 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
specificInternalEnergyReturn specific internal energy
specificEntropyReturn specific entropy
specificGibbsEnergyReturn specific Gibbs energy
specificHelmholtzEnergyReturn specific Helmholtz energy
isentropicEnthalpyReturn isentropic enthalpy
isobaricExpansionCoefficientReturns overall the isobaric expansion coefficient beta
isothermalCompressibilityReturns overall the isothermal compressibility factor
density_derp_TReturns the partial derivative of density with respect to pressure at constant temperature
density_derT_pReturns the partial derivative of density with respect to temperature at constant pressure
density_derXReturns the partial derivative of density with respect to mass fractions at constant pressure and temperature
molarMassReturn the molar mass of the medium

Revisions

  • February 17, 2020, by Filip Jorissen:
    Bugfix in cv_const. See #1107.
  • May 23, 2018, by Filip Jorissen:
    First implementation based on IBPSA library models.