mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
make it possible with only one phase in genneral?
This commit is contained in:
committed by
Atgeirr Flø Rasmussen
parent
9c0520aeeb
commit
8572e1d108
@@ -348,7 +348,11 @@ public:
|
||||
if(FluidSystem::phaseIsActive(oilPhaseIdx)){
|
||||
x = rockCompressibility*(fluidState_.pressure(oilPhaseIdx) - rockRefPressure);
|
||||
}else{
|
||||
if(FluidSystem::phaseIsActive(waterPhaseIdx)){
|
||||
x = rockCompressibility*(fluidState_.pressure(waterPhaseIdx) - rockRefPressure);
|
||||
}else{
|
||||
x = rockCompressibility*(fluidState_.pressure(gasPhaseIdx) - rockRefPressure);
|
||||
}
|
||||
}
|
||||
porosity_ *= 1.0 + x + 0.5*x*x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user