Skip to content

Commit 5e40499

Browse files
authored
Merge pull request #56 from gemshub/dev-gemsfits
set specific surface area
2 parents 4ad750c + cbf58f8 commit 5e40499

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

GEMS3K/node.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,14 @@ class TNode
758758
/// \return 0
759759
double Set_DC_G0(const long int xCH, const double P, const double TK, const double new_G0 );
760760

761+
///
762+
/// \brief Set_aPH
763+
/// \param xPH index of phase
764+
/// \param aPH sepcific surface area in m2/kg
765+
/// \return
766+
///
767+
double Set_aPH(const long int xPH, const double aPH );
768+
761769
/// Retrieves (interpolated) molar Gibbs energy G0(P,TK) value for Dependent Component
762770
/// from the DATACH structure.
763771
/// \param xCH is the DC DCH index

GEMS3K/node2.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,20 @@ double TNode::Set_DC_G0(const long int xCH, const double P, const double TK, con
279279
return 0;
280280
}
281281

282+
283+
// used in GEMSFIT only
284+
//Sets specific surface area (m2/kg)
285+
//in the DATACH structure ( xPH is the PH DCH index)
286+
double TNode::Set_aPH(const long int xPH, const double aPH )
287+
{
288+
if( CSD->nAalp >0 )
289+
{
290+
CNode->aPH[xPH] = aPH;
291+
return 0;
292+
}
293+
return 1;
294+
}
295+
282296
//Retrieves (interpolated) molar Gibbs energy G0(P,TK) value for Dependent Component
283297
//from the DATACH structure ( xCH is the DC DCH index) or 7777777., if TK (temperature, Kelvin)
284298
// or P (pressure, Pa) parameters go beyond the valid lookup array intervals or tolerances.

0 commit comments

Comments
 (0)