2017-10-04 07:59:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-10-04 07:59:38 -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
|
|
|
//
|
2017-10-04 07:59:38 -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>
|
2017-10-04 07:59:38 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-08-16 05:40:25 -05:00
|
|
|
#include "RiaRftDefines.h"
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include <set>
|
2017-10-04 07:59:38 -05:00
|
|
|
#include <string>
|
2017-10-05 14:16:16 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2017-10-05 06:49:49 -05:00
|
|
|
#include <QDateTime>
|
2017-10-04 07:59:38 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
|
|
|
///
|
2017-10-04 07:59:38 -05:00
|
|
|
//==================================================================================================
|
|
|
|
class RifEclipseRftAddress
|
|
|
|
{
|
2017-10-05 14:16:16 -05:00
|
|
|
public:
|
2022-02-23 06:57:02 -06:00
|
|
|
enum class RftWellLogChannelType
|
2017-10-06 06:35:49 -05:00
|
|
|
{
|
|
|
|
NONE,
|
2019-07-25 00:38:46 -05:00
|
|
|
TVD,
|
2017-10-06 06:35:49 -05:00
|
|
|
PRESSURE,
|
|
|
|
SWAT,
|
|
|
|
SOIL,
|
|
|
|
SGAS,
|
|
|
|
WRAT,
|
|
|
|
ORAT,
|
2019-07-25 00:38:46 -05:00
|
|
|
GRAT,
|
|
|
|
MD,
|
|
|
|
PRESSURE_P10,
|
|
|
|
PRESSURE_P50,
|
|
|
|
PRESSURE_P90,
|
2019-09-25 10:48:19 -05:00
|
|
|
PRESSURE_MEAN,
|
2022-02-23 06:57:02 -06:00
|
|
|
PRESSURE_ERROR,
|
|
|
|
SEGMENT_VALUES
|
2017-10-06 06:35:49 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
2023-02-26 03:48:40 -06:00
|
|
|
static RifEclipseRftAddress createAddress( const QString& wellName, const QDateTime& timeStep, RftWellLogChannelType wellLogChannel );
|
2017-10-04 07:59:38 -05:00
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
static RifEclipseRftAddress createSegmentAddress( const QString& wellName, const QDateTime& dateTime, const QString& resultName );
|
2022-08-16 05:40:25 -05:00
|
|
|
|
|
|
|
static RifEclipseRftAddress createBranchSegmentAddress( const QString& wellName,
|
|
|
|
const QDateTime& dateTime,
|
|
|
|
const QString& resultName,
|
|
|
|
int segmentBranchIndex,
|
|
|
|
RiaDefines::RftBranchType segmentBranchType );
|
2019-03-12 02:26:42 -05:00
|
|
|
|
2022-08-16 05:40:25 -05:00
|
|
|
QString segmentResultName() const;
|
|
|
|
int segmentBranchIndex() const;
|
|
|
|
RiaDefines::RftBranchType segmentBranchType() const;
|
2022-02-23 06:57:02 -06:00
|
|
|
|
|
|
|
const QString& wellName() const;
|
|
|
|
QDateTime timeStep() const;
|
|
|
|
const RftWellLogChannelType& wellLogChannel() const;
|
|
|
|
|
|
|
|
static std::set<RftWellLogChannelType> rftPlotChannelTypes();
|
|
|
|
static std::set<RftWellLogChannelType> pltPlotChannelTypes();
|
|
|
|
|
|
|
|
private:
|
2022-08-16 05:40:25 -05:00
|
|
|
RifEclipseRftAddress( const QString& wellName,
|
|
|
|
const QDateTime& timeStep,
|
|
|
|
RftWellLogChannelType wellLogChannel,
|
|
|
|
const QString& segmentResultName,
|
|
|
|
int segmentBranchIndex,
|
|
|
|
RiaDefines::RftBranchType segmentBranchType );
|
2019-03-12 02:26:42 -05:00
|
|
|
|
2017-10-04 07:59:38 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
QString m_wellName;
|
|
|
|
QDateTime m_timeStep;
|
|
|
|
RftWellLogChannelType m_wellLogChannel;
|
2022-02-23 06:57:02 -06:00
|
|
|
|
2022-08-16 05:40:25 -05:00
|
|
|
QString m_segmentResultName;
|
|
|
|
int m_segmentBranchIndex;
|
|
|
|
RiaDefines::RftBranchType m_segmentBranchType;
|
2017-10-04 07:59:38 -05:00
|
|
|
};
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool operator==( const RifEclipseRftAddress& first, const RifEclipseRftAddress& second );
|
2017-10-04 07:59:38 -05:00
|
|
|
|
2019-09-25 10:48:19 -05:00
|
|
|
bool operator<( const RifEclipseRftAddress& first, const RifEclipseRftAddress& second );
|