26#ifndef OPM_RFT_CONTAINER_HPP
27#define OPM_RFT_CONTAINER_HPP
29#include <opm/simulators/utils/ParallelCommunication.hpp>
39namespace data {
class Wells; }
50template<
class Flu
idSystem>
53 using Scalar =
typename FluidSystem::Scalar;
57 using ScalarBuffer = std::vector<Scalar>;
60 static constexpr auto gasPhaseIdx = FluidSystem::gasPhaseIdx;
63 static constexpr auto oilPhaseIdx = FluidSystem::oilPhaseIdx;
66 static constexpr auto waterPhaseIdx = FluidSystem::waterPhaseIdx;
96 const Schedule& schedule,
100 , schedule_(schedule)
101 , wellIsOwnedByCurrentRank_(wellIsOwnedByCurrent)
102 , wellOnCurrentRank_(wellOnCurrent)
123 const std::size_t reportStepNum,
124 const Parallel::Communication& comm);
130 void allocate(
const std::size_t reportStepNum);
152 void assign(
const unsigned cartesianIndex,
159 const EclipseState& eclState_;
162 const Schedule& schedule_;
180 std::map<std::size_t, Scalar> oilConnectionPressures_;
187 std::map<std::size_t, Scalar> waterConnectionSaturations_;
193 std::map<std::size_t, Scalar> gasConnectionSaturations_;
void assign(const unsigned cartesianIndex, const AssignmentFunc &oil, const AssignmentFunc &water, const AssignmentFunc &gas)
Collect cell level RFT state into internal data structures.
Definition RFTContainer.cpp:175
std::function< Scalar()> AssignmentFunc
Call-back function type for collecting cell level dynamic state values.
Definition RFTContainer.hpp:71
RFTContainer(const EclipseState &eclState, const Schedule &schedule, const WellQueryFunc &wellIsOwnedByCurrent, const WellQueryFunc &wellOnCurrent)
Constructor.
Definition RFTContainer.hpp:95
void addToWells(data::Wells &wellDatas, const std::size_t reportStepNum, const Parallel::Communication &comm)
Export RFT cell level state data to requisite connections.
Definition RFTContainer.cpp:74
void allocate(const std::size_t reportStepNum)
Prepare internal data structures to collect RFT state.
Definition RFTContainer.cpp:139
std::function< bool(const std::string &)> WellQueryFunc
Call-back predicate type for inferring MPI characteristics for a named well.
Definition RFTContainer.hpp:77
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:45