mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Apply correct frame indices for OBG0 and SH_MK WBS curve calculation
This commit is contained in:
@@ -156,6 +156,10 @@ void RigGeoMechWellLogExtractor::curveData( const RigFemResultAddress& resAddr,
|
|||||||
RigWbsParameter param;
|
RigWbsParameter param;
|
||||||
if ( RigWbsParameter::findParameter( QString::fromStdString( resAddr.fieldName ), ¶m ) )
|
if ( RigWbsParameter::findParameter( QString::fromStdString( resAddr.fieldName ), ¶m ) )
|
||||||
{
|
{
|
||||||
|
if ( param == RigWbsParameter::OBG0() )
|
||||||
|
{
|
||||||
|
frameIndex = 0;
|
||||||
|
}
|
||||||
calculateWbsParameterForAllSegments( param, frameIndex, values );
|
calculateWbsParameterForAllSegments( param, frameIndex, values );
|
||||||
if ( param == RigWbsParameter::UCS() ) // UCS is reported as UCS/100
|
if ( param == RigWbsParameter::UCS() ) // UCS is reported as UCS/100
|
||||||
{
|
{
|
||||||
@@ -652,9 +656,9 @@ void RigGeoMechWellLogExtractor::wellBoreSH_MatthewsKelly( int frameIndex, std::
|
|||||||
curveData( ppAddr, frameIndex, &PP );
|
curveData( ppAddr, frameIndex, &PP );
|
||||||
curveData( ppAddr, 0, &PP0 );
|
curveData( ppAddr, 0, &PP0 );
|
||||||
|
|
||||||
calculateWbsParameterForAllSegments( RigWbsParameter::K0_SH(), 0, &K0_SH );
|
calculateWbsParameterForAllSegments( RigWbsParameter::K0_SH(), frameIndex, &K0_SH );
|
||||||
calculateWbsParameterForAllSegments( RigWbsParameter::OBG0(), 0, &OBG0 );
|
calculateWbsParameterForAllSegments( RigWbsParameter::OBG0(), 0, &OBG0 );
|
||||||
calculateWbsParameterForAllSegments( RigWbsParameter::DF(), 0, &DF );
|
calculateWbsParameterForAllSegments( RigWbsParameter::DF(), frameIndex, &DF );
|
||||||
|
|
||||||
values->resize( m_intersections.size(), std::numeric_limits<double>::infinity() );
|
values->resize( m_intersections.size(), std::numeric_limits<double>::infinity() );
|
||||||
|
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ RigWbsParameter RigWbsParameter::OBG()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RigWbsParameter RigWbsParameter::OBG0()
|
RigWbsParameter RigWbsParameter::OBG0()
|
||||||
{
|
{
|
||||||
std::vector<std::pair<Source, SourceAddress>> sources = {{GRID, SourceAddress( "ST", "S33", 0 )}};
|
std::vector<std::pair<Source, SourceAddress>> sources = {{GRID, SourceAddress( "ST", "S33" )}};
|
||||||
return RigWbsParameter( "OBG0", true, sources );
|
return RigWbsParameter( "OBG0", true, sources );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -87,11 +87,9 @@ private:
|
|||||||
RigFemResultPosEnum resType;
|
RigFemResultPosEnum resType;
|
||||||
QString primary; // i.e. grid field name, las entry, etc.
|
QString primary; // i.e. grid field name, las entry, etc.
|
||||||
QString secondary; // i.e. grid component name
|
QString secondary; // i.e. grid component name
|
||||||
int timeStep;
|
SourceAddress( QString primary = "", QString secondary = "" )
|
||||||
SourceAddress( QString primary = "", QString secondary = "", int timeStep = -1 )
|
|
||||||
: primary( primary )
|
: primary( primary )
|
||||||
, secondary( secondary )
|
, secondary( secondary )
|
||||||
, timeStep( timeStep )
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user