Modelica.Media.R134a.R134a_ph

Medium model for R134a and p,h as states

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.

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 methode for estimation of visocsity 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.

Extends from Modelica.Media.Interfaces.PartialTwoPhaseMedium (Base class for two phase medium of one substance).

Package Content

NameDescription
ph_explicit=true 
dT_explicit=false 
r134aLimits 
r134aConstants 
Modelica.Media.R134a.R134a_ph.SaturationProperties SaturationProperties  
Modelica.Media.R134a.R134a_ph.ThermodynamicState ThermodynamicState Thermodynamic state
Modelica.Media.R134a.R134a_ph.BaseProperties BaseProperties Base properties of R134a
Modelica.Media.R134a.R134a_ph.setState_phX setState_phX Set state for pressure and specific enthalpy (X not used since single substance)
Modelica.Media.R134a.R134a_ph.setState_dTX setState_dTX Set state for density and temperature (X not used since single substance)
Modelica.Media.R134a.R134a_ph.setState_psX setState_psX Set state for pressure and specific entropy (X not used since single substance)
Modelica.Media.R134a.R134a_ph.setState_pTX setState_pTX Dummy function
Modelica.Media.R134a.R134a_ph.setBubbleState setBubbleState Return the thermodynamic state on the bubble line
Modelica.Media.R134a.R134a_ph.setDewState setDewState Return the thermodynamic state on the dew line
Modelica.Media.R134a.R134a_ph.density_ph density_ph Density as function of pressure and specific enthalpy
Modelica.Media.R134a.R134a_ph.density density Density as function of pressure and specific enthalpy | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.temperature_ph temperature_ph Temperature as function of pressure and specific enthalpy
Modelica.Media.R134a.R134a_ph.temperature temperature Temperature as function of pressure and specific enthalpy | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.pressure pressure Pressure w.r.t. thermodynamic state
Modelica.Media.R134a.R134a_ph.specificInternalEnergy specificInternalEnergy Specific internal energy w.r.t. thermodynamic state
Modelica.Media.R134a.R134a_ph.specificEnthalpy specificEnthalpy Specific enthalpy w.r.t. thermodynamic state | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.specificEntropy specificEntropy Specific entropy w.r.t. thermodynamic state | use setState_phX function for input if necessary
Modelica.Media.R134a.R134a_ph.saturationTemperature saturationTemperature Saturation temperature in two-phase region
Modelica.Media.R134a.R134a_ph.saturationTemperature_derp saturationTemperature_derp Derivative of saturation temperature in two-phase region
Modelica.Media.R134a.R134a_ph.saturationTemperature_der_p saturationTemperature_der_p Time derivative of saturation temperature in two-phase region
Modelica.Media.R134a.R134a_ph.bubbleDensity bubbleDensity Density of liquid phase w.r.t saturation pressure | use setSat_p function for input
Modelica.Media.R134a.R134a_ph.dBubbleDensity_dPressure dBubbleDensity_dPressure Derivative of liquid density in two-phase region w.r.t pressure
Modelica.Media.R134a.R134a_ph.dBubbleDensity_dPressure_der_sat dBubbleDensity_dPressure_der_sat Time derivative of liquid density in two-phase region w.r.t pressure
Modelica.Media.R134a.R134a_ph.dewDensity dewDensity Density of vapor phase w.r.t saturation pressure | use setSat_p function for input
Modelica.Media.R134a.R134a_ph.dDewDensity_dPressure dDewDensity_dPressure Derivative of vapor density in two-phase region w.r.t pressure
Modelica.Media.R134a.R134a_ph.dDewDensity_dPressure_der_sat dDewDensity_dPressure_der_sat Time derivative of vapor density in two-phase region w.r.t pressure
Modelica.Media.R134a.R134a_ph.bubbleEnthalpy bubbleEnthalpy Specific enthalpy of liquid phase w.r.t saturation pressure | use setSat_p function for input
Modelica.Media.R134a.R134a_ph.dBubbleEnthalpy_dPressure dBubbleEnthalpy_dPressure Derivative of liquid specific enthalpy in two-phase region w.r.t pressure
Modelica.Media.R134a.R134a_ph.dBubbleEnthalpy_dPressure_der_sat dBubbleEnthalpy_dPressure_der_sat Time derivative of liquid specific enthalpy in two-phase region w.r.t pressure
Modelica.Media.R134a.R134a_ph.dewEnthalpy dewEnthalpy Specific enthalpy of vapor phase w.r.t saturation pressure | use setSat_p function for input
Modelica.Media.R134a.R134a_ph.dDewEnthalpy_dPressure dDewEnthalpy_dPressure Derivative of vapor specific enthalpy in two-phase region w.r.t pressure
Modelica.Media.R134a.R134a_ph.dDewEnthalpy_dPressure_der_sat dDewEnthalpy_dPressure_der_sat Time derivative of vapor specific enthalpy in two-phase region w.r.t pressure
Modelica.Media.R134a.R134a_ph.dewEntropy dewEntropy Specific entropy of vapor phase w.r.t saturation pressure | use setSat_p function for input
Modelica.Media.R134a.R134a_ph.dDewEntropy_dPressure dDewEntropy_dPressure Derivative of vapor specific entropy in two-phase region w.r.t pressure | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.dDewEntropy_dPressure_der_sat dDewEntropy_dPressure_der_sat Time derivative of vapor specific entropy in two-phase region w.r.t pressure | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.bubbleEntropy bubbleEntropy Specific entropy of liquid phase w.r.t saturation pressure | use setSat_p function for input
Modelica.Media.R134a.R134a_ph.dBubbleEntropy_dPressure dBubbleEntropy_dPressure Derivative of liquid specific entropy in two-phase region w.r.t pressure | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.dBubbleEntropy_dPressure_der_sat dBubbleEntropy_dPressure_der_sat Time derivative of liquid specific entropy in two-phase region w.r.t pressure | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.saturationPressure saturationPressure Saturation pressure w.r.t. temperature
Modelica.Media.R134a.R134a_ph.specificHeatCapacityCp specificHeatCapacityCp Specific heat capacity at constant pressure | turns inifity in two-phase region! | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.specificHeatCapacityCv specificHeatCapacityCv Specific heat capacity at constant volume | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.dynamicViscosity dynamicViscosity Dynamic viscosity w.r.t. temperature and density | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.thermalConductivity thermalConductivity Thermal conductivity w.r.t. thermodynamic state | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.surfaceTension surfaceTension Surface tension as a function of temperature (below critical point)
Modelica.Media.R134a.R134a_ph.velocityOfSound velocityOfSound Velocity of sound w.r.t. thermodynamic state (only valid for one-phase)
Modelica.Media.R134a.R134a_ph.isothermalCompressibility isothermalCompressibility Isothermal compressibility w.r.t. thermodynamic state (only valid for one-phase)
Modelica.Media.R134a.R134a_ph.isobaricExpansionCoefficient isobaricExpansionCoefficient Isobaric expansion coefficient w.r.t. thermodynamic state (only valid for one-phase)
Modelica.Media.R134a.R134a_ph.isentropicExponent isentropicExponent Isentropic exponent gamma w.r.t. thermodynamic state | not defined in two-phase region | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.specificGibbsEnergy specificGibbsEnergy Specific gibbs energy w.r.t. thermodynamic state
Modelica.Media.R134a.R134a_ph.specificHelmholtzEnergy specificHelmholtzEnergy Helmholtz energy w.r.t. thermodynamic state
Modelica.Media.R134a.R134a_ph.density_derh_p density_derh_p Density derivative by specific enthalpy | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.density_derp_h density_derp_h Density derivative by pressure | use setState_phX function for input
Modelica.Media.R134a.R134a_ph.isentropicEnthalpy isentropicEnthalpy Isentropic enthalpy of downstream pressure and upstream thermodynamic state (specific entropy)
Modelica.Media.R134a.R134a_ph.derivsOf_ph derivsOf_ph Derivatives required for inversion of temperature and density functions
Modelica.Media.R134a.R134a_ph.dt_ph dt_ph Density and temperature w.r.t. pressure and specific enthalpy
Modelica.Media.R134a.R134a_ph.dtofphOnePhase dtofphOnePhase Density and temperature w.r.t. pressure and specific enthalpy in one-phase region
Modelica.Media.R134a.R134a_ph.dtofpsOnePhase dtofpsOnePhase Inverse iteration in one phase region (d,T) = f(p,s)
Modelica.Media.R134a.R134a_ph.f_R134a f_R134a Calculation of helmholtz derivatives by density and temperature
Modelica.Media.R134a.R134a_ph.fid_R134a fid_R134a Helmholtz coefficients of ideal part
Modelica.Media.R134a.R134a_ph.fres_R134a fres_R134a Calculation of helmholtz derivatives
Modelica.Media.R134a.R134a_ph.getPhase_ph getPhase_ph Number of phases by pressure and specific enthalpy
Modelica.Media.R134a.R134a_ph.getPhase_ps getPhase_ps Number of phases by pressure and entropy
Modelica.Media.R134a.R134a_ph.hofpsTwoPhase hofpsTwoPhase Isentropic specific enthalpy in two phase region h(p,s)
Modelica.Media.R134a.R134a_ph.R134a_liqofdT R134a_liqofdT Properties on liquid boundary phase
Modelica.Media.R134a.R134a_ph.R134a_vapofdT R134a_vapofdT Properties on vapor boundary phase
Modelica.Media.R134a.R134a_ph.rho_ph_der rho_ph_der Time derivative function of density_ph
Modelica.Media.R134a.R134a_ph.rho_props_ph rho_props_ph Density as function of pressure and specific enthalpy
Modelica.Media.R134a.R134a_ph.T_ph_der T_ph_der Time derivative function of T_ph
Modelica.Media.R134a.R134a_ph.T_props_ph T_props_ph Temperature as function of pressure and specific enthalpy
Modelica.Media.R134a.R134a_ph.setSmoothState setSmoothState Smooth transition function between state_a and state_b
Inherited
smoothModel=falseTrue if the (derived) model should not generate state events
onePhase=falseTrue if the (derived) model should never be called with two-phase inputs
fluidConstantsConstant data for the fluid
Modelica.Media.Interfaces.PartialTwoPhaseMedium.setSat_T setSat_T Return saturation property record from temperature
Modelica.Media.Interfaces.PartialTwoPhaseMedium.setSat_p setSat_p Return saturation property record from pressure
Modelica.Media.Interfaces.PartialTwoPhaseMedium.saturationPressure_sat saturationPressure_sat Return saturation temperature
Modelica.Media.Interfaces.PartialTwoPhaseMedium.saturationTemperature_sat saturationTemperature_sat Return saturation temperature
Modelica.Media.Interfaces.PartialTwoPhaseMedium.saturationTemperature_derp_sat saturationTemperature_derp_sat Return derivative of saturation temperature w.r.t. pressure
Modelica.Media.Interfaces.PartialTwoPhaseMedium.molarMass molarMass Return the molar mass of the medium
Modelica.Media.Interfaces.PartialTwoPhaseMedium.specificEnthalpy_pTX specificEnthalpy_pTX Return specific enthalpy from pressure, temperature and mass fraction
Modelica.Media.Interfaces.PartialTwoPhaseMedium.temperature_phX temperature_phX Return temperature from p, h, and X or Xi
Modelica.Media.Interfaces.PartialTwoPhaseMedium.density_phX density_phX Return density from p, h, and X or Xi
Modelica.Media.Interfaces.PartialTwoPhaseMedium.temperature_psX temperature_psX Return temperature from p, s, and X or Xi
Modelica.Media.Interfaces.PartialTwoPhaseMedium.density_psX density_psX Return density from p, s, and X or Xi
Modelica.Media.Interfaces.PartialTwoPhaseMedium.specificEnthalpy_psX specificEnthalpy_psX Return specific enthalpy from p, s, and X or Xi
Modelica.Media.Interfaces.PartialTwoPhaseMedium.setState_pT setState_pT Return thermodynamic state from p and T
Modelica.Media.Interfaces.PartialTwoPhaseMedium.setState_ph setState_ph Return thermodynamic state from p and h
Modelica.Media.Interfaces.PartialTwoPhaseMedium.setState_ps setState_ps Return thermodynamic state from p and s
Modelica.Media.Interfaces.PartialTwoPhaseMedium.setState_dT setState_dT Return thermodynamic state from d and T
Modelica.Media.Interfaces.PartialTwoPhaseMedium.setState_px setState_px Return thermodynamic state from pressure and vapour quality
Modelica.Media.Interfaces.PartialTwoPhaseMedium.setState_Tx setState_Tx Return thermodynamic state from temperature and vapour quality
Modelica.Media.Interfaces.PartialTwoPhaseMedium.vapourQuality vapourQuality Return vapour quality
Modelica.Media.Interfaces.PartialTwoPhaseMedium.pressure_dT pressure_dT Return pressure from d and T
Modelica.Media.Interfaces.PartialTwoPhaseMedium.specificEnthalpy_dT specificEnthalpy_dT Return specific enthalpy from d and T
Modelica.Media.Interfaces.PartialTwoPhaseMedium.specificEnthalpy_ps specificEnthalpy_ps Return specific enthalpy from p and s
Modelica.Media.Interfaces.PartialTwoPhaseMedium.temperature_ps temperature_ps Return temperature from p and s
Modelica.Media.Interfaces.PartialTwoPhaseMedium.density_ps density_ps Return density from p and s
Modelica.Media.Interfaces.PartialTwoPhaseMedium.specificEnthalpy_pT specificEnthalpy_pT Return specific enthalpy from p and T
Modelica.Media.Interfaces.PartialTwoPhaseMedium.density_pT density_pT Return density from p and T
ThermoStatesEnumeration type for independent variables
mediumName="unusablePartialMedium"Name of the medium
substanceNames={mediumName}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
extraPropertiesNames=fill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
singleState= true, if u and d are not a function of pressure
reducedX=true= true if medium contains the equation sum(X) = 1.0; set reducedX=true if only one substance (see docu for details)
fixedX=false= true if medium contains the equation X = reference_X
reference_p=101325Reference pressure of Medium: default 1 atmosphere
reference_T=298.15Reference temperature of Medium: default 25 deg Celsius
reference_X=fill(1/nX, nX)Default mass fractions of medium
p_default=101325Default value for pressure of medium (for initialization)
T_default=Modelica.SIunits.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
h_default=specificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
X_default=reference_XDefault value for mass fractions of medium (for initialization)
nS=size(substanceNames, 1)Number of substances
nX=nSNumber of mass fractions
nXi=if fixedX then 0 else if reducedX then nS - 1 else nSNumber of structurally independent mass fractions (see docu for details)
nC=size(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
C_nominal=1.0e-6*ones(nC)Default for the nominal values for the extra properties
Modelica.Media.Interfaces.PartialMedium.FluidConstants FluidConstants Critical, triple, molecular and other standard data of fluid
Modelica.Media.Interfaces.PartialMedium.prandtlNumber prandtlNumber Return the Prandtl number
Modelica.Media.Interfaces.PartialMedium.heatCapacity_cp heatCapacity_cp Alias for deprecated name
Modelica.Media.Interfaces.PartialMedium.heatCapacity_cv heatCapacity_cv Alias for deprecated name
Modelica.Media.Interfaces.PartialMedium.beta beta Alias for isobaricExpansionCoefficient for user convenience
Modelica.Media.Interfaces.PartialMedium.kappa kappa Alias of isothermalCompressibility for user convenience
Modelica.Media.Interfaces.PartialMedium.density_derp_T density_derp_T Return density derivative w.r.t. pressure at const temperature
Modelica.Media.Interfaces.PartialMedium.density_derT_p density_derT_p Return density derivative w.r.t. temperature at constant pressure
Modelica.Media.Interfaces.PartialMedium.density_derX density_derX Return density derivative w.r.t. mass fraction
Modelica.Media.Interfaces.PartialMedium.specificEntropy_pTX specificEntropy_pTX Return specific enthalpy from p, T, and X or Xi
Modelica.Media.Interfaces.PartialMedium.density_pTX density_pTX Return density from p, T, and X or Xi
MassFlowRate Type for mass flow rate with medium specific attributes
AbsolutePressure Type for absolute pressure with medium specific attributes
Density Type for density with medium specific attributes
DynamicViscosity Type for dynamic viscosity with medium specific attributes
EnthalpyFlowRate Type for enthalpy flow rate with medium specific attributes
MassFraction Type for mass fraction with medium specific attributes
MoleFraction Type for mole fraction with medium specific attributes
MolarMass Type for molar mass with medium specific attributes
MolarVolume Type for molar volume with medium specific attributes
IsentropicExponent Type for isentropic exponent with medium specific attributes
SpecificEnergy Type for specific energy with medium specific attributes
SpecificInternalEnergy Type for specific internal energy with medium specific attributes
SpecificEnthalpy Type for specific enthalpy with medium specific attributes
SpecificEntropy Type for specific entropy with medium specific attributes
SpecificHeatCapacity Type for specific heat capacity with medium specific attributes
SurfaceTension Type for surface tension with medium specific attributes
Temperature Type for temperature with medium specific attributes
ThermalConductivity Type for thermal conductivity with medium specific attributes
PrandtlNumber Type for Prandtl number with medium specific attributes
VelocityOfSound Type for velocity of sound with medium specific attributes
ExtraProperty Type for unspecified, mass-specific property transported by flow
CumulativeExtraProperty Type for conserved integral of unspecified, mass specific property
ExtraPropertyFlowRate Type for flow rate of unspecified, mass-specific property
IsobaricExpansionCoefficient Type for isobaric expansion coefficient with medium specific attributes
DipoleMoment Type for dipole moment with medium specific attributes
DerDensityByPressure Type for partial derivative of density with respect to pressure with medium specific attributes
DerDensityByEnthalpy Type for partial derivative of density with respect to enthalpy with medium specific attributes
DerEnthalpyByPressure Type for partial derivative of enthalpy with respect to pressure with medium specific attributes
DerDensityByTemperature Type for partial derivative of density with respect to temperature with medium specific attributes
DerTemperatureByPressure Type for partial derivative of temperature with respect to pressure with medium specific attributes
Modelica.Media.Interfaces.Types.FluidLimits FluidLimits Validity limits for fluid model
FixedPhase Phase of the fluid: 1 for 1-phase, 2 for two-phase, 0 for not known, e.g., interactive use
Modelica.Media.Interfaces.Types.Basic Basic The most basic version of a record used in several degrees of detail
Modelica.Media.Interfaces.Types.IdealGas IdealGas The ideal gas version of a record used in several degrees of detail
Modelica.Media.Interfaces.Types.TwoPhase TwoPhase The two phase fluid version of a record used in several degrees of detail

Modelica.Media.R134a.R134a_ph.SaturationProperties Modelica.Media.R134a.R134a_ph.SaturationProperties

Information

Extends from (Saturation properties of two phase medium).

Modelica.Media.R134a.R134a_ph.ThermodynamicState Modelica.Media.R134a.R134a_ph.ThermodynamicState

Thermodynamic state

Information

Extends from (Thermodynamic state of two phase medium).

Modelica.Media.R134a.R134a_ph.BaseProperties Modelica.Media.R134a.R134a_ph.BaseProperties

Base properties of R134a

Information

Extends from (Base properties (p, d, T, h, u, R, MM, sat) of two phase medium).

Parameters

NameDescription
Advanced
preferredMediumStates= true if StateSelect.prefer shall be used for the independent property variables of the medium

Modelica.Media.R134a.R134a_ph.setState_phX Modelica.Media.R134a.R134a_ph.setState_phX

Set state for pressure and specific enthalpy (X not used since single substance)

Information


This function should be used by default in order to calculate the thermodynamic state record used as input by many functions.

Example:

     parameter Medium.AbsolutePressure p = 3e5;
     parameter Medium.SpecificEnthalpy h = 4.2e5;

     Medium.Density rho;

     equation

     rho = Medium.density(setState_phX(p, h, fill(0, Medium.nX)));

Extends from (Return thermodynamic state as function of p, h and composition X or Xi).

Inputs

NameDescription
phase2 for two-phase, 1 for one-phase, 0 if not known
pPressure [Pa]
hSpecific enthalpy [J/kg]
X[:]Mass fractions [kg/kg]

Outputs

NameDescription
stateThermodynamic state record

Modelica.Media.R134a.R134a_ph.setState_dTX Modelica.Media.R134a.R134a_ph.setState_dTX

Set state for density and temperature (X not used since single substance)

Information


Although the medium package is explicit for pressure and specific enthalpy, this function may be used in order to calculate the thermodynamic state record used as input by many functions. It will calculate the missing states:

Example:

     parameter Medium.Density d = 4;
     parameter Medium.Temperature T = 298;

     Medium.SpecficEntropy s;

     equation

     s = Medium.specificEntropy(setState_dTX(d, T, fill(0, Medium.nX)));

Extends from (Return thermodynamic state as function of d, T and composition X or Xi).

Inputs

NameDescription
phase2 for two-phase, 1 for one-phase, 0 if not known
dDensity [kg/m3]
TTemperature [K]
X[:]Mass fractions [kg/kg]

Outputs

NameDescription
stateThermodynamic state record

Modelica.Media.R134a.R134a_ph.setState_psX Modelica.Media.R134a.R134a_ph.setState_psX

Set state for pressure and specific entropy (X not used since single substance)

Information


This function may be used in order to calculate the thermodynamic state record used as input by many functions. It will calculate the missing states:

Example:

     parameter Medium.AbsolutePressure p = 3e5;
     parameter Medium.SpecficEntropy s = 1.7e3;

     Medium.SpecficEnthalpy h;

     equation

     h = Medium.specificEnthalpy(setState_psX(p, s, fill(0, Medium.nX)));

Extends from (Return thermodynamic state as function of p, s and composition X or Xi).

Inputs

NameDescription
phase2 for two-phase, 1 for one-phase, 0 if not known
pPressure [Pa]
sSpecific entropy [J/(kg.K)]
X[:]Mass fractions [kg/kg]

Outputs

NameDescription
stateThermodynamic state record

Modelica.Media.R134a.R134a_ph.setState_pTX Modelica.Media.R134a.R134a_ph.setState_pTX

Dummy function

Information


This function is intentionally provided although it will result in an error. Please note, that pressure and temperature cannot be used to determine states in two-phase region. Therefore, in order to avoid wrong usage, the function will give an error message.

Extends from (Return thermodynamic state as function of p, T and composition X or Xi).

Inputs

NameDescription
phase2 for two-phase, 1 for one-phase, 0 if not known
pPressure [Pa]
TTemperature [K]
X[:]Mass fractions [kg/kg]

Outputs

NameDescription
stateThermodynamic state record

Modelica.Media.R134a.R134a_ph.setBubbleState Modelica.Media.R134a.R134a_ph.setBubbleState

Return the thermodynamic state on the bubble line

Information


This function shall be used in order to calculate the thermodynamic state record for the liquid phase boundary. It requires the saturation record as input which can be determined by both functions setSat_p and setSat_T:

Example:

    Medium.AbsolutePressure p=3e5;
    // Viscosity on the liquid phase boundary
    Modelica.SIunits.DynamicViscosity eta_liq;

    equation

    eta_liq = Medium.DynamicViscosity(Medium.setBubbleState(Medium.setSat_p(p)));

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return the thermodynamic state on the bubble line).

