Class: Ammonia
Description
The Ammonia class represents the properties and constants for Ammonia (NH₃).
It provides physical and thermodynamic properties required in process engineering simulations and calculations.
Properties
name(string): Ammoniaformula(string): NH₃molecular_weight(float): 17.03 g/mol
Class Reference
class Ammonia()
Parameters:
* temperature: Temperature, default = Temperature(35,"C")
* pressure: Pressure, default = Pressure(1,"atm")
* density: Density, default = None
* specific_heat: SpecificHeat, default = None
* viscosity: Viscosity, default = None
* thermal_conductivity: ThermalConductivity, default = None
* vapor_pressure: Pressure, default = None
* enthalpy: HeatOfVaporization, default = None
Methods
The properties of the Ammonia class are calculated using the following methods, which are inherited from the base Component class.
phase(): Detects the phase of the substance ("gas"or"liquid") by comparing the system pressure to the calculated vapor pressure.density():- Gas Phase: Calculates density using the Ideal Gas Law
- Liquid Phase: Calculates density using the DIPPR correlation
specific_heat():- Gas Phase: Ideal-gas heat capacity (Cp), DIPPR Eq. 107 with the constants of Perry's Chemical Engineers' Handbook, 8th ed., Table 2-156
- Liquid Phase: Perry's Table 2-153, Eq. (2), a function of reduced temperature
viscosity():- Liquid Phase: Calculates viscosity (μ) using the DIPPR correlation
- Gas Phase: Calculates viscosity using Sutherland's Law
thermal_conductivity():- Gas Phase: Vapor thermal conductivity (k), DIPPR Eq. 102 with the constants of Perry's 8th ed., Table 2-314
- Liquid Phase: Polynomial function of temperature (Perry's Table 2-315)
vapor_pressure(): Calculates vapor pressure (Pvap) using the Antoine-style equationenthalpy(): Calculates the enthalpy of vaporization (ΔHvap) using a correlation based on reduced temperature
Examples
from processpi.components import Ammonia
from processpi.units import *
ammonia = Ammonia(temperature=Temperature(35, "C"))
print(ammonia.density().to("kg/m3"))
print(ammonia.viscosity().to("Pa·s"))
print(ammonia.specific_heat().to("J/kgK"))
print(ammonia.thermal_conductivity().to("W/mK"))
print(ammonia.vapor_pressure().to("Pa"))
print(ammonia.enthalpy().to("J/kg"))