2015-11-26 03:14:43 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2017-10-13 06:44:53 -05:00
|
|
|
#include "RigSimWellData.h"
|
2015-11-26 03:14:43 -06:00
|
|
|
#include "cvfVector3.h"
|
|
|
|
#include <vector>
|
|
|
|
|
2017-01-20 08:00:19 -06:00
|
|
|
class RigEclipseCaseData;
|
2017-10-13 02:29:42 -05:00
|
|
|
class RimSimWellInView;
|
2015-11-26 03:14:43 -06:00
|
|
|
|
|
|
|
class RigSimulationWellCenterLineCalculator
|
|
|
|
{
|
|
|
|
public:
|
2017-10-13 02:29:42 -05:00
|
|
|
static void calculateWellPipeStaticCenterline(RimSimWellInView* rimWell,
|
2017-01-20 10:20:09 -06:00
|
|
|
std::vector< std::vector <cvf::Vec3d> >& pipeBranchesCLCoords,
|
|
|
|
std::vector< std::vector <RigWellResultPoint> >& pipeBranchesCellIds) ;
|
2017-01-20 08:00:19 -06:00
|
|
|
|
2017-10-13 02:29:42 -05:00
|
|
|
static void calculateWellPipeDynamicCenterline(const RimSimWellInView* rimWell,
|
2017-01-20 10:20:09 -06:00
|
|
|
size_t timeStepIndex,
|
|
|
|
std::vector< std::vector <cvf::Vec3d> >& pipeBranchesCLCoords,
|
|
|
|
std::vector< std::vector <RigWellResultPoint> >& pipeBranchesCellIds) ;
|
|
|
|
|
|
|
|
|
2017-01-23 04:10:09 -06:00
|
|
|
static void calculateWellPipeCenterlineFromWellFrame(const RigEclipseCaseData* eclipseCaseData,
|
2017-10-13 06:44:53 -05:00
|
|
|
const RigSimWellData* simWellData,
|
2017-01-23 04:10:09 -06:00
|
|
|
int timeStepIndex,
|
|
|
|
bool isAutoDetectBranches,
|
2017-01-20 08:57:04 -06:00
|
|
|
bool useAllCellCenters,
|
2017-01-23 04:10:09 -06:00
|
|
|
std::vector<std::vector<cvf::Vec3d>> &pipeBranchesCLCoords,
|
|
|
|
std::vector<std::vector<RigWellResultPoint>> &pipeBranchesCellIds);
|
|
|
|
private:
|
2017-01-20 08:00:19 -06:00
|
|
|
|
|
|
|
static bool hasAnyResultCells(const std::vector<RigWellResultBranch> &resBranches);
|
|
|
|
static bool hasAnyValidDataCells(const RigWellResultBranch& branch);
|
2015-11-26 03:14:43 -06:00
|
|
|
static void finishPipeCenterLine( std::vector< std::vector<cvf::Vec3d> > &pipeBranchesCLCoords, const cvf::Vec3d& lastCellCenter ) ;
|
2017-01-20 08:57:04 -06:00
|
|
|
|
2017-11-02 03:31:09 -05:00
|
|
|
static RigWellResultFrame splitIntoBranches(const RigWellResultFrame& wellResultFrame, const RigEclipseCaseData* eclipseCaseData);
|
2017-01-20 08:57:04 -06:00
|
|
|
static void addCellCenterPoints(const RigEclipseCaseData* eclipseCaseData, std::vector<std::vector<cvf::Vec3d>> &pipeBranchesCLCoords, std::vector<std::vector<RigWellResultPoint>> &pipeBranchesCellIds);
|
2015-11-26 03:14:43 -06:00
|
|
|
};
|
|
|
|
|