2015-08-31 05:42:35 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2015-08-31 05:42:35 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2015-08-31 05:42:35 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2015-08-31 05:42:35 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-10-14 01:08:13 -05:00
|
|
|
#include "RigWellLogExtractor.h"
|
|
|
|
|
2017-01-10 02:51:39 -06:00
|
|
|
class RigEclipseCaseData;
|
2015-08-31 05:42:35 -05:00
|
|
|
class RigWellPath;
|
|
|
|
class RigResultAccessor;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
namespace cvf
|
|
|
|
{
|
|
|
|
class BoundingBox;
|
2015-08-31 05:42:35 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2015-08-31 05:42:35 -05:00
|
|
|
//==================================================================================================
|
2015-10-14 01:08:13 -05:00
|
|
|
class RigEclipseWellLogExtractor : public RigWellLogExtractor
|
2015-08-31 05:42:35 -05:00
|
|
|
{
|
|
|
|
public:
|
2020-10-06 05:37:16 -05:00
|
|
|
RigEclipseWellLogExtractor( gsl::not_null<const RigEclipseCaseData*> aCase,
|
|
|
|
gsl::not_null<const RigWellPath*> wellpath,
|
2022-09-01 23:51:21 -05:00
|
|
|
const std::string& wellCaseErrorMsgName );
|
2015-09-03 13:13:08 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void curveData( const RigResultAccessor* resultAccessor, std::vector<double>* values );
|
2020-02-12 04:13:38 -06:00
|
|
|
const RigEclipseCaseData* caseData() { return m_caseData.p(); }
|
2017-09-19 10:20:49 -05:00
|
|
|
|
2018-04-17 03:14:57 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
void calculateIntersection();
|
|
|
|
std::vector<size_t> findCloseCellIndices( const cvf::BoundingBox& bb );
|
2023-02-26 03:48:40 -06:00
|
|
|
cvf::Vec3d calculateLengthInCell( size_t cellIndex, const cvf::Vec3d& startPoint, const cvf::Vec3d& endPoint ) const override;
|
2015-08-31 05:42:35 -05:00
|
|
|
|
2022-09-01 23:51:21 -05:00
|
|
|
double computeLengthThreshold() const;
|
|
|
|
|
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
cvf::cref<RigEclipseCaseData> m_caseData;
|
2015-08-31 05:42:35 -05:00
|
|
|
};
|