packageTMedium
Extends from Modelica.Media.Interfaces.PartialTwoPhaseMedium (Base class for two phase medium of one substance).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Media.Interfaces.Choices.IndependentVariables | ThermoStates (from PartialMedium) | Enumeration type for independent variables | |
| String | mediumName (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 |
| Boolean | singleState (from PartialMedium) | = true, if u and d are not a function of pressure | |
| Boolean | reducedX (from PartialMedium) | true | = true, if medium contains the equation sum(X) = 1.0; set reducedX=true, if only one substance (see docu for details) |
| Boolean | fixedX (from PartialMedium) | false | = true, if medium contains the equation X = reference_X |
| AbsolutePressure | reference_p (from PartialMedium) | 101325 | Reference pressure of Medium: default 1 atmosphere |
| Temperature | reference_T (from PartialMedium) | 298.15 | Reference temperature of Medium: default 25 deg Celsius |
| MassFraction[nX] | reference_X (from PartialMedium) | fill(1/nX, nX) | Default mass fractions of medium |
| AbsolutePressure | p_default (from PartialMedium) | 101325 | Default value for pressure of medium (for initialization) |
| Temperature | T_default (from PartialMedium) | Modelica.Units.Conversions.from_degC(20) | Default value for temperature of medium (for initialization) |
| SpecificEnthalpy | h_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_X | Default 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) |
| Integer | nS (from PartialMedium) | size(substanceNames, 1) | Number of substances |
| Integer | nX (from PartialMedium) | nS | Number of mass fractions |
| Integer | nXi (from PartialMedium) | if fixedX then 0 else if reducedX then nS - 1 else nS | Number of structurally independent mass fractions (see docu for details) |
| Integer | nC (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 |
| Boolean | smoothModel (from PartialTwoPhaseMedium) | false | = true, if the (derived) model should not generate state events |
| Boolean | onePhase (from PartialTwoPhaseMedium) | false | = true, if the (derived) model should never be called with two-phase inputs |
| FluidConstants | fluidConstants (from PartialTwoPhaseMedium) | Constant data for the fluid | |
| String | refState | "None" | Enthalpy/entropy reference state. Alternatives: ASHRAE, IIR, NBP, User(value at reference_T as 0), otherwise no reference |
| String | inputChoice | "ph" | Allows to choose the input choise to use for the construction of a BaseProperties object. Alternative are: pT, ph, dT |
| Boolean | highPressure | false |
Contents
| Name | Description |
|---|---|
| referenceEnthalpy | |
| referenceEntropy | |
| Return saturation pressure from T | |
| saturationPressure_derT | Return derivative of saturation pressure w.r.t. temperature |
| Return saturation temperature from P | |
| Return derivative of saturation temperature w.r.t. pressure | |
| liqViscPcorLucas | Lucas liquid viscosity pressure correction. |
| gasViscLowPressureChung | Dynamic viscosity of a low pressure gas according to Chung |
| gasViscPcorLucas | |
| liqThCondLatini | |
| gasThCondLowPressureChung | Thermal conductivity of a low pressure gas according to Chung |
| gasThCondTVcorChung | Density correction for low pressure gas thermal conductivity, according to Chung |
| liqSurfTensSastriRao | |
| Return ThermodynamicState record as function of p,T and composition X or Xi | |
| Return ThermodynamicState record as function of T,d and composition X or Xi | |
| Return ThermodynamicState record as function of p,H and composition X or Xi | |
| Return thermodynamic state as function of p, s and composition X or Xi | |
| The input is a SaturationProperties record called sat. Returns the ThermodynamicState record at the bubble point | |
| The input is a SaturationProperties record called sat. Returns the ThermodynamicState record at the dew point | |
| Return pressure | |
| Return temperature | |
| Return density | |
| Return density derivative w.r.t. pressure at const temperature. OK | |
| Return density derivative w.r.t. temperature at constant pressure. OK | |
| Return density derivative w.r.t. pressure at const specific enthalpy. Numerical derivative in two phases differs from HelmholtzMedia, but is similar to ExternalMedia | |
| Return density derivative w.r.t. specific enthalpy at constant pressure. OK | |
| Return specific enthalpy | |
| Return specific internal energy | |
| Return specific entropy | |
| Return specific Gibbs energy | |
| Return specific Helmholtz energy | |
| Return specific heat capacity at constant pressure. OK | |
| Return heat capacity at constant volume | |
| Return isentropic exponent | |
| Returns the approximate isobaric expansion coefficient beta=dV_dT/V | |
| Returns overall the isothermal compressibility factor | |
| Return velocity of sound | |
| jouleThomsonCoefficient | |
| isothermalThrottlingCoefficient | OK. The ExternalMedia function is not found !! |
| Return dynamic viscosity | |
| Return thermal conductivity | |
| Return surface tension | |
| Return bubble point density from a sat record | |
| Return bubble point density derivative | |
| Return bubble point density from a sat record | |
| Return dew point density derivative | |
| Return bubble point specific enthalpy | |
| Return bubble point specific enthalpy derivative | |
| Return dew point specific enthalpy | |
| Return dew point specific enthalpy derivative | |
| Return bubble point specific entropy | |
| Return dew point specific entropy | |
| Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b | |
| density_pT_state | |
| specificEnthalpy_pT_state | |
| density_pT_der | |
| specificEnthalpy_pT_der | |
| density_ph_state | |
| temperature_ph_state | |
| density_ph_der | |
| temperature_ph_der | |
| pressure_dT_state | |
| specificEnthalpy_dT_state | |
| pressure_dT_der | |
| pressure_derd_T | pressure derivative w.r.t. density at constant T. OK |
| pressure_derT_d | pressure derivative w.r.t. T at constant density. OK |
| specifiEnthalpy_dT_der | |
| specificEnthalpy_derd_T | pressure derivative w.r.t. density at constant T. |
| specificEnthalpy_derT_d | pressure derivative w.r.t. density at constant T. To be finished analyticaly for two phases |