2017-05-19 14:04:01 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2017-05-19 14:04:01 +02: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 10:40:57 +02:00
|
|
|
//
|
2017-05-19 14:04:01 +02: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 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-05-19 14:04:01 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2021-02-26 14:27:59 +01:00
|
|
|
#include "RimWellPathCompletionSettings.h"
|
|
|
|
|
|
2017-05-19 15:44:32 +02:00
|
|
|
#include "cafPdmChildField.h"
|
2019-09-06 10:40:57 +02:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
|
#include "cafPdmObject.h"
|
2017-05-19 14:04:01 +02:00
|
|
|
|
2021-02-26 14:27:59 +01:00
|
|
|
#include "gsl/gsl"
|
|
|
|
|
|
2017-05-19 15:44:32 +02:00
|
|
|
class RimFishbonesCollection;
|
|
|
|
|
class RimPerforationCollection;
|
2021-02-26 14:27:59 +01:00
|
|
|
class RimStimPlanModelCollection;
|
2018-10-09 13:42:03 +02:00
|
|
|
class RimWellPathComponentInterface;
|
2021-02-26 14:27:59 +01:00
|
|
|
class RimWellPathFracture;
|
|
|
|
|
class RimWellPathFractureCollection;
|
2018-10-10 11:10:56 +02:00
|
|
|
class RimWellPathValve;
|
2018-08-29 13:36:33 +02:00
|
|
|
|
2017-05-19 14:04:01 +02:00
|
|
|
//==================================================================================================
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
|
|
|
|
///
|
2017-05-19 14:04:01 +02:00
|
|
|
//==================================================================================================
|
|
|
|
|
class RimWellPathCompletions : public caf::PdmObject
|
|
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
RimWellPathCompletions();
|
2017-05-19 15:44:32 +02:00
|
|
|
|
2017-05-26 13:01:28 +02:00
|
|
|
RimFishbonesCollection* fishbonesCollection() const;
|
|
|
|
|
RimPerforationCollection* perforationCollection() const;
|
|
|
|
|
RimWellPathFractureCollection* fractureCollection() const;
|
2020-11-04 13:46:17 +01:00
|
|
|
RimStimPlanModelCollection* stimPlanModelCollection() const;
|
2017-05-19 15:44:32 +02:00
|
|
|
|
2021-06-28 13:10:57 +02:00
|
|
|
std::vector<RimWellPathComponentInterface*> allCompletionsNoConst() const;
|
2018-10-09 13:42:03 +02:00
|
|
|
std::vector<const RimWellPathComponentInterface*> allCompletions() const;
|
2021-02-26 14:27:59 +01:00
|
|
|
bool hasCompletions() const;
|
|
|
|
|
void setUnitSystemSpecificDefaults();
|
2018-10-09 11:06:10 +02:00
|
|
|
|
2021-02-26 14:27:59 +01:00
|
|
|
std::vector<RimWellPathValve*> valves() const;
|
|
|
|
|
std::vector<RimWellPathFracture*> allFractures() const;
|
|
|
|
|
std::vector<RimWellPathFracture*> activeFractures() const;
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2017-06-16 15:36:59 +02:00
|
|
|
protected:
|
2019-09-06 10:40:57 +02:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
|
void defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName ) override;
|
2021-02-26 14:27:59 +01:00
|
|
|
void initAfterRead() override;
|
2018-08-31 16:08:03 +02:00
|
|
|
|
|
|
|
|
private:
|
2021-02-26 14:27:59 +01:00
|
|
|
void applyToSettings( gsl::not_null<RimWellPathCompletionSettings*> settings );
|
2017-06-14 13:13:48 +02:00
|
|
|
|
2017-05-19 15:44:32 +02:00
|
|
|
private:
|
2019-09-06 10:40:57 +02:00
|
|
|
caf::PdmChildField<RimFishbonesCollection*> m_fishbonesCollection;
|
|
|
|
|
caf::PdmChildField<RimPerforationCollection*> m_perforationCollection;
|
|
|
|
|
caf::PdmChildField<RimWellPathFractureCollection*> m_fractureCollection;
|
2020-11-04 13:46:17 +01:00
|
|
|
caf::PdmChildField<RimStimPlanModelCollection*> m_stimPlanModelCollection;
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2021-02-26 14:27:59 +01:00
|
|
|
private:
|
|
|
|
|
/////////////////////
|
|
|
|
|
// OBSOLETE FIELDS //
|
|
|
|
|
/////////////////////
|
|
|
|
|
caf::PdmField<QString> m_wellNameForExport_OBSOLETE;
|
|
|
|
|
caf::PdmField<QString> m_wellGroupName_OBSOLETE;
|
|
|
|
|
|
|
|
|
|
caf::PdmField<QString> m_referenceDepth_OBSOLETE;
|
|
|
|
|
caf::PdmField<RimWellPathCompletionSettings::WellTypeEnum> m_preferredFluidPhase_OBSOLETE;
|
|
|
|
|
caf::PdmField<QString> m_drainageRadiusForPI_OBSOLETE;
|
|
|
|
|
caf::PdmField<RimWellPathCompletionSettings::GasInflowEnum> m_gasInflowEquation_OBSOLETE;
|
|
|
|
|
caf::PdmField<RimWellPathCompletionSettings::AutomaticWellShutInEnum> m_automaticWellShutIn_OBSOLETE;
|
|
|
|
|
caf::PdmField<bool> m_allowWellCrossFlow_OBSOLETE;
|
|
|
|
|
caf::PdmField<int> m_wellBoreFluidPVTTable_OBSOLETE;
|
|
|
|
|
caf::PdmField<RimWellPathCompletionSettings::HydrostaticDensityEnum> m_hydrostaticDensity_OBSOLETE;
|
|
|
|
|
caf::PdmField<int> m_fluidInPlaceRegion_OBSOLETE;
|
2017-05-19 14:04:01 +02:00
|
|
|
};
|