Add condictivity conversion method

From pre-proto branch, to delete it there. Unused for now
This commit is contained in:
Jacob Støren 2017-06-14 11:15:59 +02:00
parent 815c213140
commit 84597a992d
2 changed files with 27 additions and 0 deletions

View File

@ -57,3 +57,27 @@ double RiaEclipseUnitTools::darcysConstant(UnitSystem unitSystem)
return 0.0;
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RiaEclipseUnitTools::convertConductivtyValue(double Kw, UnitSystem fromUnit, UnitSystem toUnit)
{
if (fromUnit == toUnit) return Kw;
else if (fromUnit == UNITS_METRIC && toUnit == UNITS_FIELD)
{
return meterToFeet(Kw);
}
else if (fromUnit == UNITS_METRIC && toUnit == UNITS_FIELD)
{
return feetToMeter(Kw);
}
CVF_ASSERT(false);
return HUGE_VAL;
}

View File

@ -43,5 +43,8 @@ public:
static double inchToMeter(double inch) { return (inch / 12)*meterPerFeet(); }
static double darcysConstant(UnitSystem unitSystem);
static double convertConductivtyValue(double Kw, UnitSystem fromUnit, UnitSystem toUnit);
};