ParallelWellInfo.hpp
Go to the documentation of this file.
50 };
Class checking that all connections are on active cells. Definition: ParallelWellInfo.hpp:338 CheckDistributedWellConnections(const Well &well, const ParallelWellInfo &info) bool checkAllConnectionsFound() void connectionFound(std::size_t index) Inidicate that the i-th completion was found. Class to facilitate getting values associated with the above/below perforation. Definition: ParallelWellInfo.hpp:40 void beginReset() Indicates that we will add the index information. const IndexSet & getIndexSet() const Get index set for the local perforations. Dune::ParallelIndexSet< int, LocalIndex, 50 > IndexSet Definition: ParallelWellInfo.hpp:52 std::vector< double > communicateAbove(double first_value, const double *current, std::size_t size) Creates an array of values for the perforation above. int numLocalPerfs() const void partialSumPerfValues(RAIterator begin, RAIterator end) const Do a (in place) partial sum on values attached to all perforations. void pushBackEclIndex(int above, int current, bool owner=true) Adds information about original index of the perforations in ECL Schedule. Dune::ParallelLocalIndex< Attribute > LocalIndex Definition: ParallelWellInfo.hpp:51 std::vector< double > communicateBelow(double first_value, const double *current, std::size_t size) Creates an array of values for the perforation below. CommunicateAboveBelow(const Parallel::Communication &comm) A factory for creating a global data representation for distributed wells. Definition: ParallelWellInfo.hpp:135 void copyGlobalToLocal(const std::vector< double > &global, std::vector< double > &local, std::size_t num_components) const Copies the values of the global perforation to the local representation. int numGlobalPerfs() const GlobalPerfContainerFactory(const IndexSet &local_indices, const Parallel::Communication comm, int num_local_perfs) Constructor. typename IndexSet::IndexPair::GlobalIndex GlobalIndex Definition: ParallelWellInfo.hpp:139 std::vector< double > createGlobal(const std::vector< double > &local_perf_container, std::size_t num_components) const Creates a container that holds values for all perforations. CommunicateAboveBelow::IndexSet IndexSet Definition: ParallelWellInfo.hpp:137 Class encapsulating some information about parallel wells. Definition: ParallelWellInfo.hpp:184 bool hasLocalCells() const Whether local cells are perforated somewhen. Definition: ParallelWellInfo.hpp:262 void pushBackEclIndex(int above, int current) Adds information about the ecl indices of the perforations. std::vector< double > communicateBelowValues(double last_value, const std::vector< double > ¤t) const Creates an array of values for the perforation above. const std::string & name() const Name of the well. Definition: ParallelWellInfo.hpp:256 ParallelWellInfo(const std::string &name={""}, bool hasLocalCells=true) Constructs object using MPI_COMM_SELF. It::value_type sumPerfValues(It begin, It end) const Sum all the values of the perforations. void communicateFirstPerforation(bool hasFirst) Collectively decide which rank has first perforation. const GlobalPerfContainerFactory & getGlobalPerfContainerFactory() const Get a factor to create a global representation of peforation data. static constexpr int INVALID_ECL_INDEX Definition: ParallelWellInfo.hpp:186 std::vector< double > communicateBelowValues(double last_value, const double *current, std::size_t size) const Creates an array of values for the perforation below. std::vector< double > communicateAboveValues(double first_value, const double *current, std::size_t size) const Creates an array of values for the perforation above. std::vector< double > communicateAboveValues(double first_value, const std::vector< double > ¤t) const Creates an array of values for the perforation above. T broadcastFirstPerforationValue(const T &t) const void beginReset() Inidicate that we will reset the ecl index information. ParallelWellInfo(const std::pair< std::string, bool > &well_info, Parallel::Communication allComm) Constructs object with communication between all rank sharing a well. void partialSumPerfValues(RAIterator begin, RAIterator end) const Do a (in place) partial sum on values attached to all perforations. Definition: ParallelWellInfo.hpp:291 const Parallel::Communication & communication() const Definition: ParallelWellInfo.hpp:201 void endReset() Inidicate completion of reset of the ecl index information. Dune::Communication< MPIComm > Communication Definition: ParallelCommunication.hpp:30 Definition: BlackoilPhases.hpp:27 bool operator<(const ParallelWellInfo &well1, const ParallelWellInfo &well2) bool operator==(const ParallelWellInfo &well1, const ParallelWellInfo &well2) bool operator!=(const ParallelWellInfo &well1, const ParallelWellInfo &well2) |