change to avoid zero-size windows in Actionx changes to improve Restart output content change to correct IUDQ for DEFINE corrections to IACN and SACN initial changes to add item to ZWEL further changes to add Action to well further changes to allow for action name in ZWEL more changes further changes to output action name to ZWEL changes to test/debug Restart write turn on writing of ZWEL again First running version of udq-actionx-rst use Action::Result direkte first working! version some corrections changes to allow for output of SACN [4.6.8] added debug print changes to improve IACN and IACT further corrections to Actionx IACN pluss error messages changes to adapt to well2 converted to well class further changes to enable restart with group control changes to adapt to newly merged code in master changes to include Intehead [51] - group control test changes to iGrp[nwgmax +7] initial changes for GUIDERATE changes to add guiderate parameters to the restart file add comment correction to guiderate - test if exist correction to DoubHead - test if GR exist correction to ISEG[8] correction for eclipse version Restart-file Cosmetic change corrections to igrp correction to segment type in iseg
111 lines
3.2 KiB
C++
111 lines
3.2 KiB
C++
/*
|
|
Copyright (c) 2018 Statoil ASA
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
OPM 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.
|
|
|
|
OPM 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 for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef OPM_AGGREGATE_WELL_DATA_HPP
|
|
#define OPM_AGGREGATE_WELL_DATA_HPP
|
|
|
|
#include <opm/output/eclipse/WindowedArray.hpp>
|
|
|
|
#include <opm/io/eclipse/PaddedOutputString.hpp>
|
|
#include <opm/parser/eclipse/EclipseState/Schedule/Action/ActionResult.hpp>
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Opm {
|
|
class Schedule;
|
|
class SummaryState;
|
|
class UnitSystem;
|
|
} // Opm
|
|
|
|
namespace Opm { namespace data {
|
|
class WellRates;
|
|
}} // Opm::data
|
|
|
|
namespace Opm { namespace RestartIO { namespace Helpers {
|
|
|
|
struct ActionResStatus {
|
|
std::vector<Opm::Action::Result> result;
|
|
std::vector<std::string> name;
|
|
};
|
|
|
|
class AggregateWellData
|
|
{
|
|
public:
|
|
explicit AggregateWellData(const std::vector<int>& inteHead);
|
|
|
|
void captureDeclaredWellData(const Schedule& sched,
|
|
const UnitSystem& units,
|
|
const std::size_t sim_step,
|
|
const ::Opm::SummaryState& smry,
|
|
const std::vector<int>& inteHead);
|
|
|
|
void captureDynamicWellData(const Opm::Schedule& sched,
|
|
const std::size_t sim_step,
|
|
const Opm::data::WellRates& xw,
|
|
const Opm::SummaryState& smry);
|
|
|
|
/// Retrieve Integer Well Data Array.
|
|
const std::vector<int>& getIWell() const
|
|
{
|
|
return this->iWell_.data();
|
|
}
|
|
|
|
/// Retrieve Floating-Point (Real) Well Data Array.
|
|
const std::vector<float>& getSWell() const
|
|
{
|
|
return this->sWell_.data();
|
|
}
|
|
|
|
/// Retrieve Floating-Point (Double Precision) Well Data Array.
|
|
const std::vector<double>& getXWell() const
|
|
{
|
|
return this->xWell_.data();
|
|
}
|
|
|
|
/// Retrieve Character Well Data Array.
|
|
const std::vector<EclIO::PaddedOutputString<8>>& getZWell() const
|
|
{
|
|
return this->zWell_.data();
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
/// Aggregate 'IWEL' array (Integer) for all wells.
|
|
WindowedArray<int> iWell_;
|
|
|
|
/// Aggregate 'SWEL' array (Real) for all wells.
|
|
WindowedArray<float> sWell_;
|
|
|
|
/// Aggregate 'XWEL' array (Double Precision) for all wells.
|
|
WindowedArray<double> xWell_;
|
|
|
|
/// Aggregate 'ZWEL' array (Character) for all wells.
|
|
WindowedArray<EclIO::PaddedOutputString<8>> zWell_;
|
|
|
|
/// Maximum number of groups in model.
|
|
int nWGMax_;
|
|
};
|
|
|
|
}}} // Opm::RestartIO::Helpers
|
|
|
|
#endif // OPM_AGGREGATE_WELL_DATA_HPP
|