#6364 Use SI unit for thermal expansion coefficient.

And convert from SI unit (1/degrees Celsius) to field units (1/degrees
Fahrenheit) for the export.
This commit is contained in:
Kristian Bendiksen 2020-08-26 09:55:46 +02:00
parent 78c3568ff7
commit 7daed80af7
2 changed files with 13 additions and 2 deletions

View File

@ -197,7 +197,7 @@ RimFractureModel::RimFractureModel()
CAF_PDM_InitScriptableField( &m_thermalExpansionCoeffientDefault,
"ThermalExpansionCoeffisient",
0.0,
"Thermal Expansion Coeffisient",
"Thermal Expansion Coeffisient [1/C]",
"",
"",
"" );

View File

@ -622,5 +622,16 @@ std::vector<double> RimFractureModelPlot::calculatePoroElasticConstant() const
//--------------------------------------------------------------------------------------------------
std::vector<double> RimFractureModelPlot::calculateThermalExpansionCoefficient() const
{
return findCurveAndComputeLayeredAverage( RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFISIENT );
// SI unit is 1/Celsius
std::vector<double> coeffisientCelsius =
findCurveAndComputeLayeredAverage( RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFISIENT );
// Field unit is 1/Fahrenheit
std::vector<double> coeffisientFahrenheit;
for ( double c : coeffisientCelsius )
{
coeffisientFahrenheit.push_back( c / 1.8 );
}
return coeffisientFahrenheit;
}