mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1464 Move well segment export to own feature
This commit is contained in:
@@ -9,6 +9,7 @@ ${CEE_CURRENT_LIST_DIR}RimEclipseCaseCollection.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCaseCollection.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCaseAndFileExportSettings.h
|
||||
${CEE_CURRENT_LIST_DIR}RimExportCompletionDataSettings.h
|
||||
${CEE_CURRENT_LIST_DIR}RimExportWellSegmentsSettings.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCellFilter.h
|
||||
${CEE_CURRENT_LIST_DIR}RimEclipsePropertyFilter.h
|
||||
${CEE_CURRENT_LIST_DIR}RimPropertyFilterCollection.h
|
||||
@@ -104,6 +105,7 @@ ${CEE_CURRENT_LIST_DIR}RimEclipseCaseCollection.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCaseCollection.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCaseAndFileExportSettings.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimExportCompletionDataSettings.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimExportWellSegmentsSettings.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCellFilter.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimEclipsePropertyFilter.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimPropertyFilterCollection.cpp
|
||||
|
||||
@@ -399,6 +399,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
|
||||
commandIds << "RicNewPerforationIntervalFeature";
|
||||
commandIds << "RicEditPerforationCollectionFeature";
|
||||
commandIds << "RicExportFishbonesLateralsFeature";
|
||||
commandIds << "RicExportFishbonesWellSegmentsFeature";
|
||||
commandIds << "RicWellPathExportCompletionDataFeature";
|
||||
commandIds << "RicWellPathImportCompletionsFileFeature";
|
||||
commandIds << "RicFlyToObjectFeature";
|
||||
|
||||
@@ -18,25 +18,6 @@
|
||||
|
||||
#include "RimExportCompletionDataSettings.h"
|
||||
|
||||
namespace caf {
|
||||
template<>
|
||||
void RimExportCompletionDataSettings::PressureDropEnum::setUp()
|
||||
{
|
||||
addItem(RimExportCompletionDataSettings::HYDROSTATIC, "H--", "Hydrostatic");
|
||||
addItem(RimExportCompletionDataSettings::HYDROSTATIC_FRICTION, "HF-", "Hydrostatic + Friction");
|
||||
addItem(RimExportCompletionDataSettings::HYDROSTATIC_FRICTION_ACCELERATION, "HFA", "Hydrostatic + Friction + Acceleration");
|
||||
setDefault(RimExportCompletionDataSettings::HYDROSTATIC);
|
||||
}
|
||||
|
||||
template<>
|
||||
void RimExportCompletionDataSettings::LengthAndDepthEnum::setUp()
|
||||
{
|
||||
addItem(RimExportCompletionDataSettings::INC, "INC", "Incremental");
|
||||
addItem(RimExportCompletionDataSettings::ABS, "ABS", "Absolute");
|
||||
setDefault(RimExportCompletionDataSettings::INC);
|
||||
}
|
||||
}
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimExportCompletionDataSettings, "RimExportCompletionDataSettings");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -51,6 +32,4 @@ RimExportCompletionDataSettings::RimExportCompletionDataSettings()
|
||||
|
||||
CAF_PDM_InitField(&includeWpimult, "IncludeWPIMULT", true, "Include WPIMLUT", "", "", "");
|
||||
CAF_PDM_InitField(&removeLateralsInMainBoreCells, "RemoveLateralsInMainBoreCells", false, "Remove Laterals in Main Bore Cells", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&pressureDrop, "PressureDrop", "Pressure Drop", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&lengthAndDepth, "LengthAndDepth", "Length and Depth", "", "", "");
|
||||
}
|
||||
|
||||
@@ -30,22 +30,6 @@ class RimExportCompletionDataSettings : public RimCaseAndFileExportSettings
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
public:
|
||||
|
||||
enum PressureDropType {
|
||||
HYDROSTATIC,
|
||||
HYDROSTATIC_FRICTION,
|
||||
HYDROSTATIC_FRICTION_ACCELERATION
|
||||
};
|
||||
|
||||
typedef caf::AppEnum<RimExportCompletionDataSettings::PressureDropType> PressureDropEnum;
|
||||
|
||||
enum LengthAndDepthType {
|
||||
ABS,
|
||||
INC
|
||||
};
|
||||
|
||||
typedef caf::AppEnum<RimExportCompletionDataSettings::LengthAndDepthType> LengthAndDepthEnum;
|
||||
|
||||
RimExportCompletionDataSettings();
|
||||
|
||||
|
||||
@@ -54,6 +38,4 @@ public:
|
||||
|
||||
caf::PdmField<bool> includeWpimult;
|
||||
caf::PdmField<bool> removeLateralsInMainBoreCells;
|
||||
caf::PdmField<PressureDropEnum> pressureDrop;
|
||||
caf::PdmField<LengthAndDepthEnum> lengthAndDepth;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2017- Statoil ASA
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RimExportWellSegmentsSettings.h"
|
||||
|
||||
namespace caf {
|
||||
template<>
|
||||
void RimExportWellSegmentsSettings::PressureDropEnum::setUp()
|
||||
{
|
||||
addItem(RimExportWellSegmentsSettings::HYDROSTATIC, "H--", "Hydrostatic");
|
||||
addItem(RimExportWellSegmentsSettings::HYDROSTATIC_FRICTION, "HF-", "Hydrostatic + Friction");
|
||||
addItem(RimExportWellSegmentsSettings::HYDROSTATIC_FRICTION_ACCELERATION, "HFA", "Hydrostatic + Friction + Acceleration");
|
||||
setDefault(RimExportWellSegmentsSettings::HYDROSTATIC);
|
||||
}
|
||||
|
||||
template<>
|
||||
void RimExportWellSegmentsSettings::LengthAndDepthEnum::setUp()
|
||||
{
|
||||
addItem(RimExportWellSegmentsSettings::INC, "INC", "Incremental");
|
||||
addItem(RimExportWellSegmentsSettings::ABS, "ABS", "Absolute");
|
||||
setDefault(RimExportWellSegmentsSettings::INC);
|
||||
}
|
||||
}
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimExportWellSegmentsSettings, "RimExportWellSegmentsSettings");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimExportWellSegmentsSettings::RimExportWellSegmentsSettings()
|
||||
{
|
||||
CAF_PDM_InitObject("RimExportWellSegmentsSettings", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&pressureDrop, "PressureDrop", "Pressure Drop", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&lengthAndDepth, "LengthAndDepth", "Length and Depth", "", "", "");
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2017- Statoil ASA
|
||||
//
|
||||
// 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
|
||||
|
||||
#include "RimCaseAndFileExportSettings.h"
|
||||
|
||||
#include "cafPdmField.h"
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimExportWellSegmentsSettings : public RimCaseAndFileExportSettings
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
public:
|
||||
|
||||
enum PressureDropType {
|
||||
HYDROSTATIC,
|
||||
HYDROSTATIC_FRICTION,
|
||||
HYDROSTATIC_FRICTION_ACCELERATION
|
||||
};
|
||||
|
||||
typedef caf::AppEnum<RimExportWellSegmentsSettings::PressureDropType> PressureDropEnum;
|
||||
|
||||
enum LengthAndDepthType {
|
||||
ABS,
|
||||
INC
|
||||
};
|
||||
|
||||
typedef caf::AppEnum<RimExportWellSegmentsSettings::LengthAndDepthType> LengthAndDepthEnum;
|
||||
|
||||
RimExportWellSegmentsSettings();
|
||||
|
||||
caf::PdmField<PressureDropEnum> pressureDrop;
|
||||
caf::PdmField<LengthAndDepthEnum> lengthAndDepth;
|
||||
};
|
||||
Reference in New Issue
Block a user