49 Real
rachfordRice(Real vf, std::vector<Real> & Zi, std::vector<Real> & Ki)
const;
60 Real
rachfordRiceDeriv(Real vf, std::vector<Real> & Zi, std::vector<Real> & Ki)
const;
DualNumber< Real, DNDerivativeType, true > ADReal
const InputParameters & parameters() const
Base class for fluid states for miscible multiphase flow in porous media.
Compositional flash routines for miscible multiphase flow classes with multiple fluid components.
Real rachfordRice(Real vf, std::vector< Real > &Zi, std::vector< Real > &Ki) const
Rachford-Rice equation for vapor fraction.
Real rachfordRiceDeriv(Real vf, std::vector< Real > &Zi, std::vector< Real > &Ki) const
Derivative of Rachford-Rice equation wrt vapor fraction.
static InputParameters validParams()
const Real _nr_max_its
Maximum number of iterations for the Newton-Raphson routine.
const Real _nr_tol
Tolerance for Newton-Raphson iterations.
Real vaporMassFraction(Real Z0, Real K0, Real K1) const
Solves Rachford-Rice equation to provide vapor mass fraction.