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
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cvfObject.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
|
|
|
|
2021-05-26 04:31:47 -05:00
|
|
|
#include <memory>
|
2013-02-13 07:50:37 -06:00
|
|
|
#include <vector>
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2021-05-26 04:31:47 -05:00
|
|
|
namespace RiaDefines
|
|
|
|
{
|
|
|
|
enum class WellProductionType : short;
|
|
|
|
}
|
|
|
|
|
|
|
|
class RigWellResultFrame;
|
|
|
|
|
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;
|
|
|
|
|
2023-08-28 05:17:34 -05:00
|
|
|
void setWellName( const QString& wellName );
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool hasWellResult( size_t resultTimeStepIndex ) const;
|
|
|
|
bool hasAnyValidCells( size_t resultTimeStepIndex ) const;
|
|
|
|
|
2021-05-26 04:31:47 -05:00
|
|
|
const RigWellResultFrame* wellResultFrame( size_t resultTimeStepIndex ) const;
|
2021-05-26 03:56:21 -05:00
|
|
|
bool isOpen( size_t resultTimeStepIndex ) const;
|
|
|
|
RiaDefines::WellProductionType wellProductionType( size_t resultTimeStepIndex ) const;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2023-03-31 03:04:17 -05:00
|
|
|
const RigWellResultFrame* staticWellResultFrame() const;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
|
|
|
void computeMappingFromResultTimeIndicesToWellTimeIndices( const std::vector<QDateTime>& resultTimes );
|
|
|
|
|
|
|
|
public: // Todo: Clean up this regarding public members and constness etc.
|
|
|
|
QString m_wellName;
|
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
std::vector<size_t> m_resultTimeStepIndexToWellTimeStepIndex; // Well result timesteps may differ from result timesteps
|
2019-09-06 03:40:57 -05:00
|
|
|
std::vector<RigWellResultFrame> m_wellCellsTimeSteps;
|
|
|
|
|
2017-11-02 03:31:09 -05:00
|
|
|
private:
|
2021-05-26 04:31:47 -05:00
|
|
|
std::unique_ptr<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
|
|
|
};
|