33 plogf(
"vcs_inest_TP returned a failure flag\n");
void sendToVCS_GStar(double *const gstar) const
Fill in the partial molar volume vector for VCS.
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.
std::vector< vcs_VolPhase * > m_VolPhaseList
Array of Phase Structures. Length = number of phases.
void vcs_nondim_TP()
Nondimensionalize the problem data.
vector_fp m_feSpecies_new
Dimensionless new free energy for all the species in the mechanism at the new tentative T...
void vcs_redim_TP()
Redimensionalize the problem data.
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.
size_t m_numSpeciesTot
Total number of species in the problems.
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.
#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.