MargulesVPSSTP.h Source File#
MargulesVPSSTP.h
Go to the documentation of this file.
72 * R T \ln( \gamma_k )= \sum_i \left( \left( \delta_{Ai,k} X_{Bi} + \delta_{Bi,k} X_{Ai} - X_{Ai} X_{Bi} \right)
189 * \frac{P_j P_k}{ P_l P_{ref}} = K_p^1 = \exp(\frac{\mu^{ref}_l - \mu^{ref}_j - \mu^{ref}_k}{R T} )
Header for intermediate ThermoPhase object for phases which employ Gibbs excess free energy based for...
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
GibbsExcessVPSSTP is a derived class of ThermoPhase that handles variable pressure standard state met...
Definition GibbsExcessVPSSTP.h:85
MargulesVPSSTP is a derived class of GibbsExcessVPSSTP that employs the Margules approximation for th...
Definition MargulesVPSSTP.h:215
void getdlnActCoeffds(const double dTds, const double *const dXds, double *dlnActCoeffds) const override
Get the change in activity coefficients wrt changes in state (temp, mole fraction,...
Definition MargulesVPSSTP.cpp:332
void getPartialMolarEnthalpies(double *hbar) const override
Returns an array of partial molar enthalpies for the species in the mixture.
Definition MargulesVPSSTP.cpp:93
void getChemPotentials(double *mu) const override
Get the species chemical potentials. Units: J/kmol.
Definition MargulesVPSSTP.cpp:38
vector< double > m_VHE_c_ij
Enthalpy term for the ternary mole fraction interaction of the excess Gibbs free energy expression.
Definition MargulesVPSSTP.h:442
vector< double > m_SE_b_ij
Entropy term for the binary mole fraction interaction of the excess Gibbs free energy expression.
Definition MargulesVPSSTP.h:430
int formTempModel_
form of the temperature dependence of the Margules interaction expression
Definition MargulesVPSSTP.h:476
size_t numBinaryInteractions_
number of binary interaction expressions
Definition MargulesVPSSTP.h:418
vector< double > m_SE_c_ij
Entropy term for the ternary mole fraction interaction of the excess Gibbs free energy expression.
Definition MargulesVPSSTP.h:434
void s_update_dlnActCoeff_dlnN_diag() const
Update the derivative of the log of the activity coefficients wrt log(moles) - diagonal only.
Definition MargulesVPSSTP.cpp:361
void getParameters(AnyMap &phaseNode) const override
Store the parameters of a ThermoPhase object such that an identical one could be reconstructed using ...
Definition MargulesVPSSTP.cpp:205
string type() const override
String indicating the thermodynamic model implemented.
Definition MargulesVPSSTP.h:226
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition MargulesVPSSTP.cpp:179
void getPartialMolarVolumes(double *vbar) const override
Return an array of partial molar volumes for the species in the mixture.
Definition MargulesVPSSTP.cpp:154
vector< size_t > m_pSpecies_A_ij
vector of species indices representing species A in the interaction
Definition MargulesVPSSTP.h:457
double cv_mole() const override
Molar heat capacity at constant volume. Units: J/kmol/K.
Definition MargulesVPSSTP.cpp:88
void s_update_dlnActCoeff_dT() const
Update the derivative of the log of the activity coefficients wrt T.
Definition MargulesVPSSTP.cpp:287
vector< size_t > m_pSpecies_B_ij
vector of species indices representing species B in the interaction
Definition MargulesVPSSTP.h:464
vector< double > m_VSE_c_ij
Entropy term for the ternary mole fraction interaction of the excess Gibbs free energy expression.
Definition MargulesVPSSTP.h:450
void s_update_dlnActCoeff_dlnN() const
Update the derivative of the log of the activity coefficients wrt log(moles_m)
Definition MargulesVPSSTP.cpp:393
vector< double > m_HE_b_ij
Enthalpy term for the binary mole fraction interaction of the excess Gibbs free energy expression.
Definition MargulesVPSSTP.h:422
void getdlnActCoeffdT(double *dlnActCoeffdT) const override
Get the array of temperature derivatives of the log activity coefficients.
Definition MargulesVPSSTP.cpp:316
vector< double > m_VSE_b_ij
Entropy term for the binary mole fraction interaction of the excess Gibbs free energy expression.
Definition MargulesVPSSTP.h:446
double cp_mole() const override
Molar heat capacity at constant pressure. Units: J/kmol/K.
Definition MargulesVPSSTP.cpp:76
void getPartialMolarCp(double *cpbar) const override
Returns an array of partial molar entropies for the species in the mixture.
Definition MargulesVPSSTP.cpp:112
void initLengths()
Initialize lengths of local variables after all species have been identified.
Definition MargulesVPSSTP.cpp:234
void getLnActivityCoefficients(double *lnac) const override
Get the array of non-dimensional molar-based ln activity coefficients at the current solution tempera...
Definition MargulesVPSSTP.cpp:25
void s_update_dlnActCoeff_dlnX_diag() const
Update the derivative of the log of the activity coefficients wrt log(mole fraction)
Definition MargulesVPSSTP.cpp:432
void getdlnActCoeffdlnX_diag(double *dlnActCoeffdlnX_diag) const override
Get the array of ln mole fraction derivatives of the log activity coefficients - diagonal component o...
Definition MargulesVPSSTP.cpp:460
vector< double > m_VHE_b_ij
Enthalpy term for the binary mole fraction interaction of the excess Gibbs free energy expression.
Definition MargulesVPSSTP.h:438
void addBinaryInteraction(const string &speciesA, const string &speciesB, double h0, double h1, double s0, double s1, double vh0, double vh1, double vs0, double vs1)
Add a binary species interaction with the specified parameters.
Definition MargulesVPSSTP.cpp:239
vector< double > m_HE_c_ij
Enthalpy term for the ternary mole fraction interaction of the excess Gibbs free energy expression.
Definition MargulesVPSSTP.h:426
void getdlnActCoeffdlnN_diag(double *dlnActCoeffdlnN_diag) const override
Get the array of log species mole number derivatives of the log activity coefficients.
Definition MargulesVPSSTP.cpp:452
void getd2lnActCoeffdT2(double *d2lnActCoeffdT2) const
Get the array of temperature second derivatives of the log activity coefficients.
Definition MargulesVPSSTP.cpp:324
void getPartialMolarEntropies(double *sbar) const override
Returns an array of partial molar entropies for the species in the mixture.
Definition MargulesVPSSTP.cpp:132
void getdlnActCoeffdlnN(const size_t ld, double *const dlnActCoeffdlnN) override
Get the array of derivatives of the log activity coefficients with respect to the log of the species ...
Definition MargulesVPSSTP.cpp:468
Generated by