2023-11-15 10:15:16 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2023 - Equinor ASA
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "RimFaultReactivationDataAccessor.h"
|
|
|
|
|
#include "RimFaultReactivationEnums.h"
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2023-12-08 16:00:20 +01:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
|
#include "cafPdmPtrField.h"
|
|
|
|
|
|
|
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
|
|
|
|
class RigGriddedPart3d;
|
|
|
|
|
class RimModeledWellPath;
|
|
|
|
|
class RigWellPath;
|
2023-11-15 10:15:16 +01:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RimFaultReactivationDataAccessorStress : public RimFaultReactivationDataAccessor
|
|
|
|
|
{
|
|
|
|
|
public:
|
2024-01-10 10:16:59 +01:00
|
|
|
enum class StressType
|
|
|
|
|
{
|
|
|
|
|
S11,
|
|
|
|
|
S22,
|
|
|
|
|
S33
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
RimFaultReactivationDataAccessorStress( RimFaultReactivation::Property property, double gradient, double seabedDepth );
|
|
|
|
|
virtual ~RimFaultReactivationDataAccessorStress();
|
2023-11-15 10:15:16 +01:00
|
|
|
|
|
|
|
|
bool isMatching( RimFaultReactivation::Property property ) const override;
|
|
|
|
|
|
2023-12-06 16:00:42 +01:00
|
|
|
double valueAtPosition( const cvf::Vec3d& position,
|
|
|
|
|
const RigFaultReactivationModel& model,
|
|
|
|
|
RimFaultReactivation::GridPart gridPart,
|
2023-12-08 16:00:20 +01:00
|
|
|
double topDepth = std::numeric_limits<double>::infinity(),
|
|
|
|
|
double bottomDepth = std::numeric_limits<double>::infinity(),
|
|
|
|
|
size_t elementIndex = std::numeric_limits<size_t>::max() ) const override;
|
2023-11-15 10:15:16 +01:00
|
|
|
|
2024-01-10 10:16:59 +01:00
|
|
|
protected:
|
|
|
|
|
virtual bool isDataAvailable() const = 0;
|
2023-11-15 10:15:16 +01:00
|
|
|
|
2024-01-10 15:13:03 +01:00
|
|
|
virtual double extractStressValue( StressType stressType, const cvf::Vec3d& position, RimFaultReactivation::GridPart gridPart ) const = 0;
|
2023-11-15 10:15:16 +01:00
|
|
|
|
2024-02-05 17:52:32 +01:00
|
|
|
virtual std::pair<double, cvf::Vec3d> calculatePorBar( const cvf::Vec3d& position,
|
|
|
|
|
RimFaultReactivation::ElementSets elementSet,
|
|
|
|
|
double gradient,
|
|
|
|
|
RimFaultReactivation::GridPart gridPart ) const = 0;
|
2023-11-15 10:15:16 +01:00
|
|
|
|
2024-01-10 15:13:03 +01:00
|
|
|
virtual bool isPositionValid( const cvf::Vec3d& position,
|
|
|
|
|
const cvf::Vec3d& topPosition,
|
|
|
|
|
const cvf::Vec3d& bottomPosition,
|
|
|
|
|
RimFaultReactivation::GridPart gridPart ) const = 0;
|
|
|
|
|
|
2024-02-05 17:52:32 +01:00
|
|
|
virtual double lateralStressComponentX( const cvf::Vec3d& position,
|
|
|
|
|
RimFaultReactivation::ElementSets elementSet,
|
|
|
|
|
RimFaultReactivation::GridPart gridPart ) const;
|
|
|
|
|
virtual double lateralStressComponentY( const cvf::Vec3d& position,
|
|
|
|
|
RimFaultReactivation::ElementSets elementSet,
|
|
|
|
|
RimFaultReactivation::GridPart gridPart ) const;
|
2023-12-08 16:00:20 +01:00
|
|
|
|
2023-11-15 10:15:16 +01:00
|
|
|
RimFaultReactivation::Property m_property;
|
2023-12-08 16:00:20 +01:00
|
|
|
double m_gradient;
|
2024-01-05 14:59:05 +01:00
|
|
|
double m_seabedDepth;
|
2023-11-15 10:15:16 +01:00
|
|
|
};
|