34 g += molesSp[kspec] * chemPot[kspec];
42 const double*
const fe)
45 double phaseMols = 0.0;
49 g += w[kspec] * fe[kspec];
50 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.
std::vector< 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.
std::vector< int > m_speciesUnknownType
Specifies the species unknown type.
bool m_gasPhase
If true, this phase is a gas-phase like phase.
Phase information and Phase calculations for vcs.
double m_pressurePA
Pressure (units are determined by m_VCS_UnitsFormat.
#define VCS_SPECIES_TYPE_INTERFACIALVOLTAGE
Unknown refers to the voltage level of a phase.
size_t m_numPhases
Number of Phases in the problem.
std::vector< double > TPhInertMoles
Total kmoles of inert to add to each phase.