Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -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
|
|
|
//
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -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>
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-10-06 08:00:39 -05:00
|
|
|
#include "cafSignal.h"
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cvfObject.h"
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -05:00
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
2020-10-06 08:00:39 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2018-03-20 07:12:20 -05:00
|
|
|
namespace cvf
|
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
class BoundingBox;
|
2018-03-20 07:12:20 -05:00
|
|
|
}
|
|
|
|
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -05:00
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -05:00
|
|
|
//==================================================================================================
|
2020-10-06 08:00:39 -05:00
|
|
|
class RigWellPath : public cvf::Object, public caf::SignalEmitter
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -05:00
|
|
|
{
|
2020-10-06 08:00:39 -05:00
|
|
|
public:
|
|
|
|
caf::Signal<> objectBeingDeleted;
|
|
|
|
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -05:00
|
|
|
public:
|
2020-10-06 05:37:16 -05:00
|
|
|
RigWellPath();
|
|
|
|
RigWellPath( const std::vector<cvf::Vec3d>& wellPathPoints, const std::vector<double>& measuredDepths );
|
|
|
|
RigWellPath( const RigWellPath& rhs );
|
|
|
|
RigWellPath& operator=( const RigWellPath& rhs );
|
2021-04-14 21:14:51 -05:00
|
|
|
~RigWellPath() override;
|
2016-10-25 07:56:26 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
const std::vector<cvf::Vec3d>& wellPathPoints() const;
|
2020-10-06 05:37:16 -05:00
|
|
|
const std::vector<double>& measuredDepths() const;
|
2019-09-06 03:40:57 -05:00
|
|
|
std::vector<double> trueVerticalDepths() const;
|
2018-07-02 07:51:17 -05:00
|
|
|
|
2020-10-06 05:37:16 -05:00
|
|
|
void setWellPathPoints( const std::vector<cvf::Vec3d>& wellPathPoints );
|
|
|
|
void setMeasuredDepths( const std::vector<double>& measuredDepths );
|
|
|
|
|
|
|
|
void addWellPathPoint( const cvf::Vec3d& wellPathPoint );
|
|
|
|
void addMeasuredDepth( double measuredDepth );
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setDatumElevation( double value );
|
|
|
|
bool hasDatumElevation() const;
|
|
|
|
double datumElevation() const;
|
|
|
|
double rkbDiff() const;
|
|
|
|
cvf::Vec3d interpolatedVectorValuesAlongWellPath( const std::vector<cvf::Vec3d>& vectors,
|
|
|
|
double measuredDepth,
|
|
|
|
double* horizontalLengthAlongWellToStartClipPoint = nullptr ) const;
|
2023-02-26 03:48:40 -06:00
|
|
|
cvf::Vec3d interpolatedPointAlongWellPath( double measuredDepth, double* horizontalLengthAlongWellToStartClipPoint = nullptr ) const;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2021-01-04 04:09:01 -06:00
|
|
|
cvf::Vec3d tangentAlongWellPath( double measuredDepth ) const;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
double wellPathAzimuthAngle( const cvf::Vec3d& position ) const;
|
|
|
|
void twoClosestPoints( const cvf::Vec3d& position, cvf::Vec3d* p1, cvf::Vec3d* p2 ) const;
|
2020-10-07 06:53:36 -05:00
|
|
|
double identicalTubeLength( const RigWellPath& otherWellPathGeometry ) const;
|
2021-08-13 09:48:33 -05:00
|
|
|
double closestMeasuredDepth( const cvf::Vec3d& position ) const;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2020-10-14 11:55:17 -05:00
|
|
|
static cvf::ref<RigWellPath> commonGeometry( const std::vector<const RigWellPath*>& allGeometries );
|
2021-02-26 07:27:59 -06:00
|
|
|
void setUniqueStartAndEndIndex( size_t uniqueStartIndex, size_t uniqueEndIndex );
|
2021-01-04 04:09:01 -06:00
|
|
|
size_t uniqueStartIndex() const;
|
2021-02-26 07:27:59 -06:00
|
|
|
size_t uniqueEndIndex() const;
|
2020-10-16 00:36:29 -05:00
|
|
|
std::vector<cvf::Vec3d> uniqueWellPathPoints() const;
|
2021-01-04 04:09:01 -06:00
|
|
|
std::vector<double> uniqueMeasuredDepths() const;
|
2020-10-09 01:38:18 -05:00
|
|
|
|
2019-11-04 07:35:41 -06:00
|
|
|
std::pair<std::vector<cvf::Vec3d>, std::vector<double>>
|
2020-02-12 04:43:15 -06:00
|
|
|
clippedPointSubset( double startMD, double endMD, double* horizontalLengthAlongWellToStartClipPoint = nullptr ) const;
|
2018-04-13 07:35:14 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
std::vector<cvf::Vec3d> wellPathPointsIncludingInterpolatedIntersectionPoint( double intersectionMeasuredDepth ) const;
|
2017-09-19 10:20:49 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
static bool isAnyPointInsideBoundingBox( const std::vector<cvf::Vec3d>& points, const cvf::BoundingBox& boundingBox );
|
2016-10-25 07:56:26 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
static std::vector<cvf::Vec3d> clipPolylineStartAboveZ( const std::vector<cvf::Vec3d>& polyLine,
|
2023-09-12 12:59:16 -05:00
|
|
|
const double maxZ,
|
|
|
|
double& horizontalLengthAlongWellToClipPoint,
|
|
|
|
double& measuredDepthAtFirstClipPoint,
|
|
|
|
size_t& indexToFirstVisibleSegment );
|
2018-01-16 00:54:03 -06:00
|
|
|
|
2021-08-13 09:48:33 -05:00
|
|
|
private:
|
|
|
|
std::pair<size_t, size_t> closestIndices( const cvf::Vec3d& position ) const;
|
|
|
|
|
2016-10-25 07:56:26 -05:00
|
|
|
private:
|
2020-10-06 05:37:16 -05:00
|
|
|
std::vector<cvf::Vec3d> m_wellPathPoints;
|
|
|
|
std::vector<double> m_measuredDepths;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool m_hasDatumElevation;
|
|
|
|
double m_datumElevation;
|
2021-02-26 07:27:59 -06:00
|
|
|
size_t m_uniqueStartIndex;
|
|
|
|
size_t m_uniqueEndIndex;
|
Added visualization of Well Paths in reservoir views.
Added PDM objects for a list of well paths (RimWellPathCollection) and for individual well paths (RimWellPath).
RimWellPathCollection uses RivWellPathCollectionPartMgr to generate visualization parts for each well path in the collection.
RimWellPath handles geometry defined in RigWellPath, and RivWellPathPartMgr is used to generate visualization parts. The well path visualization parts are generated by reusing RivPipeGeometryGenerator (also used for well pipes).
Added features:
- Select Open Well Paths in File menu to open one or more well path files, file format supported is Statoil JSON format.
- Each well path has a label showing the name, and the PDM window will show additional info (Id, Source System, UTM Zone, Update Date and User, Survey Type, File Path).
- Possible to turn on / off visibility, set thickness, set color for individual well paths.
- List of well paths including specified parameters/settings will be stored in project file.
- Possible to clip all well paths at a specified distance to the reservoir as this is the relevant area to see, and if showing whole well path it may be problematic for auto zoom etc.
p4#: 21652
2013-05-16 06:06:00 -05:00
|
|
|
};
|