ResInsight/ApplicationLibCode/Application/Tools/WellPathTools/RiaWellPlanCalculator.h

56 lines
1.7 KiB
C
Raw Normal View History

2018-09-26 05:38:53 -05:00
/////////////////////////////////////////////////////////////////////////////////
//
2019-01-09 08:15:34 -06:00
// Copyright (C) 2018- Equinor ASA
//
2018-09-26 05:38:53 -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-01-09 08:15:34 -06:00
//
2018-09-26 05:38:53 -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-01-09 08:15:34 -06:00
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
2018-09-26 05:38:53 -05:00
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
2019-01-09 08:15:34 -06:00
2018-09-26 05:38:53 -05:00
#pragma once
#include "cvfVector3.h"
#include <vector>
class RiaWellPlanCalculator
{
public:
RiaWellPlanCalculator( const cvf::Vec3d& startTangent, const std::vector<cvf::Vec3d>& lineArcEndPoints );
2018-09-26 05:38:53 -05:00
struct WellPlanSegment
{
double MD;
double CL;
2018-09-26 05:38:53 -05:00
double inc;
double azi;
double TVD;
double NS;
double EW;
double dogleg;
double build;
2018-09-26 05:38:53 -05:00
double turn;
};
const std::vector<WellPlanSegment>& wellPlan() const { return m_wpResult; }
2018-09-26 05:38:53 -05:00
private:
void addSegment( cvf::Vec3d t1, cvf::Vec3d p1, cvf::Vec3d p2, cvf::Vec3d* endTangent );
void addLineSegment( cvf::Vec3d p1, cvf::Vec3d p2, cvf::Vec3d* endTangent );
void addArcSegment( cvf::Vec3d t1, cvf::Vec3d p1, cvf::Vec3d p2, cvf::Vec3d* endTangent );
2018-09-26 05:38:53 -05:00
cvf::Vec3d m_startTangent;
std::vector<cvf::Vec3d> m_lineArcEndPoints;
2018-09-26 05:38:53 -05:00
std::vector<WellPlanSegment> m_wpResult;
};