Stores the parametrization of EOS

new EOSParameters()

Based on comparing the parameters to the critical constants return which phase the system is in

getPhase(molecularFluid: MolecularFluid, temperature: Number, pressure: Numnber, volume: any, volumen: Number): String
Parameters
molecularFluid (MolecularFluid) instance of the MolecularFluid class
temperature (Number) in K
pressure (Numnber) in bar
volume (any)
volumen (Number) in L
Returns
String: "supercritial", "gas", or "liquid" or null

getPhasefromPhi

src/eos/phase.js

Comparing an array of fugacities to find out in which state the system is

getPhasefromPhi(phis: Array<number>): Number
Parameters
phis (Array<number>) An array of fugacities
Returns
Number: Index of the state the system is in

getProperties

src/eos/getEOS.js

Based on a MolecularFluid, temperature, and pressure or volume and the choice of equation of state (EOS) return the thermodynamic properties of the system

getProperties(molecularFluid: MolecularFluid, temperature: Number, options: Object): Object
Parameters
molecularFluid (MolecularFluid) instance of the MolecularFluid class
temperature (Number) in Kelvin
options (Object = {})
Name Description
options.pressure Number in bar
options.volume Number in L
Returns
Object:

This class stores properties of molecules

new MolecularFluid()

Some background here https://pubs.acs.org/doi/pdf/10.1021/ie2023004

solveZ(eosParameters: any)
Parameters
eosParameters (any)