mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
68 lines
2.2 KiB
C++
68 lines
2.2 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2017 Statoil ASA
|
|
//
|
|
// 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.
|
|
//
|
|
// 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.
|
|
//
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
// for more details.
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
#include "RicfCommandObject.h"
|
|
|
|
#include "cafAppEnum.h"
|
|
#include "cafPdmField.h"
|
|
|
|
namespace MultipleFractures
|
|
{
|
|
enum class Action
|
|
{
|
|
NONE,
|
|
APPEND_FRACTURES,
|
|
REPLACE_FRACTURES
|
|
};
|
|
}
|
|
|
|
class RimEclipseCase;
|
|
class RimFractureTemplate;
|
|
class RimWellPath;
|
|
|
|
//==================================================================================================
|
|
//
|
|
//
|
|
//
|
|
//==================================================================================================
|
|
class RicfCreateMultipleFractures : public RicfCommandObject
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
RicfCreateMultipleFractures();
|
|
|
|
caf::PdmScriptResponse execute() override;
|
|
|
|
private:
|
|
bool validateArguments() const;
|
|
RimFractureTemplate* fractureTemplateFromId( int templateId ) const;
|
|
|
|
caf::PdmField<int> m_caseId;
|
|
caf::PdmField<std::vector<QString>> m_wellPathNames;
|
|
caf::PdmField<double> m_minDistFromWellTd;
|
|
caf::PdmField<int> m_maxFracturesPerWell;
|
|
caf::PdmField<int> m_templateId;
|
|
caf::PdmField<int> m_topLayer;
|
|
caf::PdmField<int> m_baseLayer;
|
|
caf::PdmField<double> m_spacing;
|
|
caf::PdmField<caf::AppEnum<MultipleFractures::Action>> m_action;
|
|
};
|