Loading...
Searching...
No Matches
AggregateNetworkData.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_NETWORK_DATA_HPP
#define OPM_AGGREGATE_NETWORK_DATA_HPP
#include <opm/output/eclipse/WindowedArray.hpp>
#include <opm/io/eclipse/PaddedOutputString.hpp>
#include <cstddef>
#include <vector>
namespace Opm {
class EclipseState;
class Schedule;
class SummaryState;
class UnitSystem;
} // Opm
namespace Opm { namespace RestartIO { namespace Helpers {
class AggregateNetworkData
{
public:
explicit AggregateNetworkData(const std::vector<int>& inteHead);
void captureDeclaredNetworkData(const Opm::EclipseState& es,
const Opm::Schedule& sched,
const Opm::UnitSystem& units,
const std::size_t lookup_step,
const Opm::SummaryState& sumState,
const std::vector<int>& inteHead);
const std::vector<int>& getINode() const
{
return this->iNode_.data();
}
const std::vector<int>& getIBran() const
{
return this->iBran_.data();
}
const std::vector<int>& getINobr() const
{
return this->iNobr_.data();
}
const std::vector<double>& getRNode() const
{
return this->rNode_.data();
}
const std::vector<double>& getRBran() const
{
return this->rBran_.data();
}
const std::vector<EclIO::PaddedOutputString<8>>& getZNode() const
{
return this->zNode_.data();
}
private:
WindowedArray<int> iNode_;
WindowedArray<int> iBran_;
WindowedArray<int> iNobr_;
WindowedArray<double> rNode_;
WindowedArray<double> rBran_;
WindowedArray<EclIO::PaddedOutputString<8>> zNode_;
//int nWGMax_;
//int nGMaxz_;
};
}}} // Opm::RestartIO::Helpers
#endif // OPM_AGGREGATE_NETWORK_DATA_HPP
WindowedArray.hpp
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Opm::EclipseState
Definition EclipseState.hpp:63
Opm::RestartIO::Helpers::AggregateNetworkData
Definition AggregateNetworkData.hpp:40
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::UnitSystem
Definition UnitSystem.hpp:34
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30