40 plogf(
"vcs_inest_TP returned a failure flag\n");
std::vector< double > 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.
int vcs_inest_TP()
Create an initial estimate of the solution to the thermodynamic equilibrium problem.
#define VCS_DATA_PTR(vvv)
Points to the data in a std::vector<> object.
double m_temperature
Temperature (Kelvin)
std::vector< double > m_feSpecies_old
Free energy vector from the start of the current iteration.
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.
Phase information and Phase calculations for vcs.
int m_doEstimateEquil
Setting for whether to do an initial estimate.
Internal declarations for the VCSnonideal package.
int vcs_TP(int ipr, int ip1, int maxit, double T, double pres)
Solve an equilibrium problem at a particular fixed temperature and pressure.
size_t m_numSpeciesTot
Total number of species in the problems.
std::vector< vcs_VolPhase * > m_VolPhaseList
Array of Phase Structures. Length = number of phases.
void sendToVCS_GStar(double *const gstar) const
Fill in the partial molar volume vector for VCS.
size_t m_numPhases
Number of Phases in the problem.
void vcs_nondim_TP()
Nondimensionalize the problem data.
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...
std::vector< double > m_feSpecies_new
Dimensionless new free energy for all the species in the mechanism at the new tentatite T...
void vcs_redim_TP()
Redimensionalize the problem data.
std::vector< char > m_SSPhase
Boolean indicating whether a species belongs to a single-species phase.
#define plogf
define this Cantera function to replace printf
void setState_TP(const double temperature_Kelvin, const double pressure_PA)
Sets the temperature and pressure in this object and underlying ThermoPhase objects.
double m_pressurePA
Pressure (units are determined by m_VCS_UnitsFormat.
int vcs_evalSS_TP(int ipr, int ip1, double Temp, double pres)