Loading...
Searching...
No Matches
AggregateWellData.hpp
/*
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 <cstddef>
#include <string>
#include <vector>
namespace Opm {
class Schedule;
class EclipseGrid;
class SummaryState;
class UnitSystem;
class WellTestState;
class TracerConfig;
namespace Action {
class State;
}
} // Opm
namespace Opm { namespace data {
class Wells;
}} // Opm::data
namespace Opm { namespace RestartIO { namespace Helpers {
class AggregateWellData
{
public:
explicit AggregateWellData(const std::vector<int>& inteHead);
void captureDeclaredWellData(const Schedule& sched,
const TracerConfig& tracer,
const std::size_t sim_step,
const Opm::Action::State& action_state,
const Opm::WellTestState& wtest_state,
const Opm::SummaryState& smry,
const std::vector<int>& inteHead);
void captureDeclaredWellData(const Schedule& sched,
const EclipseGrid& grid,
const TracerConfig& tracer,
const std::size_t sim_step,
const Opm::Action::State& action_state,
const Opm::WellTestState& wtest_state,
const Opm::SummaryState& smry,
const std::vector<int>& inteHead);
void captureDeclaredWellDataLGR(const Schedule& sched,
const EclipseGrid& grid,
const TracerConfig& tracer,
const std::size_t sim_step,
const Opm::Action::State& action_state,
const Opm::WellTestState& wtest_state,
const Opm::SummaryState& smry,
const std::vector<int>& inteHead,
const std::string& lgr_tag);
void captureDynamicWellData(const Opm::Schedule& sched,
const TracerConfig& tracer,
const std::size_t sim_step,
const Opm::data::Wells& xw,
const Opm::SummaryState& smry);
void captureDynamicWellDataLGR(const Opm::Schedule& sched,
const TracerConfig& tracer,
const std::size_t sim_step,
const Opm::data::Wells& xw,
const Opm::SummaryState& smry,
const std::string& lgr_tag);
const std::vector<int>& getIWell() const
{
return this->iWell_.data();
}
const std::vector<float>& getSWell() const
{
return this->sWell_.data();
}
const std::vector<double>& getXWell() const
{
return this->xWell_.data();
}
const std::vector<EclIO::PaddedOutputString<8>>& getZWell() const
{
return this->zWell_.data();
}
const std::vector<int>& getLGWell() const
{
return this->lgWell_.data();
}
private:
WindowedArray<int> iWell_;
WindowedArray<float> sWell_;
WindowedArray<double> xWell_;
WindowedArray<EclIO::PaddedOutputString<8>> zWell_;
WindowedArray<int> lgWell_;
int nWGMax_;
};
}}} // Opm::RestartIO::Helpers
#endif // OPM_AGGREGATE_WELL_DATA_HPP
WindowedArray.hpp
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Opm::Action::State
Management information about the current run's ACTION system, especially concerning the number of tim...
Definition State.hpp:51
Opm::EclipseGrid
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition EclipseGrid.hpp:61
Opm::RestartIO::Helpers::AggregateWellData::getIWell
const std::vector< int > & getIWell() const
Retrieve Integer Well Data Array.
Definition AggregateWellData.hpp:96
Opm::RestartIO::Helpers::AggregateWellData::getXWell
const std::vector< double > & getXWell() const
Retrieve Floating-Point (Double Precision) Well Data Array.
Definition AggregateWellData.hpp:108
Opm::RestartIO::Helpers::AggregateWellData::getSWell
const std::vector< float > & getSWell() const
Retrieve Floating-Point (Real) Well Data Array.
Definition AggregateWellData.hpp:102
Opm::RestartIO::Helpers::AggregateWellData::getLGWell
const std::vector< int > & getLGWell() const
Retrieve Interger LGWell Data Array.
Definition AggregateWellData.hpp:120
Opm::RestartIO::Helpers::AggregateWellData::getZWell
const std::vector< EclIO::PaddedOutputString< 8 > > & getZWell() const
Retrieve Character Well Data Array.
Definition AggregateWellData.hpp:114
Opm::RestartIO::Helpers::WindowedArray
Provide read-only and read/write access to constantly sized portions/windows of a linearised buffer w...
Definition WindowedArray.hpp:50
Opm::Schedule
Definition Schedule.hpp:101
Opm::SummaryState
Definition SummaryState.hpp:72
Opm::TracerConfig
Definition TracerConfig.hpp:33
Opm::UnitSystem
Definition UnitSystem.hpp:34
Opm::WellTestState
Definition WellTestState.hpp:65
Opm::data::Wells
Definition Wells.hpp:1199
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30