Inputs

NameDescription
satSaturation point
phasePhase: default is one phase

Outputs

NameDescription
stateComplete thermodynamic state info

Modelica.Media.R134a.R134a_ph.setDewState Modelica.Media.R134a.R134a_ph.setDewState

Return the thermodynamic state on the dew line

Information


This function shall be used in order to calculate the thermodynamic state record for the vapor phase boundary. It requires the saturation record as input which can be determined by both functions setSat_p and setSat_T:

Example:

    Medium.AbsolutePressure p=3e5;
    // Viscosity on the vapor phase boundary
    Modelica.SIunits.DynamicViscosity eta_vap;

    equation

    eta_vap = Medium.DynamicViscosity(Medium.setBubbleState(Medium.setSat_p(p)));

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return the thermodynamic state on the dew line).

Inputs

NameDescription
satSaturation point
phasePhase: default is one phase

Outputs

NameDescription
stateComplete thermodynamic state info

Modelica.Media.R134a.R134a_ph.density_ph Modelica.Media.R134a.R134a_ph.density_ph

Density as function of pressure and specific enthalpy

Information


This function calculates the density of R134a from the state variables p (absolute pressure) and h (specific enthalpy). The density is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]
phase2 for two-phase, 1 for one-phase, 0 if not known

Outputs

