-
Notifications
You must be signed in to change notification settings - Fork 30
Adding a thermodynamic model in NeqSim
A thermodynamc model is added to NeqSim by adding three classes:
- A system class implementing the SystemInterface
- A phase class implementing the PhaseInterface
- A component class implementing the ComponentInterface.
A number of attractive/repulsive/mixing rules are implemented in NeqSim. If new terms (eg. attractive/repulsive) of EoS should be implemented, see the description below.
The SRK-EoS is implemented by adding the classes: SystemSrkEos, PhaseSrkEosand ComponentSrk
The implementation of an Equation of State is typically based on Michelsen F-functions - and is described in this thesis: https://ntnuopen.ntnu.no/ntnu-xmlui/handle/11250/231326
Most F-function implementation details are found in the PhaseEoS class and the ComponentEoS class.
Alternative examples of adding a new EoS are:
A new alpha term of the EoS is added as described in the following examples: https://github.com/equinor/neqsim/tree/master/src/main/java/neqsim/thermo/component/atractiveEosTerm
Mixing rules are implemented in the following classes: https://github.com/equinor/neqsim/tree/master/src/main/java/neqsim/thermo/mixingRule
- Getting started with NeqSim and GitHub
- Getting started as a NeqSim developer
- The NeqSim parameter database
- Example of setting up a fluid and running simple flash calculations
- Select thermodynamic model and mixing rule
- Flash calculations and phase envelope calculations using NeqSim
- Calculation of thermodynamic and physical properties using NeqSim
- Oil Characterization in NeqSim
- Aqueous fluids and NeqSim
- Electrolytes and NeqSim
- Process Calculations in NeqSim