2012-05-18 02:45:23 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2012-05-18 02:45:23 -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
|
|
|
//
|
2012-05-18 02:45:23 -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>
|
2012-05-18 02:45:23 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-04-05 06:34:27 -05:00
|
|
|
#include "RigWellResultPoint.h"
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cvfObject.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
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
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
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setMultiSegmentWell( bool isMultiSegmentWell );
|
|
|
|
bool isMultiSegmentWell() const;
|
|
|
|
|
|
|
|
bool hasWellResult( size_t resultTimeStepIndex ) const;
|
|
|
|
bool hasAnyValidCells( size_t resultTimeStepIndex ) const;
|
|
|
|
|
|
|
|
const RigWellResultFrame& wellResultFrame( size_t resultTimeStepIndex ) const;
|
|
|
|
bool isOpen( size_t resultTimeStepIndex ) const;
|
|
|
|
RigWellResultFrame::WellProductionType wellProductionType( size_t resultTimeStepIndex ) const;
|
|
|
|
|
|
|
|
const RigWellResultFrame& staticWellCells() const;
|
|
|
|
|
|
|
|
void computeMappingFromResultTimeIndicesToWellTimeIndices( const std::vector<QDateTime>& resultTimes );
|
|
|
|
|
|
|
|
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:
|
2019-09-06 03:40:57 -05:00
|
|
|
mutable RigWellResultFrame m_staticWellCells;
|
2017-02-15 05:29:36 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void computeStaticWellCellPath() const;
|
2017-03-01 07:23:01 -06:00
|
|
|
|
2017-02-15 05:29:36 -06:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
bool m_isMultiSegmentWell;
|
2012-05-18 02:45:23 -05:00
|
|
|
};
|