mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 14:47:44 -05:00
Missing permFactTransMultiplier by MICP
This commit is contained in:
1 parent
d201ecfc84
commit
7685984058
1 file changed
+9
-12
@@ -688,23 +688,20 @@ public:
|
||||
LhsEval permFactTransMultiplier(const IntensiveQuantities& intQuants, unsigned elementIdx) const
|
||||
{
|
||||
OPM_TIMEBLOCK_LOCAL(permFactTransMultiplier);
|
||||
if (!enableSaltPrecipitation && !enableMICP)
|
||||
return 1.0;
|
||||
|
||||
const auto& fs = intQuants.fluidState();
|
||||
unsigned tableIdx = this->simulator().problem().satnumRegionIndex(elementIdx);
|
||||
|
||||
LhsEval porosityFactor = decay<LhsEval>(1. - fs.saltSaturation());
|
||||
porosityFactor = min(porosityFactor, 1.0);
|
||||
if constexpr (enableSaltPrecipitation) {
|
||||
const auto& fs = intQuants.fluidState();
|
||||
unsigned tableIdx = this->simulator().problem().satnumRegionIndex(elementIdx);
|
||||
LhsEval porosityFactor = decay<LhsEval>(1. - fs.saltSaturation());
|
||||
porosityFactor = min(porosityFactor, 1.0);
|
||||
const auto& permfactTable = BrineModule::permfactTable(tableIdx);
|
||||
return permfactTable.eval(porosityFactor, /*extrapolation=*/true);
|
||||
}
|
||||
if constexpr (enableMICP){
|
||||
const auto& permfactTable = MICPModule::permfactTable(tableIdx);
|
||||
return permfactTable.eval(porosityFactor, /*extrapolation=*/true);
|
||||
else if constexpr (enableMICP) {
|
||||
return intQuants.permFactor().value();
|
||||
}
|
||||
else {
|
||||
return 1.0;
|
||||
}
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
// temporary solution to facilitate output of initial state from flow
|
||||
|
||||
Reference in new issue
Block a user