From b9e8173ad9724866ca58158098b3c68eac13779e Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Fri, 20 Jan 2023 10:53:08 +0100 Subject: [PATCH] #9652 Thermal Fractures: fix transmissibilities for long perforation intervals. Filter out invalid fracture cells (conductivity == positive infinity) when calculating fracture to well transmissibilities. Fixes #9652. --- .../RicExportFractureCompletionsImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/Commands/CompletionExportCommands/RicExportFractureCompletionsImpl.cpp b/ApplicationLibCode/Commands/CompletionExportCommands/RicExportFractureCompletionsImpl.cpp index 2785acf7fd..3050693868 100644 --- a/ApplicationLibCode/Commands/CompletionExportCommands/RicExportFractureCompletionsImpl.cpp +++ b/ApplicationLibCode/Commands/CompletionExportCommands/RicExportFractureCompletionsImpl.cpp @@ -669,7 +669,8 @@ void RicExportFractureCompletionsImpl::calculateFractureToWellTransmissibilities const RigFractureCell& fractureWellCell = fractureGrid->cellFromIndex( fracWellCellIdx ); double linearTrans = 0.0; - if ( intersection.hlength > 0.0 || intersection.vlength > 0.0 ) + if ( ( intersection.hlength > 0.0 || intersection.vlength > 0.0 ) && + !std::isinf( fractureWellCell.getConductivityValue() ) ) { linearTrans = RigFractureTransmissibilityEquations::fractureCellToWellLinearTrans( fractureWellCell.getConductivityValue(),