Well pipe size now is based on min characteristic I, J cell size

p4#: 20628
This commit is contained in:
Jacob Støren 2013-02-26 14:08:30 +01:00
parent dc02b1ae91
commit ad082254af
4 changed files with 9 additions and 9 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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;
}

View File

@ -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);