mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6364 Fracture model plot: use Celsius as unit for temperature in plot.
This commit is contained in:
parent
202bcba93d
commit
78c3568ff7
@ -492,7 +492,7 @@ std::vector<double> RimFractureModelPlot::calculateStressGradient() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimFractureModelPlot::calculateTemperature( std::vector<double>& temperatures ) const
|
||||
void RimFractureModelPlot::calculateTemperature( std::vector<double>& temperatures ) const
|
||||
{
|
||||
// Reference temperature. Unit: degrees celsius
|
||||
const double referenceTemperature = m_fractureModel->referenceTemperature();
|
||||
@ -518,8 +518,6 @@ bool RimFractureModelPlot::calculateTemperature( std::vector<double>& temperatur
|
||||
|
||||
temperatures.push_back( temperature );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -83,6 +83,8 @@ public:
|
||||
std::vector<double> calculatePoroElasticConstant() const;
|
||||
std::vector<double> calculateThermalExpansionCoefficient() const;
|
||||
|
||||
void calculateTemperature( std::vector<double>& temperatures ) const;
|
||||
|
||||
protected:
|
||||
std::vector<double> findCurveAndComputeLayeredAverage( RiaDefines::CurveProperty curveProperty ) const;
|
||||
std::vector<double> findCurveXValuesByProperty( RiaDefines::CurveProperty curveProperty ) const;
|
||||
@ -93,8 +95,6 @@ protected:
|
||||
RimWellLogExtractionCurve* findCurveByProperty( RiaDefines::CurveProperty curveProperty ) const;
|
||||
bool calculateStressWithGradients( std::vector<double>& stress, std::vector<double>& stressGradients ) const;
|
||||
|
||||
bool calculateTemperature( std::vector<double>& temperatures ) const;
|
||||
|
||||
static double findValueAtTopOfLayer( const std::vector<double>& values,
|
||||
const std::vector<std::pair<size_t, size_t>>& layerBoundaryIndexes,
|
||||
size_t layerNo );
|
||||
|
@ -134,7 +134,7 @@ void RimFractureModelStressCurve::performDataExtraction( bool* isUsingPseudoLeng
|
||||
}
|
||||
else if ( m_curveProperty() == RiaDefines::CurveProperty::TEMPERATURE )
|
||||
{
|
||||
values = fractureModelPlot->calculateTemperature();
|
||||
fractureModelPlot->calculateTemperature( values );
|
||||
}
|
||||
|
||||
RimEclipseCase* eclipseCase = dynamic_cast<RimEclipseCase*>( m_case.value() );
|
||||
|
Loading…
Reference in New Issue
Block a user