NameDescription
dDensity [kg/m3]

Modelica.Media.R134a.R134a_ph.density Modelica.Media.R134a.R134a_ph.density

Density as function of pressure and specific enthalpy | use setState_phX function for input

Information


This function calculates the density of R134a from the state record (e.g., use setState_phX function for input). The density is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Extends from (Return density).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
dDensity [kg/m3]

Modelica.Media.R134a.R134a_ph.temperature_ph Modelica.Media.R134a.R134a_ph.temperature_ph

Temperature as function of pressure and specific enthalpy

Information


This function calculates the Kelvin temperature of R134a from the state variables p (absolute pressure) and h (specific enthalpy). The temperature is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]
phase2 for two-phase, 1 for one-phase, 0 if not known

Outputs

NameDescription
TTemperature [K]

Modelica.Media.R134a.R134a_ph.temperature Modelica.Media.R134a.R134a_ph.temperature

Temperature as function of pressure and specific enthalpy | use setState_phX function for input

Information


This function calculates the Kelvin temperature of R134a from the state record (e.g., use setState_phX function for input). The temperature is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Extends from (Return temperature).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
TTemperature [K]

Modelica.Media.R134a.R134a_ph.pressure Modelica.Media.R134a.R134a_ph.pressure

Pressure w.r.t. thermodynamic state

