mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2494 Add height/width fracture scaling
This commit is contained in:
@@ -130,6 +130,30 @@ double RigStimPlanFractureDefinition::maxY() const
|
||||
return m_Ys.back();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigStimPlanFractureDefinition::scaleXs(double scaleFactor)
|
||||
{
|
||||
// Scale using 0 as scaling anchor
|
||||
for (double& x : m_Xs)
|
||||
{
|
||||
x *= scaleFactor;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigStimPlanFractureDefinition::scaleYs(double scaleFactor, double wellPathIntersectionY)
|
||||
{
|
||||
// Scale using wellPathIntersectionY as scaling anchor
|
||||
for (double& y : m_Ys)
|
||||
{
|
||||
y = (y - wellPathIntersectionY) * scaleFactor + wellPathIntersectionY;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user