mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add condictivity conversion method
From pre-proto branch, to delete it there. Unused for now
This commit is contained in:
parent
815c213140
commit
84597a992d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user