Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions GEMS3K/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,14 @@ class TNode
/// \return 0
double Set_DC_G0(const long int xCH, const double P, const double TK, const double new_G0 );

///
/// \brief Set_aPH
/// \param xPH index of phase
/// \param aPH sepcific surface area in m2/kg
/// \return
///
double Set_aPH(const long int xPH, const double aPH );

/// Retrieves (interpolated) molar Gibbs energy G0(P,TK) value for Dependent Component
/// from the DATACH structure.
/// \param xCH is the DC DCH index
Expand Down
14 changes: 14 additions & 0 deletions GEMS3K/node2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,20 @@ double TNode::Set_DC_G0(const long int xCH, const double P, const double TK, con
return 0;
}


// used in GEMSFIT only
//Sets specific surface area (m2/kg)
//in the DATACH structure ( xPH is the PH DCH index)
double TNode::Set_aPH(const long int xPH, const double aPH )
{
if( CSD->nAalp >0 )
{
CNode->aPH[xPH] = aPH;
return 0;
}
return 1;
}

//Retrieves (interpolated) molar Gibbs energy G0(P,TK) value for Dependent Component
//from the DATACH structure ( xCH is the DC DCH index) or 7777777., if TK (temperature, Kelvin)
// or P (pressure, Pa) parameters go beyond the valid lookup array intervals or tolerances.
Expand Down
Loading