mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6218 Avoid inf for geostatic timestep in poro-perm calculation.
This commit is contained in:
parent
71f494d92c
commit
4326193008
@ -190,21 +190,27 @@ RigFemScalarResultFrames*
|
||||
double voidr = voidRatioData[elmNodResIdx];
|
||||
double initialPorosity = voidr / ( 1.0 + voidr );
|
||||
|
||||
// Calculate difference in pore pressure between reference state and this state,
|
||||
// and convert unit from Bar to Pascal.
|
||||
double referencePorePressure = referencePorFrameData[nodeIdx];
|
||||
double framePorePressure = porFrameData[nodeIdx];
|
||||
double deltaPorePressure =
|
||||
RiaEclipseUnitTools::barToPascal( framePorePressure - referencePorePressure );
|
||||
// Calculate porosity change.
|
||||
// No change for geostatic timestep
|
||||
double deltaPorosity = 0.0;
|
||||
if ( fIdx != 0 )
|
||||
{
|
||||
// Calculate difference in pore pressure between reference state and this state,
|
||||
// and convert unit from Bar to Pascal.
|
||||
double referencePorePressure = referencePorFrameData[nodeIdx];
|
||||
double framePorePressure = porFrameData[nodeIdx];
|
||||
double deltaPorePressure =
|
||||
RiaEclipseUnitTools::barToPascal( framePorePressure - referencePorePressure );
|
||||
|
||||
// Pore compressibility. Convert from 1/GPa to 1/Pa.
|
||||
double poreCompressibility = poreCompressibilityFrameData[elmNodResIdx] / 1.0e9;
|
||||
// Pore compressibility. Convert from 1/GPa to 1/Pa.
|
||||
double poreCompressibility = poreCompressibilityFrameData[elmNodResIdx] / 1.0e9;
|
||||
|
||||
// Volumetric strain
|
||||
double deltaEv = evData[elmNodResIdx] - referenceEvData[elmNodResIdx];
|
||||
// Volumetric strain
|
||||
double deltaEv = evData[elmNodResIdx] - referenceEvData[elmNodResIdx];
|
||||
|
||||
// Porosity change between reference state and initial state (geostatic)
|
||||
double deltaPorosity = initialPorosity * ( poreCompressibility * deltaPorePressure + deltaEv );
|
||||
// Porosity change between reference state and initial state (geostatic).
|
||||
deltaPorosity = initialPorosity * ( poreCompressibility * deltaPorePressure + deltaEv );
|
||||
}
|
||||
|
||||
// Current porosity
|
||||
double currentPorosity = initialPorosity + deltaPorosity;
|
||||
|
Loading…
Reference in New Issue
Block a user