Information


This function is included for the sake of completness.

Extends from (Return pressure).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
pPressure [Pa]

Modelica.Media.R134a.R134a_ph.specificInternalEnergy Modelica.Media.R134a.R134a_ph.specificInternalEnergy

Specific internal energy w.r.t. thermodynamic state

Information


This function calculates the specific internal energy of R134a from the state record (e.g., use setState_phX function for input). The specific internal energy is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Extends from (Return specific internal energy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
uSpecific internal energy [J/kg]

Modelica.Media.R134a.R134a_ph.specificEnthalpy Modelica.Media.R134a.R134a_ph.specificEnthalpy

Specific enthalpy w.r.t. thermodynamic state | use setState_phX function for input

Information


This function is included for the sake of completness.

Extends from (Return specific enthalpy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hSpecific enthalpy [J/kg]

Modelica.Media.R134a.R134a_ph.specificEntropy Modelica.Media.R134a.R134a_ph.specificEntropy

Specific entropy w.r.t. thermodynamic state | use setState_phX function for input if necessary

Information


This function calculates the specific entropy of R134a from the state record (e.g., use setState_phX function for input). The specific entropy is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Extends from (Return specific entropy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
sSpecific entropy [J/(kg.K)]

Modelica.Media.R134a.R134a_ph.saturationTemperature Modelica.Media.R134a.R134a_ph.saturationTemperature

Saturation temperature in two-phase region

Information


This function calculates the saturation temperature of R134a from the state variable p (absolute pressure). It is modelled by cubic splines which are fitted with non-equidistant grid points derived from the fundamental equation of state of Tillner-Roth and Baehr (1994) and the Maxwell criteria.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return saturation temperature).

Inputs

NameDescription
pPressure [Pa]

Outputs

NameDescription
TSaturation temperature [K]

Modelica.Media.R134a.R134a_ph.saturationTemperature_derp Modelica.Media.R134a.R134a_ph.saturationTemperature_derp

Derivative of saturation temperature in two-phase region

Information


This function calculates the derivative of saturation temperature of R134a with regard to the state variable p (absolute pressure). The non-derivative function is saturatuionTemperature.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return derivative of saturation temperature w.r.t. pressure).

Inputs

NameDescription
pPressure [Pa]

Outputs

NameDescription
dTpDerivative of saturation temperature w.r.t. pressure [K/Pa]

Modelica.Media.R134a.R134a_ph.saturationTemperature_der_p Modelica.Media.R134a.R134a_ph.saturationTemperature_der_p

Time derivative of saturation temperature in two-phase region

Information


This function calculates the time derivative of saturation temperature of R134a with regard to the time derivative of p. The non-derivative function is saturatuionTemperature.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
der_pTime derivative of pressure

Outputs

NameDescription
der_TsatTime derivative of saturation temperature

Modelica.Media.R134a.R134a_ph.bubbleDensity Modelica.Media.R134a.R134a_ph.bubbleDensity

Density of liquid phase w.r.t saturation pressure | use setSat_p function for input

Information


This function calculates the liquid phase density of R134a from the state variable p (absolute pressure). It is modelled by cubic splines which are fitted with non-equidistant grid points derived from the fundamental equation of state of Tillner-Roth and Baehr (1994) and the Maxwell criteria.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return bubble point density).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
dlBoiling curve density [kg/m3]

