#2494 Add height/width fracture scaling

This commit is contained in:
Bjørn Erik Jensen
2018-03-01 14:16:08 +01:00
parent 4f20c7862e
commit 2ac9aba485
8 changed files with 97 additions and 11 deletions

View File

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

View File

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