Skip to content

Class: Bromine

Description

The Bromine class represents the properties and constants for Bromine (Br₂).
It provides physical and thermodynamic properties required in process engineering simulations and calculations.

Properties

  • name (string): Bromine
  • formula (string): Br₂
  • molecular_weight (float): 159.81 g/mol

Class Reference

class Bromine()

Parameters:
temperature: Temperature, default = Temperature(25,"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 Bromine class are calculated using the following methods, which are inherited from the base Component class.

  • phase(): Detects the phase of the substance ("liquid" or "gas") by comparing the system temperature and vapor pressure.
  • density():
    • Liquid Phase: Uses DIPPR or empirical correlations
    • Gas Phase: Uses the Ideal Gas Law
  • specific_heat(): Calculates specific heat capacity (Cp​) as a polynomial function of temperature
  • viscosity():
    • Liquid Phase: Calculates viscosity (μ) using DIPPR correlation
    • Gas Phase: Uses Sutherland’s Law
  • thermal_conductivity(): Calculates thermal conductivity (k) as a polynomial function of temperature
  • vapor_pressure(): Calculates vapor pressure (Pvap​) using an Antoine-type correlation
  • enthalpy(): Calculates the enthalpy of vaporization (ΔHvap​) using a correlation based on reduced temperature

Examples

from processpi.components import Bromine
from processpi.units import *

br = Bromine(temperature=Temperature(25, "C"))
print(br.density().to("kg/m3"))
print(br.viscosity().to("Pa·s"))
print(br.specific_heat().to("J/kgK"))
print(br.thermal_conductivity().to("W/mK"))
print(br.vapor_pressure().to("Pa"))
print(br.enthalpy().to("J/kg"))