19 #ifndef WLISTMANAGER_HPP 20 #define WLISTMANAGER_HPP 22 #include <opm/input/eclipse/Schedule/Well/WList.hpp> 69 bool hasWell(
const std::string& pattern)
const;
77 bool hasList(
const std::string& wlistName)
const;
115 const std::vector<std::string>& wname);
120 auto begin()
const {
return this->wlists.begin(); }
123 auto end()
const {
return this->wlists.end(); }
130 const std::vector<std::string>&
145 bool hasWList(
const std::string& wname)
const;
154 void addWListWell(
const std::string& wname,
const std::string& wlname);
166 const std::vector<std::string>& wnames);
177 bool delWell(
const std::string& wname);
186 bool delWListWell(
const std::string& wname,
const std::string& wlname);
206 std::vector<std::string>
wells(
const std::string& wlist_pattern)
const;
213 template<
class Serializer>
217 serializer(well_wlist_names);
218 serializer(no_wlists_well);
225 std::map<std::string, WList> wlists;
230 std::map<std::string, std::vector<std::string>> well_wlist_names;
235 std::map<std::string, std::size_t> no_wlists_well;
248 void resetExistingWList(
const std::string& wlistName,
249 const std::vector<std::string>& newWells);
257 void clearExistingWList(
const std::string& wlistName);
268 void createNewWList(
const std::string& wlistName,
269 const std::vector<std::string>& newWells);
274 #endif // WLISTMANAGER_HPP
std::vector< std::string > wells(const std::string &wlist_pattern) const
All wells on all well lists matching a name pattern.
Definition: WListManager.cpp:207
Collection of run's known well lists.
Definition: WListManager.hpp:40
auto end() const
End of sequence of run's current well lists.
Definition: WListManager.hpp:123
bool hasList(const std::string &wlistName) const
Predicate for existence of particular well lists.
Definition: WListManager.cpp:67
Named sequence of wells.
Definition: WList.hpp:31
bool delWell(const std::string &wname)
Remove named well from all existing well lists.
Definition: WListManager.cpp:151
std::size_t getNoWListsWell(const std::string &wname) const
Number of well lists containing named well.
Definition: WListManager.cpp:112
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
static WListManager serializationTestObject()
Create a serialisation test object.
Definition: WListManager.cpp:38
WList & newList(const std::string &name, const std::vector< std::string > &wname)
Create a new well list with initial sequence of wells.
Definition: WListManager.cpp:72
bool operator==(const WListManager &data) const
Equality predicate.
Definition: WListManager.cpp:201
auto begin() const
Start of sequence of run's current well lists.
Definition: WListManager.hpp:120
bool delWListWell(const std::string &wname, const std::string &wlname)
Remove named well from specific, named well list.
Definition: WListManager.cpp:177
WList & getList(const std::string &name)
Access individual well list by name.
Definition: WListManager.cpp:90
WListManager()=default
Default constructor.
const std::vector< std::string > & getWListNames(const std::string &wname) const
Sequence of well lists containing named well.
Definition: WListManager.cpp:101
void addWListWell(const std::string &wname, const std::string &wlname)
Add named well to named well list.
Definition: WListManager.cpp:117
void serializeOp(Serializer &serializer)
Convert between byte array and object representation.
Definition: WListManager.hpp:214
void addOrCreateWellList(const std::string &wlname, const std::vector< std::string > &wnames)
Add sequence of wells to a named well list.
Definition: WListManager.cpp:140
bool hasWell(const std::string &pattern) const
Whether or not one or more wells matching a well list name or well list template exists.
Definition: WListManager.cpp:57
std::size_t WListSize() const
Number of well lists in current collection.
Definition: WListManager.cpp:52
bool hasWList(const std::string &wname) const
Whether or not named well is on any current well list.
Definition: WListManager.cpp:106
Definition: Aquancon.hpp:40
Class for (de-)serializing.
Definition: Serializer.hpp:94