Skip to content

Class: AceticAcid

Description

The AceticAcid class represents the properties and constants for Acetic Acid (CH3​COOH).

This class provides a comprehensive set of physical and thermodynamic properties for Acetic Acid, which are essential for various process engineering calculations. These properties are stored as class attributes and are available for use by other calculation modules within the ProcessPI library.

Properties

  • name (string): The common name of the compound.
  • formula (string): The chemical formula (CH3​COOH).
  • molecular_weight (float): The molar mass in g/mol.

Class Reference

class AecticAcid()

A class for handling Acetic Acid properties.

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 AceticAcid 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. The rule is: "gas" if P < Pvap,​ otherwise "liquid".
  • density():

    • Gas Phase: Calculates density using the Ideal Gas Law

    • Liquid Phase: Calculates density using the DIPPR correlation

  • specific_heat(): Calculates specific heat capacity (Cp​) as a polynomial function of temperature

  • viscosity():

    • Liquid Phase: Calculates viscosity (μ) using the DIPPR correlation:

    • Gas Phase: Calculates viscosity using Sutherland's Law.

  • thermal_conductivity(): Calculates thermal conductivity (k) as a polynomial function of temperature

  • vapor_pressure(): Calculates vapor pressure (Pvap​) using the Antoine-style equation

  • enthalpy(): Calculates the enthalpy of vaporization (ΔHvap​) using a correlation based on reduced temperature
    ​

Examples

1. Acetic acid at 35 °C

# Importing AceticAcid
>>> from processpi.components import AceticAcid
# Importing Units
>>> from processpi.units import *
# Creating AceticAcid at 35 C Temperature
>>> acetic_acid = AceticAcid(temperature=Temperature(35, "C"))
>>> print(acetic_acid.density().to("kg/m3"))
1031.768882 kg/m3

>>> print(acetic_acid.viscosity().to("Pa·s"))
0.000967 Pa·s (dynamic)

>>> print(acetic_acid.specific_heat().to("J/kgK"))
2099.910505 J/kgK

>>> print(acetic_acid.thermal_conductivity().to("W/mK"))
0.157485 W/mK

>>> print(acetic_acid.vapor_pressure().to("Pa"))
3588.50083 Pa

>>> print(acetic_acid.enthalpy().to("J/kg"))
390401.05436 J/kg

2. Acetic acid at higher temperature (60 °C) with unit conversion

# Creating AceticAcid at 60 C Temperature
>>> acetic_acid_high = AceticAcid(temperature=Temperature(60, "C"))
>>> print(acetic_acid_high.density().to("lb/ft3"))
62.766571 lb/ft3

>>> print(acetic_acid_high.viscosity().to("cP"))
0.702078 cP (dynamic)