Skip to content
Even Solbraa edited this page Mar 10, 2023 · 29 revisions

The CPA-EoS

An example of using the the CPA-EoS from NeqSim is given in the following python script:

import neqsim from neqsim.thermo.thermoTools import fluid, TPflash from neqsim.thermo import dataFrame

system = fluid('cpa') system.addComponent('methane', 0.5, 'mol/sec') system.addComponent('water', 0.5, 'mol/sec') system.setMixingRule(10) # Composition dependent and temperature dependent mixing rule system.setPressure(10.0, 'bara') system.setTemperature(25.0, 'C')

TPflash(system)

dataFrame(system)

Clone this wiki locally