mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1629 Set default values on completions dependent on selected unit system
This commit is contained in:
@@ -316,6 +316,37 @@ void RimFishbonesMultipleSubs::recomputeLateralLocations()
|
||||
computeRotationAngles();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFishbonesMultipleSubs::setUnitSystemSpecificDefaults()
|
||||
{
|
||||
RimWellPath* wellPath;
|
||||
firstAncestorOrThisOfType(wellPath);
|
||||
if (wellPath)
|
||||
{
|
||||
if (wellPath->unitSystem() == RiaEclipseUnitTools::UNITS_METRIC)
|
||||
{
|
||||
m_rangeSubSpacing = 13;
|
||||
m_lateralLength = "11";
|
||||
m_lateralTubingDiameter = 8;
|
||||
m_lateralOpenHoleRoghnessFactor = 0.001;
|
||||
m_lateralTubingRoghnessFactor = 1e-05;
|
||||
m_icdOrificeDiameter = 7;
|
||||
}
|
||||
else if (wellPath->unitSystem() == RiaEclipseUnitTools::UNITS_FIELD)
|
||||
{
|
||||
m_rangeSubSpacing = 42;
|
||||
m_lateralLength = "36";
|
||||
m_lateralTubingDiameter = 0.31;
|
||||
m_lateralOpenHoleRoghnessFactor = 0.0032;
|
||||
m_lateralTubingRoghnessFactor = 3.28e-05;
|
||||
m_icdOrificeDiameter = 0.28;
|
||||
}
|
||||
m_pipeProperties->setUnitSystemSpecificDefaults();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user