mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Update valueAtPosition interface.
This commit is contained in:
parent
8375b3e934
commit
2ee8954708
@ -138,7 +138,7 @@ std::vector<double> RimFaultReactivationDataAccess::extractModelData( const RigF
|
||||
{
|
||||
for ( auto& node : grid->globalNodes() )
|
||||
{
|
||||
double value = accessor->valueAtPosition( node );
|
||||
double value = accessor->valueAtPosition( node, model, gridPart );
|
||||
values.push_back( value );
|
||||
}
|
||||
}
|
||||
@ -153,7 +153,7 @@ std::vector<double> RimFaultReactivationDataAccess::extractModelData( const RigF
|
||||
double bottomDepth = computeAverageDepth( corners, { 4, 5, 6, 7 } );
|
||||
|
||||
cvf::Vec3d position = RigCaseToCaseCellMapperTools::calculateCellCenter( corners.data() );
|
||||
double value = accessor->valueAtPosition( position, topDepth, bottomDepth );
|
||||
double value = accessor->valueAtPosition( position, model, gridPart, topDepth, bottomDepth );
|
||||
values.push_back( value );
|
||||
}
|
||||
}
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <map>
|
||||
|
||||
class RigMainGrid;
|
||||
class RigFaultReactivationModel;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
@ -41,9 +42,11 @@ public:
|
||||
|
||||
virtual bool isMatching( RimFaultReactivation::Property property ) const = 0;
|
||||
|
||||
virtual double valueAtPosition( const cvf::Vec3d& position,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const = 0;
|
||||
virtual double valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const = 0;
|
||||
|
||||
protected:
|
||||
virtual void updateResultAccessor() = 0;
|
||||
|
@ -97,7 +97,11 @@ bool RimFaultReactivationDataAccessorGeoMech::isMatching( RimFaultReactivation::
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFaultReactivationDataAccessorGeoMech::valueAtPosition( const cvf::Vec3d& position, double topDepth, double bottomDepth ) const
|
||||
double RimFaultReactivationDataAccessorGeoMech::valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth,
|
||||
double bottomDepth ) const
|
||||
|
||||
{
|
||||
if ( !m_resultFrames ) return std::numeric_limits<double>::infinity();
|
||||
|
@ -40,9 +40,11 @@ public:
|
||||
|
||||
bool isMatching( RimFaultReactivation::Property property ) const override;
|
||||
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
@ -86,7 +86,11 @@ bool RimFaultReactivationDataAccessorPorePressure::isMatching( RimFaultReactivat
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFaultReactivationDataAccessorPorePressure::valueAtPosition( const cvf::Vec3d& position, double topDepth, double bottomDepth ) const
|
||||
double RimFaultReactivationDataAccessorPorePressure::valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth,
|
||||
double bottomDepth ) const
|
||||
{
|
||||
if ( ( m_mainGrid != nullptr ) && m_resultAccessor.notNull() )
|
||||
{
|
||||
|
@ -41,9 +41,11 @@ public:
|
||||
|
||||
bool isMatching( RimFaultReactivation::Property property ) const override;
|
||||
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
@ -97,7 +97,11 @@ bool RimFaultReactivationDataAccessorStress::isMatching( RimFaultReactivation::P
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFaultReactivationDataAccessorStress::valueAtPosition( const cvf::Vec3d& position, double topDepth, double bottomDepth ) const
|
||||
double RimFaultReactivationDataAccessorStress::valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth,
|
||||
double bottomDepth ) const
|
||||
{
|
||||
if ( !m_porFrames || !m_s11Frames || !m_s22Frames || !m_s33Frames || !m_femPart ) return std::numeric_limits<double>::infinity();
|
||||
|
||||
|
@ -44,9 +44,11 @@ public:
|
||||
|
||||
bool isMatching( RimFaultReactivation::Property property ) const override;
|
||||
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
@ -83,7 +83,11 @@ bool RimFaultReactivationDataAccessorTemperature::isMatching( RimFaultReactivati
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFaultReactivationDataAccessorTemperature::valueAtPosition( const cvf::Vec3d& position, double topDepth, double bottomDepth ) const
|
||||
double RimFaultReactivationDataAccessorTemperature::valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth,
|
||||
double bottomDepth ) const
|
||||
{
|
||||
if ( ( m_mainGrid != nullptr ) && m_resultAccessor.notNull() )
|
||||
{
|
||||
|
@ -41,9 +41,11 @@ public:
|
||||
|
||||
bool isMatching( RimFaultReactivation::Property property ) const override;
|
||||
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
@ -84,7 +84,11 @@ bool RimFaultReactivationDataAccessorVoidRatio::isMatching( RimFaultReactivation
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFaultReactivationDataAccessorVoidRatio::valueAtPosition( const cvf::Vec3d& position, double topDepth, double bottomDepth ) const
|
||||
double RimFaultReactivationDataAccessorVoidRatio::valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth,
|
||||
double bottomDepth ) const
|
||||
{
|
||||
if ( ( m_mainGrid != nullptr ) && m_resultAccessor.notNull() )
|
||||
{
|
||||
|
@ -41,9 +41,11 @@ public:
|
||||
|
||||
bool isMatching( RimFaultReactivation::Property property ) const override;
|
||||
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
double valueAtPosition( const cvf::Vec3d& position,
|
||||
const RigFaultReactivationModel& model,
|
||||
RimFaultReactivation::GridPart gridPart,
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
Loading…
Reference in New Issue
Block a user