2024-01-03 11:42:41 -06: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"
|
|
|
|
|
2024-01-05 03:58:24 -06:00
|
|
|
#include "cvfObject.h"
|
|
|
|
|
2024-01-03 11:42:41 -06:00
|
|
|
#include <vector>
|
|
|
|
|
2024-01-05 03:58:24 -06:00
|
|
|
class RigWellPath;
|
|
|
|
class RigEclipseWellLogExtractor;
|
|
|
|
class RigEclipseCaseData;
|
2024-01-05 05:57:39 -06:00
|
|
|
class RigResultAccessor;
|
2024-01-05 03:58:24 -06:00
|
|
|
|
2024-01-03 11:42:41 -06:00
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RimFaultReactivationDataAccessorWellLogExtraction
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RimFaultReactivationDataAccessorWellLogExtraction();
|
|
|
|
~RimFaultReactivationDataAccessorWellLogExtraction();
|
|
|
|
|
|
|
|
static std::pair<double, cvf::Vec3d>
|
|
|
|
calculatePorBar( const std::vector<cvf::Vec3d>& intersections, std::vector<double>& values, const cvf::Vec3d& position, double gradient );
|
2024-01-05 03:58:24 -06:00
|
|
|
|
2024-01-05 07:59:05 -06:00
|
|
|
static std::pair<double, cvf::Vec3d> calculateTemperature( const std::vector<cvf::Vec3d>& intersections,
|
|
|
|
std::vector<double>& values,
|
|
|
|
const cvf::Vec3d& position,
|
|
|
|
double seabedTemperature );
|
2024-01-05 03:58:24 -06:00
|
|
|
static std::pair<std::map<RimFaultReactivation::GridPart, cvf::ref<RigWellPath>>,
|
|
|
|
std::map<RimFaultReactivation::GridPart, cvf::ref<RigEclipseWellLogExtractor>>>
|
2024-01-05 07:59:05 -06:00
|
|
|
createEclipseWellPathExtractors( const RigFaultReactivationModel& model, RigEclipseCaseData& eclipseCaseData, double seabedDepth );
|
2024-01-05 03:58:24 -06:00
|
|
|
|
2024-01-05 07:59:05 -06:00
|
|
|
static std::vector<cvf::Vec3d> generateWellPoints( const cvf::Vec3d& faultTopPosition,
|
|
|
|
const cvf::Vec3d& faultBottomPosition,
|
|
|
|
double seabedDepth,
|
2024-01-10 08:13:03 -06:00
|
|
|
double bottomDepth,
|
2024-01-05 07:59:05 -06:00
|
|
|
const cvf::Vec3d& offset );
|
2024-01-03 11:42:41 -06:00
|
|
|
|
|
|
|
static std::vector<double> generateMds( const std::vector<cvf::Vec3d>& points );
|
|
|
|
|
2024-01-05 05:57:39 -06:00
|
|
|
static std::pair<std::vector<double>, std::vector<cvf::Vec3d>> extractValuesAndIntersections( const RigResultAccessor& resultAccessor,
|
|
|
|
RigEclipseWellLogExtractor& extractor,
|
|
|
|
const RigWellPath& wellPath );
|
2024-01-10 08:13:03 -06:00
|
|
|
static std::pair<int, int> findIntersectionsForTvd( const std::vector<cvf::Vec3d>& intersections, double tvd );
|
2024-01-05 05:57:39 -06:00
|
|
|
|
2024-01-03 11:42:41 -06:00
|
|
|
protected:
|
|
|
|
static std::pair<int, int> findOverburdenAndUnderburdenIndex( const std::vector<double>& values );
|
2024-01-05 07:59:05 -06:00
|
|
|
static double computeValueWithGradient( const std::vector<cvf::Vec3d>& intersections,
|
|
|
|
const std::vector<double>& values,
|
|
|
|
int i1,
|
|
|
|
int i2,
|
|
|
|
double gradient );
|
|
|
|
static void fillInMissingValuesWithGradient( const std::vector<cvf::Vec3d>& intersections, std::vector<double>& values, double gradient );
|
|
|
|
static void fillInMissingValuesWithTopValue( const std::vector<cvf::Vec3d>& intersections, std::vector<double>& values, double topValue );
|
|
|
|
|
|
|
|
static std::pair<double, cvf::Vec3d>
|
|
|
|
findValueAndPosition( const std::vector<cvf::Vec3d>& intersections, const std::vector<double>& values, const cvf::Vec3d& position );
|
|
|
|
|
|
|
|
static double computeGradient( double depth1, double value1, double depth2, double value2 );
|
|
|
|
static std::vector<double> extractDepthValues( const std::vector<cvf::Vec3d>& intersections );
|
|
|
|
|
2024-01-31 06:12:02 -06:00
|
|
|
static void insertUnderburdenValues( const std::vector<cvf::Vec3d>& intersections,
|
|
|
|
std::vector<double>& values,
|
|
|
|
int firstUnderburdenIndex,
|
|
|
|
double bottomValue );
|
|
|
|
static void insertOverburdenValues( const std::vector<cvf::Vec3d>& intersections,
|
|
|
|
std::vector<double>& values,
|
|
|
|
int lastOverburdenIndex,
|
|
|
|
double topValue );
|
|
|
|
static double computeMinimumDistance( const cvf::Vec3d& position, const std::vector<cvf::Vec3d>& positions );
|
2024-01-03 11:42:41 -06:00
|
|
|
};
|