Modelica.Media.R134a.R134a_ph.dBubbleDensity_dPressure Modelica.Media.R134a.R134a_ph.dBubbleDensity_dPressure

Derivative of liquid density in two-phase region w.r.t pressure

Information


This function calculates the derivative of liquid density of R134a in the two-phase region with regard to the state variable p (absolute pressure). The non-derivative function is bubbleDensity.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return bubble point density derivative).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
ddldpBoiling curve density derivative [s2/m2]

Modelica.Media.R134a.R134a_ph.dBubbleDensity_dPressure_der_sat Modelica.Media.R134a.R134a_ph.dBubbleDensity_dPressure_der_sat

Time derivative of liquid density in two-phase region w.r.t pressure

Information


This function calculates the time derivative of liquid density of R134a with regard to the time derivative of p. The non-derivative function is bubbleDensity.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
satSaturation properties | pressure is used for interpolation
der_satDerivative of saturation properties

Outputs

NameDescription
der_ddldpTime derivative of liquid density in two-phase region w.r.t pressure

Modelica.Media.R134a.R134a_ph.dewDensity Modelica.Media.R134a.R134a_ph.dewDensity

Density of vapor phase w.r.t saturation pressure | use setSat_p function for input

Information


This function calculates the vapor phase density of R134a from the state variable p (absolute pressure). It is modelled by cubic splines which are fitted with non-equidistant grid points derived from the fundamental equation of state of Tillner-Roth and Baehr (1994) and the Maxwell criteria.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return dew point density).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
dvDew curve density [kg/m3]

Modelica.Media.R134a.R134a_ph.dDewDensity_dPressure Modelica.Media.R134a.R134a_ph.dDewDensity_dPressure

Derivative of vapor density in two-phase region w.r.t pressure

Information


This function calculates the derivative of vapor density of R134a in two-phase region with regard to the state variable p (absolute pressure). The non-derivative function is dewDensity.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return dew point density derivative).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
ddvdpSaturated steam density derivative [s2/m2]

Modelica.Media.R134a.R134a_ph.dDewDensity_dPressure_der_sat Modelica.Media.R134a.R134a_ph.dDewDensity_dPressure_der_sat

Time derivative of vapor density in two-phase region w.r.t pressure

Information


This function calculates the time derivative of vapor density of R134a with regard to the time derivative of p. The non-derivative function is dewDensity.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
satSaturation properties | pressure is used for interpolation
der_satDerivative of saturation properties

Outputs

NameDescription
der_ddvdpTime derivative of vapor density in two-phase region w.r.t pressure

Modelica.Media.R134a.R134a_ph.bubbleEnthalpy Modelica.Media.R134a.R134a_ph.bubbleEnthalpy

Specific enthalpy of liquid phase w.r.t saturation pressure | use setSat_p function for input

Information


This function calculates the liquid phase enthalpy of R134a from the state variable p (absolute pressure). It is modelled by cubic splines which are fitted with non-equidistant grid points derived from the fundamental equation of state of Tillner-Roth and Baehr (1994) and the Maxwell criteria.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return bubble point specific enthalpy).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
hlBoiling curve specific enthalpy [J/kg]

Modelica.Media.R134a.R134a_ph.dBubbleEnthalpy_dPressure Modelica.Media.R134a.R134a_ph.dBubbleEnthalpy_dPressure

Derivative of liquid specific enthalpy in two-phase region w.r.t pressure

Information


This function calculates the derivative of liquid enthalpy of R134a with regard to the state variable p (absolute pressure). The non-derivative function is bubbleEnthalpy.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return bubble point specific enthalpy derivative).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
dhldpBoiling curve specific enthalpy derivative [J.m.s2/kg2]

Modelica.Media.R134a.R134a_ph.dBubbleEnthalpy_dPressure_der_sat Modelica.Media.R134a.R134a_ph.dBubbleEnthalpy_dPressure_der_sat

Time derivative of liquid specific enthalpy in two-phase region w.r.t pressure

Information


This function calculates the time derivative of liquid specific enthalpy of R134a with regard to the time derivative of p. The non-derivative function is bubbleEnthalpy.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
satSaturation properties | pressure is used for interpolation
der_satDerivative of saturation properties

Outputs

NameDescription
der_dhldpTime derivative of liquid specific enthalpy in two-phase region w.r.t pressure

Modelica.Media.R134a.R134a_ph.dewEnthalpy Modelica.Media.R134a.R134a_ph.dewEnthalpy

Specific enthalpy of vapor phase w.r.t saturation pressure | use setSat_p function for input

Information


This function calculates the vapor phase enthalpy of R134a from the state variable p (absolute pressure). It is modelled by cubic splines which are fitted with non-equidistant grid points derived from the fundamental equation of state of Tillner-Roth and Baehr (1994) and the Maxwell criteria.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return dew point specific enthalpy).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
hvDew curve specific enthalpy [J/kg]

Modelica.Media.R134a.R134a_ph.dDewEnthalpy_dPressure Modelica.Media.R134a.R134a_ph.dDewEnthalpy_dPressure

Derivative of vapor specific enthalpy in two-phase region w.r.t pressure

Information


This function calculates the derivative of vapor enthalpy of R134a in the two-phase region with regard to the state variable p (absolute pressure). The non-derivative function is dewEnthalpy.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return dew point specific enthalpy derivative).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
dhvdpSaturated steam specific enthalpy derivative [J.m.s2/kg2]

Modelica.Media.R134a.R134a_ph.dDewEnthalpy_dPressure_der_sat Modelica.Media.R134a.R134a_ph.dDewEnthalpy_dPressure_der_sat

Time derivative of vapor specific enthalpy in two-phase region w.r.t pressure

Information


This function calculates the time derivative of vapor enthalpy of R134a with regard to the time derivative of p. The non-derivative function is dewEnthalpy.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
satSaturation properties | pressure is used for interpolation
der_satDerivative of saturation properties

Outputs

NameDescription
der_dhvdpDerivative of vapor specific enthalpy in two-phase region w.r.t pressure

