Loading...
Searching...
No Matches
BlackoilWellModelRestart.hpp
/*
Copyright 2016 SINTEF ICT, Applied Mathematics.
Copyright 2016 - 2017 Statoil ASA.
Copyright 2017 Dr. Blatt - HPC-Simulation-Software & Services
Copyright 2016 - 2018 IRIS AS
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_BLACKOILWELLMODEL_RESTART_HEADER_INCLUDED
#define OPM_BLACKOILWELLMODEL_RESTART_HEADER_INCLUDED
#include <opm/input/eclipse/Schedule/Group/GuideRateModel.hpp>
#include <opm/output/data/Wells.hpp>
#include <vector>
namespace Opm {
template<typename Scalar, typename IndexTraits> class BlackoilWellModelGeneric;
namespace data {
struct GroupData;
class GroupAndNetworkValues;
}
template<class Scalar> class GroupState;
class GuideRate;
class GuideRateConfig;
template<class Scalar> struct PerforationData;
template<typename Scalar, typename IndexTraits> class SingleWellState;
template<typename Scalar, typename IndexTraits> class WellState;
template<typename Scalar, typename IndexTraits>
class BlackoilWellModelRestart
{
public:
explicit BlackoilWellModelRestart(const BlackoilWellModelGeneric<Scalar, IndexTraits>& wellModel)
: wellModel_(wellModel)
{}
void loadRestartGuideRates(const int report_step,
const GuideRateModel::Target target,
const data::Wells& rst_wells,
GuideRate& guide_rate) const;
void loadRestartGuideRates(const int report_step,
const GuideRateConfig& config,
const std::map<std::string, data::GroupData>& rst_groups,
GuideRate& guide_rate) const;
void loadRestartData(const data::Wells& rst_wells,
const data::GroupAndNetworkValues& grpNwrkValues,
const bool handle_ms_well,
WellState<Scalar, IndexTraits>& well_state,
GroupState<Scalar>& grpState) const;
private:
void loadRestartConnectionData(const std::vector<data::Rates::opt>& phs,
const data::Well& rst_well,
const std::vector<PerforationData<Scalar>>& old_perf_data,
SingleWellState<Scalar, IndexTraits>& ws) const;
void loadRestartSegmentData(const std::string& well_name,
const std::vector<data::Rates::opt>& phs,
const data::Well& rst_well,
SingleWellState<Scalar, IndexTraits>& ws) const;
void loadRestartWellData(const std::string& well_name,
const bool handle_ms_well,
const std::vector<data::Rates::opt>& phs,
const data::Well& rst_well,
const std::vector<PerforationData<Scalar>>& old_perf_data,
SingleWellState<Scalar, IndexTraits>& ws) const;
void loadRestartGroupData(const std::string& group,
const data::GroupData& value,
GroupState<Scalar>& grpState) const;
const BlackoilWellModelGeneric<Scalar, IndexTraits>& wellModel_;
};
} // namespace Opm
#endif
Opm::BlackoilWellModelGeneric
Class for handling the blackoil well model.
Definition BlackoilWellModelGeneric.hpp:95
Opm::BlackoilWellModelRestart::loadRestartData
void loadRestartData(const data::Wells &rst_wells, const data::GroupAndNetworkValues &grpNwrkValues, const bool handle_ms_well, WellState< Scalar, IndexTraits > &well_state, GroupState< Scalar > &grpState) const
Loads well data from restart structures.
Definition BlackoilWellModelRestart.cpp:234
Opm::BlackoilWellModelRestart::loadRestartGuideRates
void loadRestartGuideRates(const int report_step, const GuideRateModel::Target target, const data::Wells &rst_wells, GuideRate &guide_rate) const
Loads guide rates from restart structures.
Definition BlackoilWellModelRestart.cpp:191
Opm::BlackoilWellModelRestart::BlackoilWellModelRestart
BlackoilWellModelRestart(const BlackoilWellModelGeneric< Scalar, IndexTraits > &wellModel)
Constructor initializes reference to the well model.
Definition BlackoilWellModelRestart.hpp:51
Opm::GroupState
Definition GroupState.hpp:41
Opm::SingleWellState
Definition SingleWellState.hpp:43
Opm::WellState
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:66
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
Opm::PerforationData
Static data associated with a well perforation.
Definition PerforationData.hpp:30