CoolProp
4.2.5
An open-source fluid property and humid air property database
|
#include <Mixtures.h>
Public Member Functions | |
SuccessiveSubstitutionVLE () | |
double | call (double beta, double T, double p, const std::vector< double > &z, std::vector< double > &K) |
Public Attributes | |
bool | useNR |
If true (default is false), will call Newton-Raphson after either solving to tolerance, or taking Nmax steps. More... | |
bool | logging |
If true (default is false), intermediate steps will be stored for each call in the step_logger structure. More... | |
int | Nsteps |
How many steps were taken to yield tolerance. More... | |
int | Nstep_max |
The maximum number of steps to take, can be changed as needed. More... | |
Mixture * | Mix |
Pointer to the Mixture class instance. More... | |
double | rhobar_liq |
The molar density of the liquid phase [mol/m^3]. More... | |
double | rhobar_vap |
The molar density of the vapor phase [mol/m^3]. More... | |
std::vector< double > | K |
std::vector< double > | ln_phi_liq |
std::vector< double > | ln_phi_vap |
std::vector< double > | x |
std::vector< double > | y |
std::vector < SuccessiveSubstitutionStep > | step_logger |
A class to do successive substitution given guess values for vapor-liquid equilibria. This class will then be included in the Mixture class
A class is used rather than a function so that it is easier to store iteration histories, additional output values, etc.
Definition at line 304 of file Mixtures.h.
|
inline |
Definition at line 321 of file Mixtures.h.
double SuccessiveSubstitutionVLE::call | ( | double | beta, |
double | T, | ||
double | p, | ||
const std::vector< double > & | z, | ||
std::vector< double > & | K | ||
) |
Definition at line 2316 of file Mixtures.cpp.
std::vector<double> SuccessiveSubstitutionVLE::K |
Definition at line 314 of file Mixtures.h.
std::vector<double> SuccessiveSubstitutionVLE::ln_phi_liq |
Definition at line 314 of file Mixtures.h.
std::vector<double> SuccessiveSubstitutionVLE::ln_phi_vap |
Definition at line 314 of file Mixtures.h.
bool SuccessiveSubstitutionVLE::logging |
If true (default is false), intermediate steps will be stored for each call in the step_logger structure.
Definition at line 308 of file Mixtures.h.
Mixture* SuccessiveSubstitutionVLE::Mix |
Pointer to the Mixture class instance.
Definition at line 311 of file Mixtures.h.
int SuccessiveSubstitutionVLE::Nstep_max |
The maximum number of steps to take, can be changed as needed.
Definition at line 310 of file Mixtures.h.
int SuccessiveSubstitutionVLE::Nsteps |
How many steps were taken to yield tolerance.
Definition at line 309 of file Mixtures.h.
double SuccessiveSubstitutionVLE::rhobar_liq |
The molar density of the liquid phase [mol/m^3].
Definition at line 312 of file Mixtures.h.
double SuccessiveSubstitutionVLE::rhobar_vap |
The molar density of the vapor phase [mol/m^3].
Definition at line 312 of file Mixtures.h.
std::vector<SuccessiveSubstitutionStep> SuccessiveSubstitutionVLE::step_logger |
Definition at line 319 of file Mixtures.h.
bool SuccessiveSubstitutionVLE::useNR |
If true (default is false), will call Newton-Raphson after either solving to tolerance, or taking Nmax steps.
Definition at line 307 of file Mixtures.h.
std::vector<double> SuccessiveSubstitutionVLE::x |
Definition at line 314 of file Mixtures.h.
std::vector<double> SuccessiveSubstitutionVLE::y |
Definition at line 314 of file Mixtures.h.