.ThermofluidStream.Media.XRGMedia.NH3_ph

XRG_Media: medium model for NH3 (R717) and p,h as states

Information

Calculation of fluid properties for Ammonia (R717) in the fluid region of 0.0606 bar (Triple pressure) to 10000 bar and 195.5 Kelvin (Triple temperature) to 700 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.
Fenghour, A. et al.:
The Viscosity of Ammonia. J. Phys. Chem. Ref. Data, Vol. 24, No. 5, 1995.
Yata et al.:
Equations of Thermal Conductivity of Natural Refrigerants. International Journal of Thermophysics, Vol. 22, No. 5, 2001.

Contents

Name Description
 SaturationProperties
 ThermodynamicState Thermodynamic state
 BaseProperties Base properties of NH3
 setState_phX Set state for pressure and specific enthalpy (X not used since single substance)
 setState_dTX Set state for density and temperature (X not used since single substance)
 setState_psX Set state for pressure and specific entropy (X not used since single substance)
 setState_pTX Set state for pressure and temperature (X not used since single substance)
 setBubbleState Return the thermodynamic state on the bubble line
 setDewState Return the thermodynamic state on the dew line
 density_ph Density as function of pressure and specific enthalpy
 density Density as function of pressure and specific enthalpy
 temperature_ph Temperature as function of pressure and specific enthalpy
 temperature Temperature as function of pressure and specific enthalpy
 pressure Pressure w.r.t. thermodynamic state
 specificInternalEnergy Specific internal energy w.r.t. thermodynamic state
 specificEnthalpy Specific enthalpy w.r.t. thermodynamic state
 specificEntropy Specific entropy w.r.t. thermodynamic state | use setState_phX function for input if necessary |
 saturationTemperature Saturation temperature in two-phase region
 saturationTemperature_derp Derivative of saturation temperature in two-phase region
 saturationTemperature_der_p Derivative of saturation temperature in two-phase region
 bubbleDensity Density of liquid phase w.r.t saturation pressure
 dBubbleDensity_dPressure Derivative of liquid density in two-phase region w.r.t pressure
 dBubbleDensity_dPressure_der_sat Derivative of liquid density in two-phase region w.r.t pressure
 dewDensity Density of vapor phase w.r.t saturation pressure
 dDewDensity_dPressure Derivative of vapor density in two-phase region w.r.t pressure
 dDewDensity_dPressure_der_sat Derivative of vapor density in two-phase region w.r.t pressure
 bubbleEnthalpy Specific enthalpy of liquid phase w.r.t saturation pressure
 dBubbleEnthalpy_dPressure Derivative of liquid specific enthalpy in two-phase region w.r.t pressure
 dBubbleEnthalpy_dPressure_der_sat Derivative of liquid specific enthalpy in two-phase region w.r.t pressure
 dewEnthalpy Specific enthalpy of vapor phase w.r.t saturation pressure
 dDewEnthalpy_dPressure Derivative of vapor specific enthalpy in two-phase region w.r.t pressure
 dDewEnthalpy_dPressure_der_sat Derivative of vapor specific enthalpy in two-phase region w.r.t pressure
 dewEntropy Specific entropy of vapor phase w.r.t saturation pressure
 dDewEntropy_dPressure Derivative of vapor specific entropy in two-phase region w.r.t pressure
 dDewEntropy_dPressure_der_sat Time derivative of vapor specific entropy in two-phase region w.r.t pressure | use setState_phX function for input
 bubbleEntropy Specific entropy of liquid phase w.r.t saturation pressure
 dBubbleEntropy_dPressure Derivative of liquid specific entropy in two-phase region w.r.t pressure
 dBubbleEntropy_dPressure_der_sat Time derivative of liquid specific entropy in two-phase region w.r.t pressure | use setState_phX function for input
 saturationPressure Saturation pressure w.r.t. temperature
 specificHeatCapacityCp Specific heat capacity at constant pressure | turns inifity in two-phase region!
 specificHeatCapacityCv Specific heat capacity at constant volume
 dynamicViscosity
 thermalConductivity
 surfaceTension Surface tension as a function of temperature (below critical point)
 velocityOfSound Velocity of sound w.r.t. thermodynamic state (only valid for one-phase)
 isothermalCompressibility Isothermal compressibility w.r.t. thermodynamic state (only valid for one-phase)
 isobaricExpansionCoefficient Isobaric expansion coefficient w.r.t. thermodynamic state (only valid for one-phase)
 isentropicExponent Isentropic exponent gamma w.r.t. thermodynamic state | not defined in two-phase region | use setState_phX function for input
 specificGibbsEnergy Specific gibbs energy w.r.t. thermodynamic state
 specificHelmholtzEnergy Helmholtz energy w.r.t. thermodynamic state
 density_derh_p Density derivative by specific enthalpy
 density_derp_h Density derivative by pressure
 isentropicEnthalpy Isentropic enthalpy of downstream pressure and upstream thermodynamic state (specific entropy)
 specificEnthalpy_psX
 derivsOf_ph
 dt_ph Density and temperature w.r.t. pressure and specific enthalpy
 dtofphOnePhase Density and temperature w.r.t. pressure and specific enthalpy in one-phase region
 dtofpsOnePhase Inverse iteration in one phase region (d,T) = f(p,s)
 f_NH3 Calculation of helmholtz derivatives by density and temperature
 fid_NH3 Helmholtz coefficients of ideal part
 fres_NH3 Calculation of helmholtz derivatives
 getPhase_ph Number of phases by pressure and specific enthalpy
 getPhase_ps Number of phases by pressure and entropy
 hofpsTwoPhase Isentropic specific enthalpy in two phase region h(p,s)
 NH3_liqofdT Properties on liquid boundary phase
 NH3_vapofdT Properties on vapor boundary phase
 rho_ph_der Derivative function of rho_ph
 rho_props_ph Density as function of pressure and specific enthalpy
 T_ph_der Derivative function of T_ph
 T_props_ph Temperature as function of pressure and specific enthalpy
 setSmoothState Smooth transition function between state_a and state_b
 dofpT Compute d for given p and T
 hofpT Compute h for given p and T
 phaseBoundaryAssert Assert function for checking threshold to phase boundary

Revisions

Copyright (C) 2007-2021, XRG Simulation GmbH


Generated at 2026-04-15T18:18:36Z by OpenModelicaOpenModelica 1.26.3 using GenerateDoc.mos