#6364 Fix incorrect spelling of coefficient everywhere.

This commit is contained in:
Kristian Bendiksen
2020-08-26 10:18:29 +02:00
parent 7daed80af7
commit e6d170a230
6 changed files with 16 additions and 16 deletions

View File

@@ -195,9 +195,9 @@ RimFractureModel::RimFractureModel()
"" );
CAF_PDM_InitScriptableField( &m_poroElasticConstantDefault, "PoroElasticConstant", 0.0, "Poro-Elastic Constant", "", "", "" );
CAF_PDM_InitScriptableField( &m_thermalExpansionCoeffientDefault,
"ThermalExpansionCoeffisient",
"ThermalExpansionCoefficient",
0.0,
"Thermal Expansion Coeffisient [1/C]",
"Thermal Expansion Coefficient [1/C]",
"",
"",
"" );
@@ -767,7 +767,7 @@ double RimFractureModel::getDefaultValueForProperty( RiaDefines::CurveProperty c
{
return m_poroElasticConstantDefault;
}
else if ( curveProperty == RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFISIENT )
else if ( curveProperty == RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT )
{
return m_thermalExpansionCoeffientDefault;
}
@@ -786,7 +786,7 @@ bool RimFractureModel::hasDefaultValueForProperty( RiaDefines::CurveProperty cur
{
auto withDefaults = {RiaDefines::CurveProperty::RELATIVE_PERMEABILITY_FACTOR,
RiaDefines::CurveProperty::PORO_ELASTIC_CONSTANT,
RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFISIENT};
RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT};
return std::find( withDefaults.begin(), withDefaults.end(), curveProperty ) != withDefaults.end();
}

View File

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