ResInsight/ApplicationCode/ProjectDataModel/Completions/RimSimWellFracture.h

83 lines
2.9 KiB
C
Raw Normal View History

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