Modelica.Media.R134a.R134a_ph.dewEntropy Modelica.Media.R134a.R134a_ph.dewEntropy

Specific entropy of vapor phase w.r.t saturation pressure | use setSat_p function for input

Information


This function calculates the vapor phase entropy of R134a from the state variable p (absolute pressure). It is modelled by cubic splines which are fitted with non-equidistant grid points derived from the fundamental equation of state of Tillner-Roth and Baehr (1994) and the Maxwell criteria.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return dew point specific entropy).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
svDew curve specific entropy [J/(kg.K)]

Modelica.Media.R134a.R134a_ph.dDewEntropy_dPressure Modelica.Media.R134a.R134a_ph.dDewEntropy_dPressure

Derivative of vapor specific entropy in two-phase region w.r.t pressure | use setState_phX function for input

Information


This function calculates the derivative of vapor entropy of R134a with regard to the state variable p (absolute pressure). The non-derivative function is dewEntropy.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
satSaturation properties | pressure is used for interpolation

Outputs

NameDescription
dsvdpDerivative of vapor specific entropy in two-phase region w.r.t pressure

Modelica.Media.R134a.R134a_ph.dDewEntropy_dPressure_der_sat Modelica.Media.R134a.R134a_ph.dDewEntropy_dPressure_der_sat

Time derivative of vapor specific entropy in two-phase region w.r.t pressure | use setState_phX function for input

Information


This function calculates the time derivative of vapor specific entropy of R134a with regard to the time derivative of p. The non-derivative function is dewEntropy.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
satSaturation properties | pressure is used for interpolation
der_satDerivative of saturation properties

Outputs

NameDescription
der_dsvdpDerivative of vapor specific entropy in two-phase region w.r.t pressure

Modelica.Media.R134a.R134a_ph.bubbleEntropy Modelica.Media.R134a.R134a_ph.bubbleEntropy

Specific entropy of liquid phase w.r.t saturation pressure | use setSat_p function for input

Information


This function calculates the liquid phase entropy of R134a from the state variable p (absolute pressure). It is modelled by cubic splines which are fitted with non-equidistant grid points derived from the fundamental equation of state of Tillner-Roth and Baehr (1994) and the Maxwell criteria.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return bubble point specific entropy).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
slBoiling curve specific entropy [J/(kg.K)]

Modelica.Media.R134a.R134a_ph.dBubbleEntropy_dPressure Modelica.Media.R134a.R134a_ph.dBubbleEntropy_dPressure

Derivative of liquid specific entropy in two-phase region w.r.t pressure | use setState_phX function for input

Information


This function calculates the derivative of liquid entropy of R134a with regard to the state variable p (absolute pressure). The non-derivative function is bubbleEntropy.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
satSaturation properties | pressure is used for interpolation

Outputs

NameDescription
dsldpDerivative of liquid specific entropy in two-phase region w.r.t pressure

Modelica.Media.R134a.R134a_ph.dBubbleEntropy_dPressure_der_sat Modelica.Media.R134a.R134a_ph.dBubbleEntropy_dPressure_der_sat

Time derivative of liquid specific entropy in two-phase region w.r.t pressure | use setState_phX function for input

Information


This function calculates the time derivative of liquid specific entropy of R134a with regard to the time derivative of p. The non-derivative function is bubbleEntropy.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
satSaturation properties | pressure is used for interpolation
der_satDerivative of saturation properties

Outputs

NameDescription
der_dsldpDerivative of liquid specific entropy in two-phase region w.r.t pressure

Modelica.Media.R134a.R134a_ph.saturationPressure Modelica.Media.R134a.R134a_ph.saturationPressure

Saturation pressure w.r.t. temperature

Information


This function calculates the saturation pressure of R134a from the state variable T (temperature). It is modelled by cubic splines which are fitted with non-equidistant grid points derived from the fundamental equation of state of Tillner-Roth and Baehr (1994) and the Maxwell criteria.

Restrictions

It is only valid in the two-phase region (i.e., ptriple ≤ p ≤ pcrit ).

Extends from (Return saturation pressure).

Inputs

NameDescription
TTemperature [K]

Outputs

NameDescription
pSaturation pressure [Pa]

Modelica.Media.R134a.R134a_ph.specificHeatCapacityCp Modelica.Media.R134a.R134a_ph.specificHeatCapacityCp

Specific heat capacity at constant pressure | turns inifity in two-phase region! | use setState_phX function for input

Information


This function calculates the specific heat capacity of R134a at constant pressure from the state record (e.g., use setState_phX function for input). The specific heat capacity is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Restrictions

This property is only defined in one-phase region.

Extends from (Return specific heat capacity at constant pressure).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
cpSpecific heat capacity at constant pressure [J/(kg.K)]

Modelica.Media.R134a.R134a_ph.specificHeatCapacityCv Modelica.Media.R134a.R134a_ph.specificHeatCapacityCv

Specific heat capacity at constant volume | use setState_phX function for input

Information


This function calculates the specific heat capacity of R134a at constant volume from the state record (e.g., use setState_phX function for input). The specific heat capacity is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Please note, that the function can also be called in the two-phase region, but the output is not continuous for a phase transition (see Tillner-Roth and Baehr, 1994). Values in two-phase region are considerably higher than in one-phase domain. The following figure just shows one-phase properties.

Extends from (Return specific heat capacity at constant volume).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
cvSpecific heat capacity at constant volume [J/(kg.K)]

Modelica.Media.R134a.R134a_ph.dynamicViscosity Modelica.Media.R134a.R134a_ph.dynamicViscosity

Dynamic viscosity w.r.t. temperature and density | use setState_phX function for input

Information


This function calculates the dynamic viscosity of R134a from the state record (e.g., use setState_phX function for input). The dynamic viscosity is modelled by the corresponding states method of Klein, McLinden and Laesecke (1997).

Restrictions

This property is only defined in one-phase region.

References

Klein, McLinden and Laesecke:
An improved extended corresponding states method for estimation of visocsity of pure refrigerants and mixtures. Int. J. Refrig., Vol. 20, No.3, pp. 208-217, 1997.

Extends from (Return dynamic viscosity).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
etaDynamic viscosity [Pa.s]

Modelica.Media.R134a.R134a_ph.thermalConductivity Modelica.Media.R134a.R134a_ph.thermalConductivity

Thermal conductivity w.r.t. thermodynamic state | use setState_phX function for input

Information


This function calculates the thermal conductivity of R134a from the state record (e.g., use setState_phX function for input). The thermal conductivity is modelled by the corresponding states model of McLinden, Klein. and Perkins (2000).

Restrictions

This property is only defined in one-phase region.

References

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.

Extends from (Return thermal conductivity).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
lambdaThermal conductivity [W/(m.K)]

Modelica.Media.R134a.R134a_ph.surfaceTension Modelica.Media.R134a.R134a_ph.surfaceTension

Surface tension as a function of temperature (below critical point)

Information


This function calculates the surface tension of R134a from the saturation record (e.g., use setSat_T function for input). The property is modelled by an approach of Okada and Higashi (1994).

Restrictions

This property is only defined in two-phase region.

References

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.

