mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
Well pipe size now is based on min characteristic I, J cell size
p4#: 20628
This commit is contained in:
parent
dc02b1ae91
commit
ad082254af
@ -90,7 +90,7 @@ void RivWellHeadPartMgr::buildWellHeadParts(size_t frameIndex)
|
||||
|
||||
const RigCell& whCell = rigReservoir->cellFromWellResultCell(wellResultFrame.m_wellHead);
|
||||
|
||||
double characteristicCellSize = rigReservoir->mainGrid()->characteristicCellSize();
|
||||
double characteristicCellSize = rigReservoir->mainGrid()->characteristicIJCellSize();
|
||||
|
||||
// Match this position with pipe start position in RivWellPipesPartMgr::calculateWellPipeCenterline()
|
||||
cvf::Vec3d whStartPos = whCell.faceCenter(cvf::StructGridInterface::NEG_K);
|
||||
|
@ -86,7 +86,7 @@ void RivWellPipesPartMgr::buildWellPipeParts()
|
||||
|
||||
calculateWellPipeCenterline(pipeBranchesCLCoords, pipeBranchesCellIds);
|
||||
|
||||
double characteristicCellSize = m_rimReservoirView->eclipseCase()->reservoirData()->mainGrid()->characteristicCellSize();
|
||||
double characteristicCellSize = m_rimReservoirView->eclipseCase()->reservoirData()->mainGrid()->characteristicIJCellSize();
|
||||
double pipeRadius = m_rimReservoirView->wellCollection()->pipeRadiusScaleFactor() *m_rimWell->pipeRadiusScaleFactor() * characteristicCellSize;
|
||||
|
||||
for (size_t brIdx = 0; brIdx < pipeBranchesCellIds.size(); ++brIdx)
|
||||
|
@ -435,18 +435,18 @@ cvf::Vec3d RigGridBase::displayModelOffset() const
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Returns the max size of the charactristic cell sizes
|
||||
/// Returns the min size of the I and J charactristic cell sizes
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigGridBase::characteristicCellSize()
|
||||
double RigGridBase::characteristicIJCellSize()
|
||||
{
|
||||
double characteristicCellSize = 0;
|
||||
double characteristicCellSize = HUGE_VAL;
|
||||
|
||||
double cellSizeI, cellSizeJ, cellSizeK;
|
||||
this->characteristicCellSizes(&cellSizeI, &cellSizeJ, &cellSizeK);
|
||||
|
||||
if (cellSizeI > characteristicCellSize) characteristicCellSize = cellSizeI;
|
||||
if (cellSizeJ > characteristicCellSize) characteristicCellSize = cellSizeJ;
|
||||
if (cellSizeK > characteristicCellSize) characteristicCellSize = cellSizeK;
|
||||
if (cellSizeI < characteristicCellSize) characteristicCellSize = cellSizeI;
|
||||
if (cellSizeJ < characteristicCellSize) characteristicCellSize = cellSizeJ;
|
||||
|
||||
|
||||
return characteristicCellSize;
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
void setGridIndex(size_t index) { m_gridIndex = index; }
|
||||
size_t gridIndex() { return m_gridIndex; }
|
||||
|
||||
double characteristicCellSize();
|
||||
double characteristicIJCellSize();
|
||||
|
||||
std::string gridName() const;
|
||||
void setGridName(const std::string& gridName);
|
||||
|
Loading…
Reference in New Issue
Block a user