mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix model for efficient diffusion coefficient and add reference
This commit is contained in:
@@ -274,16 +274,15 @@ protected:
|
|||||||
if (FluidSystem::waterPhaseIdx == phaseIdx) {
|
if (FluidSystem::waterPhaseIdx == phaseIdx) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// TODO: let the problem do this (this is a constitutive
|
|
||||||
// relation of which the model should be free of from the
|
// Based on Millington, R. J., & Quirk, J. P. (1961).
|
||||||
// abstraction POV!)
|
|
||||||
const Evaluation& base =
|
const Evaluation& base =
|
||||||
Toolbox::max(0.0001,
|
Toolbox::max(0.0001,
|
||||||
intQuants.porosity()
|
intQuants.porosity()
|
||||||
* intQuants.fluidState().saturation(phaseIdx));
|
* intQuants.fluidState().saturation(phaseIdx));
|
||||||
tortuosity_[phaseIdx] =
|
tortuosity_[phaseIdx] =
|
||||||
1.0 / (intQuants.porosity() * intQuants.porosity())
|
1.0 / (intQuants.porosity() * intQuants.porosity())
|
||||||
* Toolbox::pow(base, 7.0/3.0);
|
* Toolbox::pow(base, 10.0/3.0);
|
||||||
|
|
||||||
for (unsigned compIdx = 0; compIdx < numComponents; ++compIdx) {
|
for (unsigned compIdx = 0; compIdx < numComponents; ++compIdx) {
|
||||||
diffusionCoefficient_[phaseIdx][compIdx] =
|
diffusionCoefficient_[phaseIdx][compIdx] =
|
||||||
|
|||||||
@@ -253,13 +253,14 @@ protected:
|
|||||||
// TODO: let the problem do this (this is a constitutive
|
// TODO: let the problem do this (this is a constitutive
|
||||||
// relation of which the model should be free of from the
|
// relation of which the model should be free of from the
|
||||||
// abstraction POV!)
|
// abstraction POV!)
|
||||||
|
// Based on Millington, R. J., & Quirk, J. P. (1961).
|
||||||
const Evaluation& base =
|
const Evaluation& base =
|
||||||
Toolbox::max(0.0001,
|
Toolbox::max(0.0001,
|
||||||
intQuants.porosity()
|
intQuants.porosity()
|
||||||
* intQuants.fluidState().saturation(phaseIdx));
|
* intQuants.fluidState().saturation(phaseIdx));
|
||||||
tortuosity_[phaseIdx] =
|
tortuosity_[phaseIdx] =
|
||||||
1.0 / (intQuants.porosity() * intQuants.porosity())
|
1.0 / (intQuants.porosity() * intQuants.porosity())
|
||||||
* Toolbox::pow(base, 7.0/3.0);
|
* Toolbox::pow(base, 10.0/3.0);
|
||||||
|
|
||||||
for (unsigned compIdx = 0; compIdx < numComponents; ++compIdx) {
|
for (unsigned compIdx = 0; compIdx < numComponents; ++compIdx) {
|
||||||
diffusionCoefficient_[phaseIdx][compIdx] =
|
diffusionCoefficient_[phaseIdx][compIdx] =
|
||||||
|
|||||||
Reference in New Issue
Block a user