.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

NameDescription
SaturationProperties
ThermodynamicStateThermodynamic state
BasePropertiesBase properties of NH3
setState_phXSet state for pressure and specific enthalpy (X not used since single substance)
setState_dTXSet state for density and temperature (X not used since single substance)
setState_psXSet state for pressure and specific entropy (X not used since single substance)
setState_pTXSet state for pressure and temperature (X not used since single substance)
setBubbleStateReturn the thermodynamic state on the bubble line
setDewStateReturn the thermodynamic state on the dew line
density_phDensity as function of pressure and specific enthalpy
densityDensity as function of pressure and specific enthalpy
temperature_phTemperature as function of pressure and specific enthalpy
temperatureTemperature as function of pressure and specific enthalpy
pressurePressure w.r.t. thermodynamic state
specificInternalEnergySpecific internal energy w.r.t. thermodynamic state
specificEnthalpySpecific enthalpy w.r.t. thermodynamic state
specificEntropySpecific entropy w.r.t. thermodynamic state | use setState_phX function for input if necessary |
saturationTemperatureSaturation temperature in two-phase region
saturationTemperature_derpDerivative of saturation temperature in two-phase region
saturationTemperature_der_pDerivative of saturation temperature in two-phase region
bubbleDensityDensity of liquid phase w.r.t saturation pressure
dBubbleDensity_dPressureDerivative of liquid density in two-phase region w.r.t pressure
dBubbleDensity_dPressure_der_satDerivative of liquid density in two-phase region w.r.t pressure
dewDensityDensity of vapor phase w.r.t saturation pressure
dDewDensity_dPressureDerivative of vapor density in two-phase region w.r.t pressure
dDewDensity_dPressure_der_satDerivative of vapor density in two-phase region w.r.t pressure
bubbleEnthalpySpecific enthalpy of liquid phase w.r.t saturation pressure
dBubbleEnthalpy_dPressureDerivative of liquid specific enthalpy in two-phase region w.r.t pressure
dBubbleEnthalpy_dPressure_der_satDerivative of liquid specific enthalpy in two-phase region w.r.t pressure
dewEnthalpySpecific enthalpy of vapor phase w.r.t saturation pressure
dDewEnthalpy_dPressureDerivative of vapor specific enthalpy in two-phase region w.r.t pressure
dDewEnthalpy_dPressure_der_satDerivative of vapor specific enthalpy in two-phase region w.r.t pressure
dewEntropySpecific entropy of vapor phase w.r.t saturation pressure
dDewEntropy_dPressureDerivative of vapor specific entropy in two-phase region w.r.t pressure
dDewEntropy_dPressure_der_satTime derivative of vapor specific entropy in two-phase region w.r.t pressure | use setState_phX function for input
bubbleEntropySpecific entropy of liquid phase w.r.t saturation pressure
dBubbleEntropy_dPressureDerivative of liquid specific entropy in two-phase region w.r.t pressure
dBubbleEntropy_dPressure_der_satTime derivative of liquid specific entropy in two-phase region w.r.t pressure | use setState_phX function for input
saturationPressureSaturation pressure w.r.t. temperature
specificHeatCapacityCpSpecific heat capacity at constant pressure | turns inifity in two-phase region!
specificHeatCapacityCvSpecific heat capacity at constant volume
dynamicViscosity
thermalConductivity
surfaceTensionSurface tension as a function of temperature (below critical point)
velocityOfSoundVelocity of sound w.r.t. thermodynamic state (only valid for one-phase)
isothermalCompressibilityIsothermal compressibility w.r.t. thermodynamic state (only valid for one-phase)
isobaricExpansionCoefficientIsobaric expansion coefficient w.r.t. thermodynamic state (only valid for one-phase)
isentropicExponentIsentropic exponent gamma w.r.t. thermodynamic state | not defined in two-phase region | use setState_phX function for input
specificGibbsEnergySpecific gibbs energy w.r.t. thermodynamic state
specificHelmholtzEnergyHelmholtz energy w.r.t. thermodynamic state
density_derh_pDensity derivative by specific enthalpy
density_derp_hDensity derivative by pressure
isentropicEnthalpyIsentropic enthalpy of downstream pressure and upstream thermodynamic state (specific entropy)
specificEnthalpy_psX
derivsOf_ph
dt_phDensity and temperature w.r.t. pressure and specific enthalpy
dtofphOnePhaseDensity and temperature w.r.t. pressure and specific enthalpy in one-phase region
dtofpsOnePhaseInverse iteration in one phase region (d,T) = f(p,s)
f_NH3Calculation of helmholtz derivatives by density and temperature
fid_NH3Helmholtz coefficients of ideal part
fres_NH3Calculation of helmholtz derivatives
getPhase_phNumber of phases by pressure and specific enthalpy
getPhase_psNumber of phases by pressure and entropy
hofpsTwoPhaseIsentropic specific enthalpy in two phase region h(p,s)
NH3_liqofdTProperties on liquid boundary phase
NH3_vapofdTProperties on vapor boundary phase
rho_ph_derDerivative function of rho_ph
rho_props_phDensity as function of pressure and specific enthalpy
T_ph_derDerivative function of T_ph
T_props_phTemperature as function of pressure and specific enthalpy
setSmoothStateSmooth transition function between state_a and state_b
dofpTCompute d for given p and T
hofpTCompute h for given p and T
phaseBoundaryAssertAssert function for checking threshold to phase boundary

Revisions

Copyright (C) 2007-2021, XRG Simulation GmbH


Generated at 2025-12-12T19:14:01Z by OpenModelicaOpenModelica 1.25.7 using GenerateDoc.mos