/MBWREoS.jl

Primary LanguageJuliaMIT LicenseMIT

MBWREoS.jl

The package implements functions to work with substances and mixtures described by the modified Benedict-Webb-Rubin (MBWR) equation of state.

Equation of state

To construct an set of parameters for a component, use

MBWREoSComponent(;name="No Name", critical_pressure, critical_temperature, acentric_factor, Zc, molar_mass, carbon_number::Integer)

The temperatures must be in absolute scale (e.g., in Kelvins).

The parameters can be loaded from a file (using CubicEoSDatabase.jl):

methane = load(MBWREoSComponent, name = "methane")

Mixtures are constructed via

MBWREoSMixture(; components::AbstractVector{<:MBWREoSComponent})

Basic thermodynamics

To get the pressure of a pure component:

pressure(component; nmol, volume, temperature)

To get the estimate of the saturation pressure at a given temperature:

wilson_saturation_pressure(component, RT)