32 g += molesSp[kspec] * chemPot[kspec];
40 const double*
const fe)
43 double phaseMols = 0.0;
46 g += w[kspec] * fe[kspec];
47 phaseMols += w[kspec];
std::vector< size_t > m_phaseID
Mapping from the species number to the phase number.
double vcs_Total_Gibbs(double *w, double *fe, double *tPhMoles)
Calculate the total dimensionless Gibbs free energy.
vector_int m_speciesUnknownType
Specifies the species unknown type.
std::vector< std::unique_ptr< vcs_VolPhase > > m_VolPhaseList
Array of Phase Structures. Length = number of phases.
size_t m_numSpeciesRdc
Current number of species in the problems.
double vcs_GibbsPhase(size_t iphase, const double *const w, const double *const fe)
Calculate the total dimensionless Gibbs free energy of a single phase.
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.
vector_fp TPhInertMoles
Total kmoles of inert to add to each phase.
bool m_gasPhase
If true, this phase is a gas-phase like phase.
Phase information and Phase calculations for vcs.
double m_pressurePA
Pressure.
#define VCS_SPECIES_TYPE_INTERFACIALVOLTAGE
Unknown refers to the voltage level of a phase.
Namespace for the Cantera kernel.
size_t m_numPhases
Number of Phases in the problem.