14 int VCS_SOLVE::vcs_PS(
VCS_PROB* vprob,
int iphase,
int printLvl,
double& feStable)
17 "Broken and unused. To be removed after Cantera 2.3.");
22 size_t nspecies0 = vprob->
nspecies + 10;
23 size_t nelements0 = vprob->
ne;
24 size_t nphase0 = vprob->
NPhase;
25 vcs_initSizes(nspecies0, nelements0, nphase0);
27 if (ifunc < 0 || ifunc > 2) {
28 plogf(
"vcs: Unrecognized value of ifunc, %d: bailing!\n",
35 int retn = vcs_prob_specifyFully(vprob);
37 plogf(
"vcs_pub_to_priv returned a bad status, %d: bailing!\n",
45 retn = vcs_prep_oneTime(printLvl);
47 plogf(
"vcs_prep_oneTime returned a bad status, %d: bailing!\n",
54 retn = vcs_prob_specify(vprob);
56 plogf(
"vcs_prob_specify returned a bad status, %d: bailing!\n",
64 plogf(
"vcs_prep returned a bad status, %d: bailing!\n", retn);
69 if (!vcs_wellPosed(vprob)) {
70 plogf(
"vcs has determined the problem is not well posed: Bailing\n");
75 m_temperature = vprob->
T;
76 m_pressurePA = vprob->
PresPA;
80 vcs_evalSS_TP(printLvl, printLvl, m_temperature, m_pressurePA);
92 int iStab = vcs_solve_phaseStability(iphase, ifunc, feStable, printLvl);
98 vcs_prob_update(vprob);
104 int VCS_SOLVE::vcs_solve_phaseStability(
const int iph,
const int ifunc,
109 "Broken and unused. To be removed after Cantera 2.3.");
110 double test = -1.0E-10;
111 bool usedZeroedSpecies;
113 vector_fp sm(m_numElemConstraints*m_numElemConstraints, 0.0);
119 vcs_basopt(
false, &aw[0], &sa[0], &sm[0], &ss[0],
120 test, &usedZeroedSpecies);
121 vcs_evaluate_speciesType();
132 m_deltaGRxn_Deficient = m_deltaGRxn_old;
133 funcVal = vcs_phaseStabilityTest(iph);
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
Header file for the internal object that holds the vcs equilibrium problem (see Class VCS_SOLVE and E...
Header for the Interface class for the vcs thermo equilibrium solver package,.
size_t nspecies
Total number of species in the problems.
size_t ne
Number of element constraints in the equilibrium problem.
#define VCS_STATECALC_OLD
State Calculation based on the old or base mole numbers.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
double T
Temperature (Kelvin)
#define plogf
define this Cantera function to replace printf
size_t NPhase
Number of phases in the problem.
Namespace for the Cantera kernel.
Interface class for the vcs thermo equilibrium solver package, which generally describes the problem ...