mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
parent
78c3568ff7
commit
7daed80af7
@ -197,7 +197,7 @@ RimFractureModel::RimFractureModel()
|
|||||||
CAF_PDM_InitScriptableField( &m_thermalExpansionCoeffientDefault,
|
CAF_PDM_InitScriptableField( &m_thermalExpansionCoeffientDefault,
|
||||||
"ThermalExpansionCoeffisient",
|
"ThermalExpansionCoeffisient",
|
||||||
0.0,
|
0.0,
|
||||||
"Thermal Expansion Coeffisient",
|
"Thermal Expansion Coeffisient [1/C]",
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
"" );
|
"" );
|
||||||
|
@ -622,5 +622,16 @@ std::vector<double> RimFractureModelPlot::calculatePoroElasticConstant() const
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
std::vector<double> RimFractureModelPlot::calculateThermalExpansionCoefficient() 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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user