Extends from (Return surface tension sigma in the two phase region).

Inputs

NameDescription
satSaturation property record

Outputs

NameDescription
sigmaSurface tension sigma in the two phase region [N/m]

Modelica.Media.R134a.R134a_ph.velocityOfSound Modelica.Media.R134a.R134a_ph.velocityOfSound

Velocity of sound w.r.t. thermodynamic state (only valid for one-phase)

Information


This function calculates the velocity of sound of R134a from the state record (e.g., use setState_phX function for input). The velocity of sound is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Restrictions

This property is only defined in one-phase region.

Extends from (Return velocity of sound).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
aVelocity of sound [m/s]

Modelica.Media.R134a.R134a_ph.isothermalCompressibility Modelica.Media.R134a.R134a_ph.isothermalCompressibility

Isothermal compressibility w.r.t. thermodynamic state (only valid for one-phase)

Information


This function calculates the isothermal compressibility of R134a from the state record (e.g., use setState_phX function for input). The isothermal compressibility is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Restrictions

This property is only defined in one-phase region.

Extends from (Return overall the isothermal compressibility factor).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
kappaIsothermal compressibility [1/Pa]

Modelica.Media.R134a.R134a_ph.isobaricExpansionCoefficient Modelica.Media.R134a.R134a_ph.isobaricExpansionCoefficient

Isobaric expansion coefficient w.r.t. thermodynamic state (only valid for one-phase)

Information


This function calculates the isobaric expansion coefficient of R134a from the state record (e.g., use setState_phX function for input). The isobaric expansion coefficient is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Restrictions

This property is only defined in one-phase region.

Extends from (Return overall the isobaric expansion coefficient beta).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
betaIsobaric expansion coefficient [1/K]

Modelica.Media.R134a.R134a_ph.isentropicExponent Modelica.Media.R134a.R134a_ph.isentropicExponent

Isentropic exponent gamma w.r.t. thermodynamic state | not defined in two-phase region | use setState_phX function for input

Information


This function calculates the isentropic exponent of R134a from the state record (e.g., use setState_phX function for input). The isentropic exponent is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Restrictions

This property is only defined in one-phase region.

Extends from (Return isentropic exponent).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
gammaIsentropic exponent [1]

Modelica.Media.R134a.R134a_ph.specificGibbsEnergy Modelica.Media.R134a.R134a_ph.specificGibbsEnergy

Specific gibbs energy w.r.t. thermodynamic state

Information


This function calculates the specific Gibbs energy of R134a from the state record (e.g., use setState_phX function for input). The isentropic exponent is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Extends from (Return specific Gibbs energy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
gSpecific Gibbs energy [J/kg]

Modelica.Media.R134a.R134a_ph.specificHelmholtzEnergy Modelica.Media.R134a.R134a_ph.specificHelmholtzEnergy

Helmholtz energy w.r.t. thermodynamic state

Information


This function calculates the specific Helmholtz energy of R134a from the state record (e.g., use setState_phX function for input). The helmholtz energy is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994).

Extends from (Return specific Helmholtz energy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
fSpecific Helmholtz energy [J/kg]

Modelica.Media.R134a.R134a_ph.density_derh_p Modelica.Media.R134a.R134a_ph.density_derh_p

Density derivative by specific enthalpy | use setState_phX function for input

Information


This function calculates the density derivative w.r.t. specific enthalpy at constant pressure of R134a (e.g., use setState_phX function for input). The derivative is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994). It can be used for manual state transformations (e.g. from density to specific enthalpy).

Extends from (Return density derivative w.r.t. specific enthalpy at constant pressure).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
ddhpDensity derivative w.r.t. specific enthalpy [kg.s2/m5]

Modelica.Media.R134a.R134a_ph.density_derp_h Modelica.Media.R134a.R134a_ph.density_derp_h

Density derivative by pressure | use setState_phX function for input

Information


This function calculates the density derivative w.r.t. absolute pressure at constant specific enthalpy of R134a (e.g., use setState_phX function for input). The derivative is modelled by the fundamental equation of state of Tillner-Roth and Baehr (1994). It can be used for manual state transformations (e.g. from density to pressure).

Extends from (Return density derivative w.r.t. pressure at const specific enthalpy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
ddphDensity derivative w.r.t. pressure [s2/m2]

Modelica.Media.R134a.R134a_ph.isentropicEnthalpy Modelica.Media.R134a.R134a_ph.isentropicEnthalpy

Isentropic enthalpy of downstream pressure and upstream thermodynamic state (specific entropy)

Information


This function calculates the specific enthalpy of R134a for an isentropic pressure change from refState.p to p_downstream (e.g., use setState_phX function for input of refState).

The function can be used for instance to calculate an isentropic efficiency of a compressor or calculate the power consumption (obtained from the isentropic enthalpy) for a given efficiency.

Example:

     Medium.AbsolutePressure p_downstream=10e5;
     Medium.SpecificEnthalpy h_downstream=4.1e5;
     Medium.AbsolutePressure p_upstream=3e5;
     Medium.SpecificEnthalpy h_upstream=4.0e5;

     // Isentropic efficiency of a compressor:
     Real eta_is;

    equation

     h_is = isentropicEnthalpy(p_downstream, Medium.setState_phX(p_upstream, h_upstream));

     eta_is = (h_is-h_upstream)/(h_downstream - h_upstream);

Restrictions

The isentropic efficiency function should not be applied in liquid region.

Extends from (Return isentropic enthalpy).

Inputs

NameDescription
p_downstreamDownstream pressure [Pa]
refStateReference state for entropy

Outputs

NameDescription
h_isIsentropic enthalpy [J/kg]

Modelica.Media.R134a.R134a_ph.derivsOf_ph Modelica.Media.R134a.R134a_ph.derivsOf_ph

Derivatives required for inversion of temperature and density functions

Information


This function calculates the derivatives required for an inversion of temperature and density function.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]
phaseNumber of phases

Outputs

NameDescription
derivsInverse derivatives for density and temperature

Modelica.Media.R134a.R134a_ph.dt_ph Modelica.Media.R134a.R134a_ph.dt_ph

Density and temperature w.r.t. pressure and specific enthalpy

Information


This function calculates the density and temperature of R134a from absolute pressure and specific enthalpy. In one-phase region the function calls the fundamental helmholtz equation of Tillner-Roth (1994). In two-phase the density and temperature is computed from cubic splines for saturated pressure, liquid and vapor density.

Restrictions

The function cannot be inverted in a numerical way. Please use functions rho_props_ph and T_props_ph for this purpose.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]

Outputs

NameDescription
dDensity [kg/m3]
TTemperature [K]

Modelica.Media.R134a.R134a_ph.dtofphOnePhase Modelica.Media.R134a.R134a_ph.dtofphOnePhase

Density and temperature w.r.t. pressure and specific enthalpy in one-phase region

Information


This function calculates the density and temperature of R134a from absolute pressure and specific enthalpy in one-phase region. The function calls the fundamental helmholtz equation of Tillner-Roth (1994) which is requiring density and temperature for input. Thus, a newton iteration is performed to determine density and temperature. The newton iteration stops if the inputs for pressure difference delp and specific enthalpy difference delh are larger than the actual differences derived from the newton iteration.

