Update grid part naming (#10879)

* Rename parts
* Make sure well extraction goes along model, not fault
* Match part naming with parts
This commit is contained in:
jonjenssen
2023-11-28 02:26:09 +01:00
committed by GitHub
parent da6757e9fa
commit 52259a69f3
8 changed files with 60 additions and 25 deletions

View File

@@ -34,6 +34,7 @@
//--------------------------------------------------------------------------------------------------
RigGriddedPart3d::RigGriddedPart3d()
: m_useLocalCoordinates( false )
, m_topHeight( 0.0 )
{
}
@@ -193,10 +194,13 @@ void RigGriddedPart3d::generateGeometry( const std::array<cvf::Vec3d, 12>& input
const double maxCellHeight,
double cellSizeFactor,
const std::vector<double>& horizontalPartition,
double modelThickness )
double modelThickness,
double topHeight )
{
reset();
m_topHeight = topHeight;
std::map<Regions, std::vector<double>> layersPerRegion;
layersPerRegion[Regions::LowerUnderburden] = generateGrowingLayers( inputPoints[1].z(), inputPoints[0].z(), maxCellHeight, cellSizeFactor );
@@ -481,6 +485,14 @@ bool RigGriddedPart3d::useLocalCoordinates() const
return m_useLocalCoordinates;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RigGriddedPart3d::topHeight() const
{
return m_topHeight;
}
//--------------------------------------------------------------------------------------------------
/// Output elements will be of type HEX8
///