2017-05-16 02:43:41 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017- Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-05-16 02:43:41 -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-05-16 02:43:41 -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-05-16 02:43:41 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-01-30 08:35:03 -06:00
|
|
|
#include "RicCaseAndFileExportSettingsUi.h"
|
2018-09-14 07:00:27 -05:00
|
|
|
#include "RicExportFractureCompletionsImpl.h"
|
2017-05-16 02:43:41 -05:00
|
|
|
|
2017-06-14 08:30:50 -05:00
|
|
|
#include "cafAppEnum.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmField.h"
|
2017-05-16 02:43:41 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
|
|
|
///
|
2017-05-16 02:43:41 -05:00
|
|
|
//==================================================================================================
|
2017-05-30 07:37:51 -05:00
|
|
|
class RicExportCompletionDataSettingsUi : public RicCaseAndFileExportSettingsUi
|
2017-05-16 02:43:41 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2017-05-16 02:43:41 -05:00
|
|
|
public:
|
2019-05-24 01:53:29 -05:00
|
|
|
// Exported in .proto file. Do not change without changing .proto
|
2021-05-18 08:31:40 -05:00
|
|
|
enum class ExportSplit
|
2019-09-06 03:40:57 -05:00
|
|
|
{
|
2017-06-14 08:30:50 -05:00
|
|
|
UNIFIED_FILE,
|
|
|
|
SPLIT_ON_WELL,
|
|
|
|
SPLIT_ON_WELL_AND_COMPLETION_TYPE,
|
|
|
|
};
|
2023-04-14 07:07:45 -05:00
|
|
|
using ExportSplitType = caf::AppEnum<ExportSplit>;
|
2017-06-14 08:30:50 -05:00
|
|
|
|
2019-05-24 01:53:29 -05:00
|
|
|
// Exported in .proto file. Do not change without changing .proto
|
2021-05-18 08:31:40 -05:00
|
|
|
enum class CompdatExport
|
2019-09-06 03:40:57 -05:00
|
|
|
{
|
2017-06-21 03:58:02 -05:00
|
|
|
TRANSMISSIBILITIES,
|
2018-09-11 02:17:20 -05:00
|
|
|
WPIMULT_AND_DEFAULT_CONNECTION_FACTORS,
|
2017-06-21 03:58:02 -05:00
|
|
|
};
|
2023-04-14 07:07:45 -05:00
|
|
|
using CompdatExportType = caf::AppEnum<CompdatExport>;
|
2017-06-21 03:58:02 -05:00
|
|
|
|
2019-05-24 01:53:29 -05:00
|
|
|
// Exported in .proto file. Do not change without changing .proto
|
2021-05-18 08:31:40 -05:00
|
|
|
enum class CombinationMode
|
2018-04-13 05:13:27 -05:00
|
|
|
{
|
|
|
|
INDIVIDUALLY,
|
2019-09-06 03:40:57 -05:00
|
|
|
COMBINED,
|
2018-04-13 05:13:27 -05:00
|
|
|
};
|
2023-04-14 07:07:45 -05:00
|
|
|
using CombinationModeType = caf::AppEnum<CombinationMode>;
|
2018-04-13 05:13:27 -05:00
|
|
|
|
2023-04-14 07:07:45 -05:00
|
|
|
using TransScalingWBHPSource = caf::AppEnum<RicExportFractureCompletionsImpl::PressureDepletionWBHPSource>;
|
2017-06-14 08:30:50 -05:00
|
|
|
|
2017-05-30 07:37:51 -05:00
|
|
|
RicExportCompletionDataSettingsUi();
|
2017-05-16 02:43:41 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<int> timeStep;
|
|
|
|
|
|
|
|
caf::PdmField<ExportSplitType> fileSplit;
|
|
|
|
caf::PdmField<CompdatExportType> compdatExport;
|
2018-04-13 05:13:27 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<bool> performTransScaling;
|
|
|
|
caf::PdmField<int> transScalingTimeStep;
|
|
|
|
caf::PdmField<TransScalingWBHPSource> transScalingWBHPSource;
|
|
|
|
caf::PdmField<double> transScalingWBHP;
|
2017-06-21 03:58:02 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<bool> includeMsw;
|
|
|
|
caf::PdmField<bool> useLateralNTG;
|
|
|
|
caf::PdmField<bool> includePerforations;
|
|
|
|
caf::PdmField<bool> includeFishbones;
|
|
|
|
caf::PdmField<bool> excludeMainBoreForFishbones;
|
2018-09-14 07:00:27 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<bool> includeFractures;
|
2017-06-12 05:03:42 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void enableIncludeMsw();
|
|
|
|
void showForSimWells();
|
|
|
|
void showForWellPath();
|
2018-04-13 05:13:27 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setCombinationMode( CombinationMode combinationMode );
|
2018-04-13 05:13:27 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void showFractureInUi( bool enable );
|
|
|
|
void showPerforationsInUi( bool enable );
|
|
|
|
void showFishbonesInUi( bool enable );
|
2018-04-09 04:23:14 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool reportCompletionsTypesIndividually() const;
|
2021-05-02 06:51:00 -05:00
|
|
|
|
|
|
|
void setExportDataSourceAsComment( bool enable );
|
2021-03-02 02:25:53 -06:00
|
|
|
bool exportDataSourceAsComment() const;
|
2021-05-02 06:51:00 -05:00
|
|
|
|
|
|
|
void setExportWelspec( bool enable );
|
2021-03-02 02:25:53 -06:00
|
|
|
bool exportWelspec() const;
|
2021-05-02 06:51:00 -05:00
|
|
|
|
|
|
|
void setExportCompletionWelspecAfterMainBore( bool enable );
|
2021-04-13 00:22:56 -05:00
|
|
|
bool exportCompletionWelspecAfterMainBore() const;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2021-05-02 06:51:00 -05:00
|
|
|
void setCustomFileName( const QString& fileName );
|
2021-04-30 06:51:15 -05:00
|
|
|
QString customFileName() const;
|
|
|
|
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2017-08-14 15:30:22 -05:00
|
|
|
|
2017-05-30 08:42:05 -05:00
|
|
|
protected:
|
2022-05-29 06:01:27 -05:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
|
2019-09-06 03:40:57 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
2017-06-12 05:03:42 -05:00
|
|
|
|
2018-10-29 05:44:14 -05:00
|
|
|
std::map<int, std::vector<std::pair<QString, QString>>> generateWellProductionStartStrings();
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2017-06-12 05:03:42 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<CombinationModeType> m_reportCompletionTypesSeparately;
|
2021-04-30 06:51:15 -05:00
|
|
|
|
|
|
|
caf::PdmField<bool> m_exportDataSourceAsComment;
|
|
|
|
caf::PdmField<bool> m_exportWelspec;
|
|
|
|
caf::PdmField<bool> m_completionWelspecAfterMainBore;
|
|
|
|
caf::PdmField<bool> m_useCustomFileName;
|
|
|
|
caf::PdmField<QString> m_customFileName;
|
2018-04-09 04:23:14 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool m_displayForSimWell;
|
|
|
|
bool m_fracturesEnabled;
|
|
|
|
bool m_perforationsEnabled;
|
|
|
|
bool m_fishbonesEnabled;
|
2017-05-16 02:43:41 -05:00
|
|
|
};
|