2025-11-17 12:56:41 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2025- Equinor 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
|
|
|
|
|
|
2025-11-28 16:43:51 +01:00
|
|
|
#include "RiaModelExportDefines.h"
|
2026-02-02 14:18:39 +01:00
|
|
|
#include "RigModelPaddingSettings.h"
|
2026-03-27 19:05:09 +01:00
|
|
|
#include "RigRefinement.h"
|
2025-11-28 16:43:51 +01:00
|
|
|
|
|
|
|
|
#include "cafAppEnum.h"
|
2025-11-17 12:56:41 +01:00
|
|
|
#include "cafVecIjk.h"
|
|
|
|
|
|
|
|
|
|
#include <QString>
|
2026-03-09 17:11:51 +01:00
|
|
|
|
|
|
|
|
#include <expected>
|
2026-03-27 19:05:09 +01:00
|
|
|
#include <memory>
|
2026-01-09 17:58:52 +01:00
|
|
|
#include <string>
|
2025-11-17 12:56:41 +01:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
namespace Opm
|
|
|
|
|
{
|
|
|
|
|
class DeckRecord;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
/// Settings for exporting simulation input files (sector models)
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RigSimulationInputSettings
|
|
|
|
|
{
|
|
|
|
|
public:
|
2025-11-28 16:43:51 +01:00
|
|
|
using BoundaryConditionEnum = caf::AppEnum<RiaModelExportDefines::BoundaryCondition>;
|
2025-11-19 11:08:13 +01:00
|
|
|
|
2025-11-17 12:56:41 +01:00
|
|
|
RigSimulationInputSettings();
|
|
|
|
|
|
|
|
|
|
// Sector bounds (0-based grid coordinates)
|
|
|
|
|
caf::VecIjk0 min() const;
|
|
|
|
|
caf::VecIjk0 max() const;
|
|
|
|
|
void setMin( const caf::VecIjk0& min );
|
|
|
|
|
void setMax( const caf::VecIjk0& max );
|
|
|
|
|
|
2026-03-09 17:11:51 +01:00
|
|
|
std::expected<void, QString> validateBox() const;
|
|
|
|
|
|
2026-03-27 10:58:18 +01:00
|
|
|
// Unified refinement interface
|
2026-03-27 19:05:09 +01:00
|
|
|
const RigRefinement& refinement() const;
|
|
|
|
|
void setRefinement( std::unique_ptr<RigRefinement> refinement );
|
|
|
|
|
bool hasRefinement() const;
|
2026-03-20 14:26:19 +01:00
|
|
|
|
2026-01-09 17:58:52 +01:00
|
|
|
// Keyword handling
|
|
|
|
|
const std::vector<std::string>& keywordsToRemove() const;
|
|
|
|
|
void setKeywordsToRemove( const std::vector<std::string>& keywords );
|
|
|
|
|
|
2025-11-17 12:56:41 +01:00
|
|
|
// Boundary conditions
|
|
|
|
|
std::vector<Opm::DeckRecord> bcpropKeywords() const;
|
|
|
|
|
void setBcpropKeywords( const std::vector<Opm::DeckRecord>& keywords );
|
|
|
|
|
|
2025-11-28 16:43:51 +01:00
|
|
|
RiaModelExportDefines::BoundaryCondition boundaryCondition() const;
|
|
|
|
|
void setBoundaryCondition( RiaModelExportDefines::BoundaryCondition value );
|
2025-11-17 12:56:41 +01:00
|
|
|
|
2025-11-19 15:40:03 +01:00
|
|
|
double porvMultiplier() const;
|
|
|
|
|
void setPorvMultiplier( double value );
|
|
|
|
|
|
2025-11-17 12:56:41 +01:00
|
|
|
// File paths
|
|
|
|
|
QString inputDeckFileName() const;
|
|
|
|
|
void setInputDeckFileName( const QString& fileName );
|
|
|
|
|
|
|
|
|
|
QString outputDeckFileName() const;
|
|
|
|
|
void setOutputDeckFileName( const QString& fileName );
|
|
|
|
|
|
2026-02-02 14:18:39 +01:00
|
|
|
// Model padding
|
|
|
|
|
const RigModelPaddingSettings& paddingSettings() const;
|
|
|
|
|
void setPaddingSettings( const RigModelPaddingSettings& settings );
|
|
|
|
|
|
2025-11-17 12:56:41 +01:00
|
|
|
private:
|
2026-03-27 19:05:09 +01:00
|
|
|
caf::VecIjk0 m_min;
|
|
|
|
|
caf::VecIjk0 m_max;
|
|
|
|
|
std::unique_ptr<RigRefinement> m_refinement;
|
|
|
|
|
std::vector<std::string> m_keywordsToRemove;
|
|
|
|
|
std::vector<Opm::DeckRecord> m_bcpropKeywords;
|
|
|
|
|
BoundaryConditionEnum m_boundaryCondition;
|
|
|
|
|
double m_porvMultiplier;
|
|
|
|
|
QString m_inputDeckFileName;
|
|
|
|
|
QString m_outputDeckFileName;
|
|
|
|
|
RigModelPaddingSettings m_paddingSettings;
|
2025-11-17 12:56:41 +01:00
|
|
|
};
|