2017-05-19 08:44:32 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-05-19 08:44:32 -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-19 08:44:32 -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-19 08:44:32 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RimCheckableNamedObject.h"
|
2018-08-21 03:34:29 -05:00
|
|
|
#include "RimMswCompletionParameters.h"
|
2017-05-19 08:44:32 -05:00
|
|
|
|
2017-06-20 03:40:39 -05:00
|
|
|
#include "RiaEclipseUnitTools.h"
|
|
|
|
|
2017-05-19 08:44:32 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
|
|
|
#include "cafPdmChildField.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmFieldCvfColor.h"
|
2017-05-23 02:35:17 -05:00
|
|
|
|
|
|
|
#include "cvfColor3.h"
|
2017-05-19 08:44:32 -05:00
|
|
|
|
|
|
|
class RimFishbonesMultipleSubs;
|
|
|
|
class RimFishboneWellPathCollection;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-05-19 08:44:32 -05:00
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
class RimFishbonesCollection : public RimCheckableNamedObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RimFishbonesCollection();
|
|
|
|
|
2018-08-21 03:34:29 -05:00
|
|
|
RimFishboneWellPathCollection* wellPathCollection() const;
|
2019-09-06 03:40:57 -05:00
|
|
|
void appendFishbonesSubs( RimFishbonesMultipleSubs* subs );
|
2018-08-21 03:34:29 -05:00
|
|
|
const RimMswCompletionParameters* mswParameters() const;
|
2017-05-19 08:44:32 -05:00
|
|
|
|
2018-09-07 05:41:04 -05:00
|
|
|
std::vector<RimFishbonesMultipleSubs*> activeFishbonesSubs() const;
|
2018-09-07 06:32:53 -05:00
|
|
|
std::vector<RimFishbonesMultipleSubs*> allFishbonesSubs() const;
|
2018-09-07 05:41:04 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void recalculateStartMD();
|
|
|
|
double startMD() const;
|
2020-02-12 04:13:38 -06:00
|
|
|
double mainBoreSkinFactor() const { return m_skinFactor; }
|
2019-09-06 03:40:57 -05:00
|
|
|
double mainBoreDiameter( RiaEclipseUnitTools::UnitSystem unitSystem ) const;
|
|
|
|
void setUnitSystemSpecificDefaults();
|
2017-06-20 05:36:12 -05:00
|
|
|
|
2017-05-22 04:29:13 -05:00
|
|
|
protected:
|
2019-09-06 03:40:57 -05:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
|
|
|
const QVariant& oldValue,
|
|
|
|
const QVariant& newValue ) override;
|
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
void initAfterRead() override;
|
2017-05-22 04:29:13 -05:00
|
|
|
|
2017-05-19 08:44:32 -05:00
|
|
|
private:
|
2017-05-23 02:35:17 -05:00
|
|
|
cvf::Color3f nextFishbonesColor() const;
|
|
|
|
|
2017-06-02 07:58:33 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmChildArrayField<RimFishbonesMultipleSubs*> m_fishbonesSubs;
|
|
|
|
caf::PdmChildField<RimFishboneWellPathCollection*> m_wellPathCollection;
|
2017-06-02 07:58:33 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<double> m_startMD;
|
|
|
|
caf::PdmField<double> m_skinFactor;
|
|
|
|
caf::PdmField<double> m_mainBoreDiameter;
|
|
|
|
caf::PdmChildField<RimMswCompletionParameters*> m_mswParameters;
|
|
|
|
bool manuallyModifiedStartMD;
|
2017-06-15 05:08:05 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
caf::PdmField<double> m_linerDiameter_OBSOLETE;
|
|
|
|
caf::PdmField<double> m_roughnessFactor_OBSOLETE;
|
2017-06-28 13:51:16 -05:00
|
|
|
|
2018-08-21 03:34:29 -05:00
|
|
|
caf::PdmField<RimMswCompletionParameters::PressureDropEnum> m_pressureDrop_OBSOLETE;
|
|
|
|
caf::PdmField<RimMswCompletionParameters::LengthAndDepthEnum> m_lengthAndDepth_OBSOLETE;
|
2017-05-19 08:44:32 -05:00
|
|
|
};
|