added aCache, this probably should be added to ParameterCacheBase at some point

This commit is contained in:
Trine Mykkeltvedt
2022-06-27 13:03:37 +02:00
parent 1728d53371
commit 6b62b32da2

View File

@@ -175,6 +175,25 @@ public:
};
}
/*!
* \brief TODO
*
* \param phaseIdx The fluid phase of interest
* \param compIdx The component phase of interest
* \param compJIdx Additional component index
*/
Scalar aCache(unsigned phaseIdx, unsigned compIdx, unsigned compJIdx)
{
switch (phaseIdx)
{
case oilPhaseIdx: return oilPhaseParams_.getaCache(compIdx,compJIdx);
case gasPhaseIdx: return gasPhaseParams_.getaCache(compIdx,compJIdx);
default:
throw std::logic_error("The aCache() parameter is only defined for "
"oil phase");
};
}
/*!
* \brief Returns the molar volume of a phase [m^3/mol]
*