packageR134a_ph
Medium model for R134a and p,h as states
Extends from Modelica.Media.Interfaces.PartialTwoPhaseMedium (Base class for two phase medium of one substance).
Information
Calculation of fluid properties for Tetrafluoroethane (R134a) in the fluid region of 0.0039 bar (Triple pressure) to 700 bar and 169.85 Kelvin (Triple temperature) to 455 Kelvin.
Restriction
The functions provided by this package shall be used inside of the restricted limits according to the referenced literature.
- 0.0039 bar ≤ p ≤ 700 bar
- 169.85 Kelvin ≤ T ≤ 455 Kelvin
- explicit for pressure and specific enthalpy
References
- Baehr, H.D. and Tillner-Roth, R.:
- Thermodynamic Properties of Environmentally Acceptable Refrigerants - Equations of State and Tables for Ammonia, R22, R134a, R152a, and R123. Springer-Verlag, Berlin (Germany), 1994.
- Klein, McLinden and Laesecke:
- An improved extended corresponding states method for estimation of viscosity of pure refrigerants and mixtures. Int. J. Refrig., Vol. 20, No.3, pp. 208-217, 1997.
- McLinden, Klein. and Perkins:
- An extended corresponding states model for the thermal conductivity of refrigerants and refrigerant mixtures. Int. J. Refrig., 23 (2000) 43-63.
- Okada and Higashi:
- Surface tension correlation of HFC-134a and HCFC-123. Proceedings of the Joint Meeting of IIR Commissions B1, B2, E1, and E2, Padua, Italy, pp. 541-548, 1994.
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 | |
| Boolean | ph_explicit | true | |
| Boolean | dT_explicit | false | |
| Modelica.Media.Interfaces.Types.FluidLimits | r134aLimits | ||
| Modelica.Media.Interfaces.Types.TwoPhase.FluidConstants | r134aConstants |
Contents
| Name | Description |
|---|---|
| Thermodynamic state | |
| Base properties of R134a | |
| Set state for pressure and specific enthalpy (X not used since single substance) | |
| Set state for density and temperature (X not used since single substance) | |
| Set state for pressure and specific entropy (X not used since single substance) | |
| Set state for pressure and temperature (X not used since single substance) | |
| Return the thermodynamic state on the bubble line | |
| Return the thermodynamic state on the dew line | |
| Density as function of pressure and specific enthalpy | |
| Density as function of pressure and specific enthalpy | use setState_phX function for input | |
| Temperature as function of pressure and specific enthalpy | |
| Temperature as function of pressure and specific enthalpy | use setState_phX function for input | |
| Pressure w.r.t. thermodynamic state | |
| Specific internal energy w.r.t. thermodynamic state | |
| Specific enthalpy w.r.t. thermodynamic state | use setState_phX function for input | |
| Specific entropy w.r.t. thermodynamic state | use setState_phX function for input if necessary | |
| Saturation temperature in two-phase region | |
| Derivative of saturation temperature in two-phase region | |
| Time derivative of saturation temperature in two-phase region | |
| Density of liquid phase w.r.t. saturation pressure | use setSat_p function for input | |
| Derivative of liquid density in two-phase region w.r.t. pressure | |
| Time derivative of liquid density in two-phase region w.r.t. pressure | |
| Density of vapor phase w.r.t. saturation pressure | use setSat_p function for input | |
| Derivative of vapor density in two-phase region w.r.t. pressure | |
| Time derivative of vapor density in two-phase region w.r.t. pressure | |
| Specific enthalpy of liquid phase w.r.t. saturation pressure | use setSat_p function for input | |
| Derivative of liquid specific enthalpy in two-phase region w.r.t. pressure | |
| Time derivative of liquid specific enthalpy in two-phase region w.r.t. pressure | |
| Specific enthalpy of vapor phase w.r.t. saturation pressure | use setSat_p function for input | |
| Derivative of vapor specific enthalpy in two-phase region w.r.t. pressure | |
| Time derivative of vapor specific enthalpy in two-phase region w.r.t. pressure | |
| Specific entropy of vapor phase w.r.t. saturation pressure | use setSat_p function for input | |
| Derivative of vapor specific entropy in two-phase region w.r.t. pressure | use setState_phX function for input | |
| Time derivative of vapor specific entropy in two-phase region w.r.t. pressure | use setState_phX function for input | |
| Specific entropy of liquid phase w.r.t. saturation pressure | use setSat_p function for input | |
| Derivative of liquid specific entropy in two-phase region w.r.t. pressure | use setState_phX function for input | |
| Time derivative of liquid specific entropy in two-phase region w.r.t. pressure | use setState_phX function for input | |
| Saturation pressure w.r.t. temperature | |
| Specific heat capacity at constant pressure | turns infinite in two-phase region! | use setState_phX function for input | |
| Specific heat capacity at constant volume | use setState_phX function for input | |
| Dynamic viscosity w.r.t. temperature and density | use setState_phX function for input | |
| Thermal conductivity w.r.t. thermodynamic state | use setState_phX function for input | |
| Surface tension as a function of temperature (below critical point) | |
| Velocity of sound w.r.t. thermodynamic state (only valid for one-phase) | |
| Isothermal compressibility w.r.t. thermodynamic state (only valid for one-phase) | |
| Isobaric expansion coefficient w.r.t. thermodynamic state (only valid for one-phase) | |
| Isentropic exponent gamma w.r.t. thermodynamic state | not defined in two-phase region | use setState_phX function for input | |
| Specific gibbs energy w.r.t. thermodynamic state | |
| Helmholtz energy w.r.t. thermodynamic state | |
| Density derivative by specific enthalpy | use setState_phX function for input | |
| Density derivative by pressure | use setState_phX function for input | |
| Isentropic enthalpy of downstream pressure and upstream thermodynamic state (specific entropy) | |
| Derivatives required for inversion of temperature and density functions | |
| Density and temperature w.r.t. pressure and specific enthalpy | |
| Density and temperature w.r.t. pressure and specific enthalpy in one-phase region | |
| Inverse iteration in one phase region (d,T) = f(p,s) | |
| Calculation of helmholtz derivatives by density and temperature | |
| Helmholtz coefficients of ideal part | |
| Calculation of helmholtz derivatives | |
| Number of phases by pressure and specific enthalpy | |
| Number of phases by pressure and entropy | |
| Isentropic specific enthalpy in two phase region h(p,s) | |
| Properties on liquid boundary phase | |
| Properties on vapor boundary phase | |
| Time derivative function of density_ph | |
| Density as function of pressure and specific enthalpy | |
| Time derivative function of T_ph | |
| Temperature as function of pressure and specific enthalpy | |
| Smooth transition function between state_a and state_b | |
| Compute d for given p and T | |
| Compute h for given p and T | |
| Assert function for checking threshold to phase boundary |