Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems
Equation Class Reference

Calculates thermodynamic properties of fluid phases based on a cubic equation of state model. More...

#include <CubicEOS.hpp>

Public Member Functions

 Equation (EquationSpecs const &specs)
 Construct an Equation object representing a cubic equation of state.
 
 Equation (Equation const &other)
 Construct a copy of an Equation object.
 
virtual ~Equation ()
 Destroy this Equation object.
 
auto operator= (Equation other) -> Equation &
 Assign an Equation object to this.
 
auto equationSpecs () const -> EquationSpecs const &
 Return the underlying EquationSpecs object used to create this Equation object.
 
auto compute (Props &props, real const &T, real const &P, ArrayXrConstRef const &x) -> void
 Compute the thermodynamic properties of the phase. More...
 

Detailed Description

Calculates thermodynamic properties of fluid phases based on a cubic equation of state model.

Member Function Documentation

◆ compute()

auto compute ( Props props,
real const &  T,
real const &  P,
ArrayXrConstRef const &  x 
) -> void

Compute the thermodynamic properties of the phase.

Parameters
[in]propsThe evaluated thermodynamic properties of the phase.
TThe temperature of the phase (in K)
PThe pressure of the phase (in Pa)
xThe mole fractions of the species in the phase (in mol/mol)

The documentation for this class was generated from the following file: