30 plogf(
"vcs_inest_TP returned a failure flag\n");
50 for (
size_t k = 0; k <
m_nsp; k++) {
59 for (
size_t i = 0; i <
m_nsp; ++i) {
size_t m_numPhases
Number of Phases in the problem.
int m_doEstimateEquil
Setting for whether to do an initial estimate.
int vcs_evalSS_TP(int ipr, int ip1, double Temp, double pres)
int vcs_inest_TP()
Create an initial estimate of the solution to the thermodynamic equilibrium problem.
int vcs_TP(int ipr, int ip1, int maxit, double T, double pres)
Solve an equilibrium problem at a particular fixed temperature and pressure.
vector_fp m_feSpecies_new
Dimensionless new free energy for all the species in the mechanism at the new tentative T,...
int vcs_solve_TP(int print_lvl, int printDetails, int maxit)
Main routine that solves for equilibrium at constant T and P using a variant of the VCS method.
double m_pressurePA
Pressure.
vector_fp m_feSpecies_old
Free energy vector from the start of the current iteration.
double m_Faraday_dim
dimensionless value of Faraday's constant, F / RT (1/volt)
std::vector< char > m_SSPhase
Boolean indicating whether a species belongs to a single-species phase.
size_t m_nsp
Total number of species in the problems.
std::vector< std::unique_ptr< vcs_VolPhase > > m_VolPhaseList
Array of Phase Structures. Length = number of phases.
vector_fp m_SSfeSpecies
Standard state chemical potentials for species K at the current temperature and pressure.
void vcs_fePrep_TP()
Initialize the chemical potential of single species phases.
double m_temperature
Temperature (Kelvin)
Phase information and Phase calculations for vcs.
void sendToVCS_GStar(double *const gstar) const
Fill in the partial molar volume vector for VCS.
void setState_TP(const double temperature_Kelvin, const double pressure_PA)
Sets the temperature and pressure in this object and underlying ThermoPhase objects.
const double Faraday
Faraday constant [C/kmol].
const double GasConstant
Universal Gas Constant [J/kmol/K].
Namespace for the Cantera kernel.
Header for the object representing each phase within vcs.
#define plogf
define this Cantera function to replace printf
Header file for the internal object that holds the vcs equilibrium problem (see Class VCS_SOLVE and E...