mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#401) Finally got the basic comparison to work and thus Ecl->geomech mapping
Now weed to clean up, make it fast, include other mappings Geom/geom Ecl/ecl etc.. and handle inserted/removed layers
This commit is contained in:
@@ -402,6 +402,12 @@ bool isEclFemCellsMatching(RigMainGrid* eclGrid, size_t reservoirCellIndex, Rig
|
|||||||
eclShallowQuad[3] = gomConvertedEclCell[localElmNodeIndicesForBotZFace[3]];
|
eclShallowQuad[3] = gomConvertedEclCell[localElmNodeIndicesForBotZFace[3]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!eclGrid->isFaceNormalsOutwards())
|
||||||
|
{
|
||||||
|
flipQuadWinding(femShallowQuad);
|
||||||
|
flipQuadWinding(femDeepestQuad);
|
||||||
|
}
|
||||||
|
|
||||||
// Now the top/bottom have opposite winding. To make the comparisons and index rotations simpler
|
// Now the top/bottom have opposite winding. To make the comparisons and index rotations simpler
|
||||||
// flip the winding of the bottom face:
|
// flip the winding of the bottom face:
|
||||||
|
|
||||||
@@ -488,8 +494,8 @@ RigCaseToCaseCellMapper::RigCaseToCaseCellMapper(RigMainGrid* masterEclGrid, Rig
|
|||||||
double cellSizeI, cellSizeJ, cellSizeK;
|
double cellSizeI, cellSizeJ, cellSizeK;
|
||||||
masterEclGrid->characteristicCellSizes(&cellSizeI, &cellSizeJ, &cellSizeK);
|
masterEclGrid->characteristicCellSizes(&cellSizeI, &cellSizeJ, &cellSizeK);
|
||||||
|
|
||||||
double xyTolerance = cellSizeI* 2;
|
double xyTolerance = cellSizeI* 0.1;
|
||||||
double zTolerance = cellSizeK* 2;
|
double zTolerance = cellSizeK* 0.1;
|
||||||
|
|
||||||
int elementCount = dependentFemPart->elementCount();
|
int elementCount = dependentFemPart->elementCount();
|
||||||
cvf::Vec3d elmCorners[8];
|
cvf::Vec3d elmCorners[8];
|
||||||
|
|||||||
Reference in New Issue
Block a user