Restrictions

The function shall only be used for one-phase inputs since the fundamental equation is not valid for two-phase states.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hEnthalpy [J/kg]
delpAbsolute error in p in iteration [Pa]
delhAbsolute error in h in iteration [J/kg]

Outputs

NameDescription
dDensity [kg/m3]
TTemperature [K]
error1 if did not converged

Modelica.Media.R134a.R134a_ph.dtofpsOnePhase Modelica.Media.R134a.R134a_ph.dtofpsOnePhase

Inverse iteration in one phase region (d,T) = f(p,s)

Information


This function calculates the density and temperature of R134a from absolute pressure and specific entropy in one-phase region. The function calls the fundamental helmholtz equation of Tillner-Roth (1994) which is requiring density and temperature for input. Thus, a newton iteration is performed to determine density and temperature. The newton iteration stops if the inputs for pressure difference delp and specific entropy difference dels are larger than the actual differences derived from the newton iteration.

Restrictions

The function shall only be used for one-phase inputs since the fundamental equation is not valid for two-phase states. The iteration could fail for liquid states with high pressures.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
sSpecific entropy [J/(kg.K)]
delpAbsolute iteration accuracy [Pa]
delsAbsolute iteration accuracy [J/(kg.K)]

Outputs

NameDescription
dDensity [kg/m3]
TTemperature [K]
errorError flag: trouble if different from 0

Modelica.Media.R134a.R134a_ph.f_R134a Modelica.Media.R134a.R134a_ph.f_R134a

Calculation of helmholtz derivatives by density and temperature

Information


This function adds the ideal gas contribution of the fundamental equation to the residual contribution and computes the helmholtz derivatives w.r.t. temperature and density.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dDensity [kg/m3]
TTemperature [K]

Outputs

NameDescription
fHelmholtz derivatives

Modelica.Media.R134a.R134a_ph.fid_R134a Modelica.Media.R134a.R134a_ph.fid_R134a

Helmholtz coefficients of ideal part

Information


This function computes the ideal gas helmholtz derivatives of the fundamental equation of Tillner-Roth and Baehr for R134a (1994) w.r.t. to reduced temperature (tau=T_crit/T) and reduced density (delta=rho/rho_crit).

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
deltaReduced density (delta=d/dcrit)
tauReduced temperature (tau=Tcrit/T)

Outputs

NameDescription
fidHelmholtz derivatives of ideal part

Modelica.Media.R134a.R134a_ph.fres_R134a Modelica.Media.R134a.R134a_ph.fres_R134a

Calculation of helmholtz derivatives

Information


This function computes the residual helmholtz derivatives of the fundamental equation of Tillner-Roth and Baehr for R134a (1994) w.r.t. to reduced temperature (tau=T_crit/T) and reduced density (delta=rho/rho_crit). The function can be used for special properties depending just on the residual derivative parts.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
deltaReduced density (delta=d/dcrit)
tauReduced temperature (tau=Tcrit/T)

Outputs

NameDescription
fHelmholtz derivatives

Modelica.Media.R134a.R134a_ph.getPhase_ph Modelica.Media.R134a.R134a_ph.getPhase_ph

Number of phases by pressure and specific enthalpy

Information


This function computes the number of phases for R134a depending on the inputs for absolute pressure and specific enthalpy. It makes use of cubic spline functions for liquid and vapor specific enthalpy.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]

Outputs

NameDescription
phaseNumber of phases

Modelica.Media.R134a.R134a_ph.getPhase_ps Modelica.Media.R134a.R134a_ph.getPhase_ps

Number of phases by pressure and entropy

Information


This function computes the number of phases for R134a depending on the inputs for absolute pressure and specific entropy. It makes use of cubic spline functions for liquid and vapor specific entropy.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
sSpecific entropy [J/(kg.K)]

Outputs

NameDescription
phaseNumber of phases

Modelica.Media.R134a.R134a_ph.hofpsTwoPhase Modelica.Media.R134a.R134a_ph.hofpsTwoPhase

Isentropic specific enthalpy in two phase region h(p,s)

Information


This function computes the specific enthalpy in two-phase for R134a depending on the inputs for absolute pressure and specific entropy. It makes use of cubic spline functions for liquid and vapor specific enthalpy as well as specific entropy.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
sSpecific entropy [J/(kg.K)]

Outputs

NameDescription
hSpecific enthalpy [J/kg]

Modelica.Media.R134a.R134a_ph.R134a_liqofdT Modelica.Media.R134a.R134a_ph.R134a_liqofdT

Properties on liquid boundary phase

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
TTemperature [K]

Outputs

NameDescription
liqProperties on liquid boundary phase

Modelica.Media.R134a.R134a_ph.R134a_vapofdT Modelica.Media.R134a.R134a_ph.R134a_vapofdT

Properties on vapor boundary phase

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
TTemperature [K]

Outputs

NameDescription
vapProperties on vapor boundary phase

Modelica.Media.R134a.R134a_ph.rho_ph_der Modelica.Media.R134a.R134a_ph.rho_ph_der

Time derivative function of density_ph

Information


This function calculates the derivative of density w.r.t. time. It is used as derivative function for  rho_props_ph.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]
derivsRecord for derivatives
p_derDerivative of pressure
h_derDerivative of specific enthalpy

Outputs

NameDescription
d_derDerivative of density

Modelica.Media.R134a.R134a_ph.rho_props_ph Modelica.Media.R134a.R134a_ph.rho_props_ph

Density as function of pressure and specific enthalpy

Information


This function integrates the derivative of density w.r.t. time in order to allow a numerical inversion for the complex fundamental equation of state.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]
derivsRecord for the calculation of rho_ph_der

Outputs

NameDescription
dDensity [kg/m3]

Modelica.Media.R134a.R134a_ph.T_ph_der Modelica.Media.R134a.R134a_ph.T_ph_der

Time derivative function of T_ph

Information


This function calculates the derivative of temperature w.r.t. time. It is used as derivative function for  T_props_ph.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]
derivsAuxiliary record
p_derDerivative of pressure
h_derDerivative of specific enthalpy

Outputs

NameDescription
T_derDerivative of temperature

Modelica.Media.R134a.R134a_ph.T_props_ph Modelica.Media.R134a.R134a_ph.T_props_ph

Temperature as function of pressure and specific enthalpy

Information


This function integrates the derivative of temperature w.r.t. time in order to allow a numerical inversion for the complex fundamental equation of state.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]
derivsRecord for the calculation of T_ph_der

Outputs

NameDescription
TTemperature [K]

Modelica.Media.R134a.R134a_ph.setSmoothState Modelica.Media.R134a.R134a_ph.setSmoothState

Smooth transition function between state_a and state_b

Information

Extends from (Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b).

Inputs

NameDescription
xm_flow or dp
state_aThermodynamic state if x > 0
state_bThermodynamic state if x < 0
x_smallSmooth transition in the region -x_small < x < x_small

Outputs

NameDescription
stateSmooth thermodynamic state for all x (continuous and differentiable)

Automatically generated Mon Sep 23 17:21:04 2013.