2017-01-02 04:10:25 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- Statoil ASA
|
2018-10-19 08:43:29 -05:00
|
|
|
//
|
2017-01-02 04:10:25 -06: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.
|
2018-10-19 08:43:29 -05:00
|
|
|
//
|
2017-01-02 04:10:25 -06: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.
|
2018-10-19 08:43:29 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-01-02 04:10:25 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-01-04 04:39:49 -06:00
|
|
|
#include "RimFracture.h"
|
|
|
|
|
2017-01-30 01:36:04 -06:00
|
|
|
#include "RigSimulationWellCoordsAndMD.h"
|
2017-02-06 04:44:24 -06:00
|
|
|
#include "RimEllipseFractureTemplate.h"
|
2017-01-30 01:36:04 -06:00
|
|
|
|
2017-01-02 04:10:25 -06:00
|
|
|
//==================================================================================================
|
2018-10-19 08:43:29 -05:00
|
|
|
///
|
|
|
|
///
|
2017-01-02 04:10:25 -06:00
|
|
|
//==================================================================================================
|
2017-01-02 07:13:34 -06:00
|
|
|
class RimSimWellFracture : public RimFracture
|
2017-01-02 04:10:25 -06:00
|
|
|
{
|
2018-10-19 08:43:29 -05:00
|
|
|
CAF_PDM_HEADER_INIT;
|
2017-01-02 04:10:25 -06:00
|
|
|
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
RimSimWellFracture( void );
|
|
|
|
~RimSimWellFracture( void ) override;
|
2017-01-02 04:10:25 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setClosestWellCoord( cvf::Vec3d& position, size_t branchIndex );
|
2017-01-10 08:29:38 -06:00
|
|
|
|
2018-10-19 08:43:29 -05:00
|
|
|
void recomputeWellCenterlineCoordinates();
|
|
|
|
void updateFracturePositionFromLocation();
|
|
|
|
void updateAzimuthBasedOnWellAzimuthAngle() override;
|
2017-01-30 01:36:04 -06:00
|
|
|
|
2018-10-19 08:43:29 -05:00
|
|
|
double wellAzimuthAtFracturePosition() const override;
|
2020-02-12 04:13:38 -06:00
|
|
|
double fractureMD() const override { return m_location; }
|
2017-01-30 07:28:37 -06:00
|
|
|
|
2020-02-12 04:13:38 -06:00
|
|
|
int branchIndex() const { return m_branchIndex(); }
|
2017-08-02 04:13:27 -05:00
|
|
|
|
2018-10-19 08:43:29 -05:00
|
|
|
void loadDataAndUpdate() override;
|
2017-01-30 01:36:04 -06:00
|
|
|
|
2018-10-19 08:43:29 -05:00
|
|
|
std::vector<cvf::Vec3d> perforationLengthCenterLineCoords() const override;
|
2018-01-19 07:05:57 -06:00
|
|
|
|
2019-04-25 00:25:52 -05:00
|
|
|
bool isEnabled() const override; // RimWellPathCompletionsInterface override
|
|
|
|
|
2021-06-28 06:10:57 -05:00
|
|
|
void applyOffset( double offsetMD ) override;
|
|
|
|
|
2017-01-30 01:36:04 -06:00
|
|
|
protected:
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2019-09-06 03:40:57 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
void defineEditorAttribute( const caf::PdmFieldHandle* field,
|
|
|
|
QString uiConfigName,
|
|
|
|
caf::PdmUiEditorAttribute* attribute ) override;
|
2022-05-29 06:01:27 -05:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
|
2017-06-16 07:13:42 -05:00
|
|
|
|
2017-01-04 02:08:10 -06:00
|
|
|
private:
|
2018-10-19 08:43:29 -05:00
|
|
|
RigMainGrid* ownerCaseMainGrid() const;
|
|
|
|
void computeSimWellBranchesIfRequired();
|
|
|
|
void computeSimWellBranchCenterLines();
|
|
|
|
QString createOneBasedIJKText() const;
|
2017-01-30 01:36:04 -06:00
|
|
|
|
|
|
|
private:
|
2018-10-19 08:43:29 -05:00
|
|
|
caf::PdmField<float> m_location;
|
|
|
|
caf::PdmField<int> m_branchIndex;
|
|
|
|
std::vector<RigSimulationWellCoordsAndMD> m_branchCenterLines;
|
2017-06-16 07:13:42 -05:00
|
|
|
|
2018-10-19 08:43:29 -05:00
|
|
|
caf::PdmProxyValueField<QString> m_displayIJK;
|
2017-01-02 04:10:25 -06:00
|
|
|
};
|