2012-05-18 02:45:23 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron 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
|
|
|
|
|
2018-04-05 06:34:27 -05:00
|
|
|
#include "RigWellResultPoint.h"
|
|
|
|
|
2013-02-13 07:50:37 -06:00
|
|
|
#include "cvfBase.h"
|
|
|
|
#include "cvfObject.h"
|
|
|
|
#include "cvfMath.h"
|
2017-08-11 03:34:13 -05:00
|
|
|
#include "cvfVector3.h"
|
2013-02-13 07:50:37 -06:00
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
#include <QDateTime>
|
2017-08-11 03:34:13 -05:00
|
|
|
|
2013-02-13 07:50:37 -06:00
|
|
|
#include <vector>
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2017-10-13 06:44:53 -05:00
|
|
|
class RigSimWellData : public cvf::Object
|
2012-05-18 02:45:23 -05:00
|
|
|
{
|
|
|
|
public:
|
2018-04-05 06:34:27 -05:00
|
|
|
RigSimWellData();
|
2013-08-26 06:56:42 -05:00
|
|
|
|
2017-02-15 05:29:36 -06:00
|
|
|
void setMultiSegmentWell(bool isMultiSegmentWell);
|
|
|
|
bool isMultiSegmentWell() const;
|
2013-08-28 08:36:29 -05:00
|
|
|
|
2017-02-15 05:29:36 -06:00
|
|
|
bool hasWellResult(size_t resultTimeStepIndex) const;
|
2017-11-24 05:41:24 -06:00
|
|
|
bool hasAnyValidCells(size_t resultTimeStepIndex) const;
|
|
|
|
|
2017-02-15 05:29:36 -06:00
|
|
|
const RigWellResultFrame& wellResultFrame(size_t resultTimeStepIndex) const;
|
|
|
|
bool isOpen(size_t resultTimeStepIndex) const;
|
|
|
|
RigWellResultFrame::WellProductionType wellProductionType(size_t resultTimeStepIndex) const;
|
2013-08-28 08:36:29 -05:00
|
|
|
|
2017-03-01 07:23:01 -06:00
|
|
|
const RigWellResultFrame& staticWellCells() const;
|
|
|
|
|
2017-02-15 05:29:36 -06:00
|
|
|
void computeMappingFromResultTimeIndicesToWellTimeIndices(const std::vector<QDateTime>& resultTimes);
|
2013-08-28 08:36:29 -05:00
|
|
|
|
2017-02-15 05:29:36 -06:00
|
|
|
public: // Todo: Clean up this regarding public members and constness etc.
|
|
|
|
QString m_wellName;
|
|
|
|
|
|
|
|
std::vector<size_t> m_resultTimeStepIndexToWellTimeStepIndex; // Well result timesteps may differ from result timesteps
|
|
|
|
std::vector< RigWellResultFrame > m_wellCellsTimeSteps;
|
2017-11-02 03:31:09 -05:00
|
|
|
private:
|
2017-02-15 05:29:36 -06:00
|
|
|
mutable RigWellResultFrame m_staticWellCells;
|
|
|
|
|
2017-03-01 07:23:01 -06:00
|
|
|
void computeStaticWellCellPath() const;
|
|
|
|
|
2017-02-15 05:29:36 -06:00
|
|
|
private:
|
|
|
|
bool m_isMultiSegmentWell;
|
2012-05-18 02:45:23 -05:00
|
|
|
};
|
|
|
|
|