mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fault Reactivation Grid Update (#10866)
* Fix gridding error * Add part name to element set filter * Use sea bottom from geomech case model, if selected
This commit is contained in:
@@ -396,13 +396,13 @@ void RigFaultReactivationModelGenerator::generateGeometry( size_t
|
||||
|
||||
cvf::Vec3d bottom_point = m_bottomReservoirFront;
|
||||
|
||||
if ( front_bottom < back_bottom )
|
||||
if ( front_bottom > back_bottom )
|
||||
{
|
||||
bottom_point = extrapolatePoint( zPositionsBack.begin()->second, ( ++zPositionsBack.begin() )->second, m_bufferBelowFault );
|
||||
bottom_point = extrapolatePoint( ( ++zPositionsBack.begin() )->second, zPositionsBack.begin()->second, m_bufferBelowFault );
|
||||
}
|
||||
else if ( back_bottom < front_bottom )
|
||||
else if ( front_bottom < back_bottom )
|
||||
{
|
||||
bottom_point = extrapolatePoint( zPositionsFront.begin()->second, ( ++zPositionsFront.begin() )->second, m_bufferBelowFault );
|
||||
bottom_point = extrapolatePoint( ( ++zPositionsFront.begin() )->second, zPositionsFront.begin()->second, m_bufferBelowFault );
|
||||
}
|
||||
|
||||
m_bottomFault = bottom_point;
|
||||
@@ -415,13 +415,13 @@ void RigFaultReactivationModelGenerator::generateGeometry( size_t
|
||||
m_topReservoirBack = zPositionsBack.rbegin()->second;
|
||||
|
||||
cvf::Vec3d top_point = m_topReservoirFront;
|
||||
if ( front_top < back_top )
|
||||
if ( front_top > back_top )
|
||||
{
|
||||
top_point = extrapolatePoint( zPositionsFront.rbegin()->second, ( ++zPositionsFront.rbegin() )->second, m_bufferAboveFault );
|
||||
top_point = extrapolatePoint( ( ++zPositionsFront.rbegin() )->second, zPositionsFront.rbegin()->second, m_bufferAboveFault );
|
||||
}
|
||||
else if ( back_top < front_top )
|
||||
else if ( front_top < back_top )
|
||||
{
|
||||
top_point = extrapolatePoint( zPositionsBack.rbegin()->second, ( ++zPositionsBack.rbegin() )->second, m_bufferAboveFault );
|
||||
top_point = extrapolatePoint( ( ++zPositionsBack.rbegin() )->second, zPositionsBack.rbegin()->second, m_bufferAboveFault );
|
||||
}
|
||||
m_topFault = top_point;
|
||||
|
||||
@@ -489,7 +489,7 @@ std::map<double, cvf::Vec3d> RigFaultReactivationModelGenerator::elementLayers(
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Vec3d RigFaultReactivationModelGenerator::extrapolatePoint( cvf::Vec3d startPoint, cvf::Vec3d endPoint, double buffer )
|
||||
{
|
||||
cvf::Vec3d direction = startPoint - endPoint;
|
||||
cvf::Vec3d direction = endPoint - startPoint;
|
||||
direction.normalize();
|
||||
|
||||
return endPoint + ( buffer * direction );
|
||||
|
||||
Reference in New Issue
Block a user