mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
RimEclipseCase_createMultipleFractures takes WellPath objects and a FractureTemplate object instead of names and ids. The MultipleFractures::Action enum is moved from the Ricf header to RicCreateMultipleFracturesFeature.h so the object method does not depend on CommandFileInterface, and is registered as the Python StrEnum MultipleFracturesAction. Add RicfForwarding::findFractureTemplate(). RicfCreateMultipleFractures resolves names/ids and forwards to the object method. The hand-written Case.create_multiple_fractures(template_id=..., well_path_names=...) Python wrapper is removed: the generated Reservoir method has the same name and shadows it. The test is updated to the object based signature.
57 lines
2.0 KiB
C++
57 lines
2.0 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 "FractureCommands/RicCreateMultipleFracturesFeature.h"
|
|
#include "cafAppEnum.h"
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
class RimEclipseCase;
|
|
class RimFractureTemplate;
|
|
class RimWellPath;
|
|
|
|
//==================================================================================================
|
|
//
|
|
//
|
|
//
|
|
//==================================================================================================
|
|
class RicfCreateMultipleFractures : public RicfCommandObject
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
RicfCreateMultipleFractures();
|
|
|
|
caf::PdmScriptResponse execute() override;
|
|
|
|
private:
|
|
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;
|
|
};
|