37 plogf(
"vcs_inest_TP returned a failure flag\n");
std::vector< double > m_feSpecies_new
Dimensionless new free energy for all the species in the mechanism at the new tentatite T...
int vcs_TP(int ipr, int ip1, int maxit, double T, double pres)
Solve an equilibrium problem at a particular fixed temperature and pressure.
#define VCS_DATA_PTR(vvv)
Points to the data in a std::vector<> object.
std::vector< vcs_VolPhase * > m_VolPhaseList
Array of Phase Structures. Length = number of phases.
void vcs_nondim_TP()
Nondimensionalize the problem data.
void vcs_redim_TP()
Redimensionalize the problem data.
int m_VCS_UnitsFormat
Units for the chemical potential 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.
int vcs_evalSS_TP(int ipr, int ip1, double Temp, double pres)
std::vector< double > m_SSfeSpecies
Standard state chemical potentials for species K at the current temperature and pressure.
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 (units are determined by m_VCS_UnitsFormat.
#define plogf
define this Cantera function to replace printf
void sendToVCS_GStar(double *const gstar) const
Fill in the partial molar volume vector for VCS.
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.
std::vector< double > m_feSpecies_old
Free energy vector from the start of the current iteration.