mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
#2494 Add height/width fracture scaling
This commit is contained in:
1 parent
4f20c7862e
commit
2ac9aba485
8 files changed
+97
-11
No files matched your search
@@ -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