mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 17:20:59 -06:00
Add contribution from region multipliers
The multiplier contribution from the getRegionMultiplier is added to the face multipliers. The getRegionMultiplier method is called with the cell index on both side of the face in order to return the correct region multiplier across faults.
This commit is contained in:
parent
c051c7bd85
commit
25a4bb5fbe
@ -228,9 +228,26 @@ namespace Opm
|
||||
break;
|
||||
}
|
||||
|
||||
// Multiplier contribution on this face
|
||||
// Multiplier contribution on this face for MULT[XYZ] logical cartesian multipliers
|
||||
intersectionTransMult[faceIdx] *=
|
||||
multipliers->getMultiplier(cartesianCellIdx, faceDirection);
|
||||
|
||||
// Multiplier contribution on this fase for region multipliers
|
||||
const int cellIdxInside = grid.face_cells[2*faceIdx];
|
||||
const int cellIdxOutside = grid.face_cells[2*faceIdx + 1];
|
||||
|
||||
// Do not apply region multipliers in the case of boundary connections
|
||||
if (cellIdxInside < 0 || cellIdxOutside < 0) {
|
||||
continue;
|
||||
}
|
||||
const int cartesianCellIdxInside = grid.global_cell[cellIdxInside];
|
||||
const int cartesianCellIdxOutside = grid.global_cell[cellIdxOutside];
|
||||
// Only apply the region multipliers from the inside
|
||||
if (cartesianCellIdx == cartesianCellIdxInside) {
|
||||
intersectionTransMult[faceIdx] *= multipliers->getRegionMultiplier(cartesianCellIdxInside,cartesianCellIdxOutside,faceDirection);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user