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;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -121,6 +121,8 @@ private:
|
||||
bool numberOfParameterValuesOK(std::vector<std::vector<double>> propertyValuesAtTimestep);
|
||||
double minY() const;
|
||||
double maxY() const;
|
||||
void scaleXs(double scaleFactor);
|
||||
void scaleYs(double scaleFactor, double wellPathIntersectionY);
|
||||
|
||||
private:
|
||||
RiaEclipseUnitTools::UnitSystem m_unitSet; // To be deleted
|
||||
|
||||
Reference in New Issue
Block a user