mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5747 Completion Export: Avoid nan values for zero permeability
This commit is contained in:
parent
66c3587d5b
commit
efe79aeacf
@ -35,6 +35,13 @@ double RigTransmissibilityEquations::wellBoreTransmissibilityComponent( double c
|
||||
{
|
||||
double K = cvf::Math::sqrt( permeabilityNormalDirection1 * permeabilityNormalDirection2 );
|
||||
|
||||
const double lowerLimit = 1.0e-9;
|
||||
if ( std::fabs( permeabilityNormalDirection1 * permeabilityNormalDirection2 ) < lowerLimit )
|
||||
{
|
||||
// Guard further computations to avoid nan values
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
double nominator = cDarcyForRelevantUnit * 2 * cvf::PI_D * K * cellPerforationVectorComponent;
|
||||
|
||||
double peaceManRad = peacemanRadius( permeabilityNormalDirection1,
|
||||
|
Loading…
Reference in New Issue
Block a user