Loading...
Searching...
No Matches
AggregateMSWData.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_MSW_DATA_HPP
#define OPM_AGGREGATE_MSW_DATA_HPP
#include <opm/output/data/Wells.hpp>
#include <opm/output/eclipse/WindowedArray.hpp>
#include <vector>
namespace Opm {
class Phases;
class Schedule;
class EclipseGrid;
class UnitSystem;
class SummaryState;
} // Opm
namespace Opm { namespace RestartIO { namespace Helpers {
class AggregateMSWData
{
public:
explicit AggregateMSWData(const std::vector<int>& inteHead);
void captureDeclaredMSWData(const Opm::Schedule& sched,
const std::size_t rptStep,
const Opm::UnitSystem& units,
const std::vector<int>& inteHead,
const Opm::EclipseGrid& grid,
const Opm::SummaryState& smry,
const Opm::data::Wells& wr);
const std::vector<int>& getISeg() const
{
return this->iSeg_.data();
}
const std::vector<double>& getRSeg() const
{
return this->rSeg_.data();
}
const std::vector<int>& getILBs() const
{
return this->iLBS_.data();
}
const std::vector<int>& getILBr() const
{
return this->iLBR_.data();
}
private:
WindowedArray<int> iSeg_;
WindowedArray<double> rSeg_;
WindowedArray<int> iLBS_;
WindowedMatrix<int> iLBR_;
};
}}} // Opm::RestartIO::Helpers
#endif // OPM_AGGREGATE_WELL_DATA_HPP
WindowedArray.hpp
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Opm::EclipseGrid
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition EclipseGrid.hpp:55
Opm::RestartIO::Helpers::AggregateMSWData
Definition AggregateMSWData.hpp:39
Opm::RestartIO::Helpers::AggregateMSWData::getISeg
const std::vector< int > & getISeg() const
Retrieve Integer Multisegment well data Array.
Definition AggregateMSWData.hpp:52
Opm::RestartIO::Helpers::AggregateMSWData::getILBr
const std::vector< int > & getILBr() const
Retrieve Integer multisegment well data Array for lateral branches (ILBR)
Definition AggregateMSWData.hpp:70
Opm::RestartIO::Helpers::AggregateMSWData::getILBs
const std::vector< int > & getILBs() const
Retrieve Integer multisegment well data Array for lateral branches (ILBS)
Definition AggregateMSWData.hpp:64
Opm::RestartIO::Helpers::AggregateMSWData::getRSeg
const std::vector< double > & getRSeg() const
Retrieve Double precision segment data Array.
Definition AggregateMSWData.hpp:58
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::RestartIO::Helpers::WindowedMatrix
Provide read-only and read/write access to constantly sized portions/windows of a linearised buffer w...
Definition WindowedArray.hpp:164
Opm::RestartIO::Helpers::WindowedMatrix::data
auto data() const -> decltype(std::declval< const WindowedArray< T > >().data())
Get read-only access to full, linearised data items for all windows.
Definition WindowedArray.hpp:245
Opm::Schedule
Definition Schedule.hpp:89
Opm::SummaryState
Definition SummaryState.hpp:72
Opm::UnitSystem
Definition UnitSystem.hpp:34
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