50 if (tmole_orig < 1.0E-200 || tmole_orig > 1.0E200) {
52 "Total input moles, {} is outside the range handled by vcs.\n",
57 if (tmole_orig > 1.0E4) {
59 }
else if (tmole_orig < 1.0E-4) {
67 plogf(
" --- vcs_nondim_TP() called: USING A MOLE SCALE OF %g until further notice",
m_totalMoleScale);
vector_int m_speciesUnknownType
Specifies the species unknown type.
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.
vector_fp m_molNumSpecies_old
Total moles of the species.
std::vector< vcs_VolPhase * > m_VolPhaseList
Array of Phase Structures. Length = number of phases.
void vcs_nondim_TP()
Nondimensionalize the problem data.
double vcs_tmoles()
Calculates the total number of moles of species in all phases.
void vcs_redim_TP()
Redimensionalize the problem data.
vector_fp m_deltaGRxn_new
Delta G(irxn) for the noncomponent species in the mechanism.
#define VCS_NONDIMENSIONAL_G
nondimensional
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.
#define VCS_ELEM_TYPE_ABSPOS
Normal element constraint consisting of positive coefficients for the formula matrix.
size_t m_numElemConstraints
Number of element constraints in the problem.
size_t m_numSpeciesTot
Total number of species in the problems.
Base class for exceptions thrown by Cantera classes.
vector_fp m_deltaGRxn_old
Last deltag[irxn] from the previous step.
vector_fp m_feSpecies_old
Free energy vector from the start of the current iteration.
vector_fp TPhInertMoles
Total kmoles of inert to add to each phase.
int m_debug_print_lvl
Debug printing lvl.
vector_fp m_elemAbundancesGoal
Element abundances vector Goals.
double m_temperature
Temperature (Kelvin)
Phase information and Phase calculations for vcs.
#define VCS_DIMENSIONAL_G
dimensioned
const doublereal Avogadro
Avogadro's Number [number/kmol].
#define plogendl()
define this Cantera function to replace cout << endl;
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
Contains declarations for string manipulation functions within Cantera.
#define plogf
define this Cantera function to replace printf
#define VCS_SPECIES_TYPE_INTERFACIALVOLTAGE
Unknown refers to the voltage level of a phase.
vector_int m_elType
Type of the element constraint.
Namespace for the Cantera kernel.
char m_unitsState
This specifies the current state of units for the Gibbs free energy properties in the program...
size_t m_numPhases
Number of Phases in the problem.
double m_totalMoleScale
Multiplier for the mole numbers within the nondimensional formulation.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
void setTotalMolesInert(const double tMolesInert)
Sets the total moles of inert in the phase.