mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7027 Stim Plan Model: add unit to legend text for relevant curves
This commit is contained in:
committed by
Magne Sjaastad
parent
53f102ee55
commit
5ad7bfac77
@@ -1840,3 +1840,32 @@ RimEclipseCase* RimStimPlanModel::eclipseCaseForType( RimExtractionConfiguration
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimStimPlanModel::unitForProperty( RiaDefines::CurveProperty curveProperty ) const
|
||||
{
|
||||
std::map<RiaDefines::CurveProperty, QString> propertyToUnitMapping;
|
||||
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::PERMEABILITY_X] = "mD";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::PERMEABILITY_Z] = "mD";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::YOUNGS_MODULUS] = "MMpsi";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::K_IC] = "<html>psi * √in</html>";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::PROPPANT_EMBEDMENT] = "<html>lb / ft";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::SPURT_LOSS] = "<html>gal / 100ft²</html>";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::FLUID_LOSS_COEFFICIENT] = "<html>ft / √min</html>";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT] = "<html>1 / °C</html>";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::TEMPERATURE] = "<html>°C</html>";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::STRESS] = "Psi";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::INITIAL_STRESS] = "Psi";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::STRESS_GRADIENT] = "Psi / ft";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::PRESSURE] = "Bar";
|
||||
propertyToUnitMapping[RiaDefines::CurveProperty::INITIAL_PRESSURE] = "Bar";
|
||||
|
||||
auto hit = propertyToUnitMapping.find( curveProperty );
|
||||
if ( hit != propertyToUnitMapping.end() )
|
||||
return hit->second;
|
||||
else
|
||||
return " ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user