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) {
void sendToVCS_GStar(double *const gstar) const
Fill in the partial molar volume vector for VCS.
double m_Faraday_dim
dimensionless value of Faraday's constant, F / RT (1/volt)
vector_fp m_SSfeSpecies
Standard state chemical potentials for species K at the current temperature and pressure.
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...
std::vector< std::unique_ptr< vcs_VolPhase > > m_VolPhaseList
Array of Phase Structures. Length = number of phases.
Header file for the internal object that holds the vcs equilibrium problem (see Class VCS_SOLVE and E...
Header for the object representing each phase within vcs.
int m_doEstimateEquil
Setting for whether to do an initial estimate.
int vcs_inest_TP()
Create an initial estimate of the solution to the thermodynamic equilibrium problem.
vector_fp m_feSpecies_old
Free energy vector from the start of the current iteration.
int vcs_evalSS_TP(int ipr, int ip1, double Temp, double pres)
double m_temperature
Temperature (Kelvin)
std::vector< char > m_SSPhase
Boolean indicating whether a species belongs to a single-species phase.
Phase information and Phase calculations for vcs.
double m_pressurePA
Pressure.
size_t m_nsp
Total number of species in the problems.
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
#define plogf
define this Cantera function to replace printf
Namespace for the Cantera kernel.
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...
size_t m_numPhases
Number of Phases in the problem.
void setState_TP(const double temperature_Kelvin, const double pressure_PA)
Sets the temperature and pressure in this object and underlying ThermoPhase objects.
void vcs_fePrep_TP()
Initialize the chemical potential of single species phases.