36 g += molesSp[kspec] * chemPot[kspec];
44 const double*
const fe)
47 double phaseMols = 0.0;
51 g += w[kspec] * fe[kspec];
52 phaseMols += w[kspec];
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.
Internal declarations for the VCSnonideal package.
std::vector< vcs_VolPhase * > m_VolPhaseList
Array of Phase Structures. Length = number of phases.
double vcs_Total_Gibbs(double *w, double *fe, double *tPhMoles)
Calculate the total dimensionless Gibbs free energy.
size_t m_numPhases
Number of Phases in the problem.
std::vector< size_t > m_phaseID
Mapping from the species number to the phase number.
std::vector< double > TPhInertMoles
Total kmoles of inert to add to each phase.
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.
#define VCS_SPECIES_TYPE_INTERFACIALVOLTAGE
Unknown refers to the voltage level of a phase.
double m_pressurePA
Pressure (units are determined by m_VCS_UnitsFormat.
std::vector< int > m_speciesUnknownType
Specifies the species unknown type.
bool m_gasPhase
If true, this phase is a gas-phase like phase.
size_t m_numSpeciesRdc
Current number of species in the problems.