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 <vector>
namespace Opm {
class Schedule;
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 captureDynamicWellData(const Opm::Schedule& sched,
const TracerConfig& tracer,
const std::size_t sim_step,
const Opm::data::Wells& xw,
const Opm::SummaryState& smry);
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();
}
private:
WindowedArray<int> iWell_;
WindowedArray<float> sWell_;
WindowedArray<double> xWell_;
WindowedArray<EclIO::PaddedOutputString<8>> zWell_;
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
Definition State.hpp:40
Opm::RestartIO::Helpers::AggregateWellData
Definition AggregateWellData.hpp:48
Opm::RestartIO::Helpers::AggregateWellData::getIWell
const std::vector< int > & getIWell() const
Retrieve Integer Well Data Array.
Definition AggregateWellData.hpp:67
Opm::RestartIO::Helpers::AggregateWellData::getXWell
const std::vector< double > & getXWell() const
Retrieve Floating-Point (Double Precision) Well Data Array.
Definition AggregateWellData.hpp:79
Opm::RestartIO::Helpers::AggregateWellData::getSWell
const std::vector< float > & getSWell() const
Retrieve Floating-Point (Real) Well Data Array.
Definition AggregateWellData.hpp:73
Opm::RestartIO::Helpers::AggregateWellData::getZWell
const std::vector< EclIO::PaddedOutputString< 8 > > & getZWell() const
Retrieve Character Well Data Array.
Definition AggregateWellData.hpp:85
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::RestartIO::Helpers::WindowedArray::data
const std::vector< T > & data() const
Get read-only access to full, linearised data items for all windows.
Definition WindowedArray.hpp:131
Opm::Schedule
Definition Schedule.hpp:89
Opm::SummaryState
Definition SummaryState.hpp:72
Opm::TracerConfig
Definition TracerConfig.hpp:33
Opm::WellTestState
Definition WellTestState.hpp:65
Opm::data::Wells
Definition Wells.hpp:922
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30