mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 00:42:12 -05:00
#3091 Completion export. Add WELSPECS/WELSPECL to exported file
This commit is contained in:
1 parent
c4577084dc
commit
6b2359cb39
8 files changed
+444
-57
No files matched your search
@@ -28,6 +28,21 @@
|
||||
#include "cafPdmUiTreeOrdering.h"
|
||||
|
||||
|
||||
namespace caf {
|
||||
|
||||
template<>
|
||||
void RimWellPathCompletions::WellTypeEnum::setUp()
|
||||
{
|
||||
addItem(RimWellPathCompletions::OIL, "OIL", "Oil");
|
||||
addItem(RimWellPathCompletions::GAS, "GAS", "Gas");
|
||||
addItem(RimWellPathCompletions::WATER, "WATER", "Water");
|
||||
addItem(RimWellPathCompletions::LIQUID, "LIQUID", "Liquid");
|
||||
|
||||
setDefault(RimWellPathCompletions::OIL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimWellPathCompletions, "WellPathCompletions");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -50,6 +65,12 @@ RimWellPathCompletions::RimWellPathCompletions()
|
||||
m_fractureCollection.uiCapability()->setUiHidden(true);
|
||||
|
||||
CAF_PDM_InitField(&m_wellNameForExport, "WellNameForExport", QString(), "Well Name for Completion Export", "", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_wellGroupName, "WellGroupNameForExport", QString(), "Well Group Name for Completion Export", "", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_referenceDepth, "ReferenceDepthForExport", QString(), "Reference Depth for Completion Export", "", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_wellType, "WellTypeForExport", WellTypeEnum(), "Well Type for Completion Export", "", "", "");
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -88,6 +109,30 @@ QString RimWellPathCompletions::wellNameForExport() const
|
||||
return m_wellNameForExport();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimWellPathCompletions::wellGroupName() const
|
||||
{
|
||||
return m_wellGroupName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimWellPathCompletions::referenceDepth() const
|
||||
{
|
||||
return m_referenceDepth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimWellPathCompletions::wellTypeName() const
|
||||
{
|
||||
return WellTypeEnum(m_wellType).uiText();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -26,6 +26,7 @@ class RimFishbonesCollection;
|
||||
class RimPerforationCollection;
|
||||
class RimWellPathFractureCollection;
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
@@ -34,6 +35,9 @@ class RimWellPathCompletions : public caf::PdmObject
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
enum WellType {OIL, GAS, WATER, LIQUID};
|
||||
typedef caf::AppEnum<WellType> WellTypeEnum;
|
||||
|
||||
public:
|
||||
RimWellPathCompletions();
|
||||
|
||||
@@ -43,6 +47,9 @@ public:
|
||||
|
||||
void setWellNameForExport(const QString& name);
|
||||
QString wellNameForExport() const;
|
||||
QString wellGroupName() const;
|
||||
QString referenceDepth() const;
|
||||
QString wellTypeName() const;
|
||||
bool hasCompletions() const;
|
||||
|
||||
void setUnitSystemSpecificDefaults();
|
||||
@@ -56,4 +63,8 @@ private:
|
||||
caf::PdmChildField<RimWellPathFractureCollection*> m_fractureCollection;
|
||||
|
||||
caf::PdmField<QString> m_wellNameForExport;
|
||||
caf::PdmField<QString> m_wellGroupName;
|
||||
|
||||
caf::PdmField<QString> m_referenceDepth;
|
||||
caf::PdmField<WellTypeEnum> m_wellType;
|
||||
};
|
||||
Reference in new issue
Block a user