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
| Type | Name | Default | Description |
|---|---|---|---|
| SpecificHeatCapacity | cp_const | Constant specific heat capacity at constant pressure | |
| SpecificHeatCapacity | cv_const | Constant specific heat capacity at constant volume | |
| Density | d_const | Constant density | |
| DynamicViscosity | eta_const | Constant dynamic viscosity | |
| ThermalConductivity | lambda_const | Constant thermal conductivity | |
| VelocityOfSound | a_const | Constant velocity of sound | |
| Temperature | T_min | Minimum temperature valid for medium model | |
| Temperature | T_max | Maximum temperature valid for medium model | |
| Temperature | T0 | reference_T | Zero enthalpy temperature |
| MolarMass | MM_const | Molar mass | |
| FluidConstants | fluidConstants | Fluid constants |
Contents
| Name | Description |
|---|---|
| ThermodynamicState | Thermodynamic state |
| BaseProperties | Base properties |
| setState_pTX | Return thermodynamic state from p, T, and X or Xi |
| setState_phX | Return thermodynamic state from p, h, and X or Xi |
| setState_psX | Return thermodynamic state from p, s, and X or Xi |
| setState_dTX | Return thermodynamic state from d, T, and X or Xi |
| setSmoothState | Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b |
| dynamicViscosity | Return dynamic viscosity |
| thermalConductivity | Return thermal conductivity |
| pressure | Return pressure |
| temperature | Return temperature |
| density | Return density |
| specificEnthalpy | Return specific enthalpy |
| specificHeatCapacityCp | Return specific heat capacity at constant pressure |
| specificHeatCapacityCv | Return specific heat capacity at constant volume |
| isentropicExponent | Return isentropic exponent |
| velocityOfSound | Return velocity of sound |
| specificEnthalpy_pTX | Return specific enthalpy from p, T, and X or Xi |
| temperature_phX | Return temperature from p, h, and X or Xi |
| density_phX | Return density from p, h, and X or Xi |
| specificInternalEnergy | Return specific internal energy |
| specificEntropy | Return specific entropy |
| specificGibbsEnergy | Return specific Gibbs energy |
| specificHelmholtzEnergy | Return specific Helmholtz energy |
| isentropicEnthalpy | Return isentropic enthalpy |
| isobaricExpansionCoefficient | Returns overall the isobaric expansion coefficient beta |
| isothermalCompressibility | Returns overall the isothermal compressibility factor |
| density_derp_T | Returns the partial derivative of density with respect to pressure at constant temperature |
| density_derT_p | Returns the partial derivative of density with respect to temperature at constant pressure |
| density_derX | Returns the partial derivative of density with respect to mass fractions at constant pressure and temperature |
| molarMass | Return the molar mass of the medium |
Revisions
-
February 17, 2020, by Filip Jorissen:
Bugfix incv_const. See #1107. -
May 23, 2018, by Filip Jorissen:
First implementation based on IBPSA library models.