mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#3657 Temporary LGR : Set transmissibility to zero for temporary grid cells in non-active cells
This commit is contained in:
1 parent
71701cd79b
commit
ef17a7c057
1 file changed
+15
-1
+15
-1
@@ -264,9 +264,23 @@ void RigEclipseToStimPlanCellTransmissibilityCalculator::calculateStimPlanCellsM
|
|||||||
double fractureAreaWeightedlength = totalAreaXLength / fractureArea;
|
double fractureAreaWeightedlength = totalAreaXLength / fractureArea;
|
||||||
|
|
||||||
// Transmissibility for inactive cells is set to zero
|
// Transmissibility for inactive cells is set to zero
|
||||||
|
// Inactive cells must be include in order to compute the fractured area correctly
|
||||||
double transmissibility = 0.0;
|
double transmissibility = 0.0;
|
||||||
|
|
||||||
if (activeCellInfo->isActive(reservoirCellIndex))
|
bool isActive = true;
|
||||||
|
{
|
||||||
|
// Use main grid cell to evaluate if a cell is active or not.
|
||||||
|
// All cells in temporary grids are active
|
||||||
|
const RigCell& cell = mainGrid->globalCellArray()[reservoirCellIndex];
|
||||||
|
size_t mainGridReservoirIndex = cell.mainGridCellIndex();
|
||||||
|
|
||||||
|
if (!activeCellInfo->isActive(mainGridReservoirIndex))
|
||||||
|
{
|
||||||
|
isActive = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isActive)
|
||||||
{
|
{
|
||||||
double permX = dataAccessObjectPermX->cellScalarGlobIdx(reservoirCellIndex);
|
double permX = dataAccessObjectPermX->cellScalarGlobIdx(reservoirCellIndex);
|
||||||
double permY = dataAccessObjectPermY->cellScalarGlobIdx(reservoirCellIndex);
|
double permY = dataAccessObjectPermY->cellScalarGlobIdx(reservoirCellIndex);
|
||||||
|
|||||||
Reference in new issue
Block a user