Collection of events associated to specific completions of named wells.
More...
#include <Events.hpp>
|
| void | addEvent (const std::string &wname, int complnum, ScheduleEvents::Events event) |
| | Add a single event for a specific completion of a named well. More...
|
| |
| void | clearEvent (const std::string &wname, int complnum, std::uint64_t eventMask) |
| | Remove one or more individual events from the collection tied to a single completion of a named well. More...
|
| |
| void | reset () |
| | Remove all events for all known wells and completions. More...
|
| |
| void | merge (const WellCompletionEvents &events) |
| | Merge current event collection with other. More...
|
| |
| bool | hasEvent (const std::string &wname, int complnum, std::uint64_t eventMask) const |
| | Query current collection for one or more specific events associated to a specific completion of a named well. More...
|
| |
| bool | operator== (const WellCompletionEvents &data) const |
| | Equality predicate. More...
|
| |
| template<class Serializer > |
| void | serializeOp (Serializer &serializer) |
| | Convert between byte array and object representation. More...
|
| |
Collection of events associated to specific completions of named wells.
Keyed by well name plus completion number (set by COMPDAT/COMPLNUM, referenced by e.g. WELOPEN), since completions have no stable name. Unlike WellGroupEvents, pairs need not be registered up front: addEvent() creates entries on first use.
◆ addEvent()
| void Opm::WellCompletionEvents::addEvent |
( |
const std::string & |
wname, |
|
|
int |
complnum, |
|
|
ScheduleEvents::Events |
event |
|
) |
| |
Add a single event for a specific completion of a named well.
- Parameters
-
| [in] | wname | Well name. |
| [in] | complnum | Completion number within wname. |
| [in] | event | Single named event. If event already exists for the (wname, complnum) pair, then this function does nothing. |
◆ clearEvent()
| void Opm::WellCompletionEvents::clearEvent |
( |
const std::string & |
wname, |
|
|
int |
complnum, |
|
|
std::uint64_t |
eventMask |
|
) |
| |
Remove one or more individual events from the collection tied to a single completion of a named well.
- Parameters
-
| [in] | wname | Well name. |
| [in] | complnum | Completion number within wname. |
| [in] | eventMask | One or more events combined using bitwise 'or' ('|'). All events for the (wname, complnum) pair that are set in eventMask will be cleared. |
◆ hasEvent()
| bool Opm::WellCompletionEvents::hasEvent |
( |
const std::string & |
wname, |
|
|
int |
complnum, |
|
|
std::uint64_t |
eventMask |
|
) |
| const |
Query current collection for one or more specific events associated to a specific completion of a named well.
- Parameters
-
| [in] | wname | Well name. |
| [in] | complnum | Completion number within wname. |
| [in] | eventMask | Bit mask of events for which to check existence. |
- Returns
- Whether or not at least one of the events represented in
eventMask is active for the (wname, complnum) pair in the current collection.
◆ merge()
Merge current event collection with other.
Resulting collection (*this) has the union of the events for all (well, completion) pairs in both collections.
◆ operator==()
Equality predicate.
- Parameters
-
| [in] | data | Object against which will be tested for equality. |
- Returns
- Whether or not is the same as
data.
◆ reset()
| void Opm::WellCompletionEvents::reset |
( |
| ) |
|
Remove all events for all known wells and completions.
Typically used only when preparing the events system for a new report step as part of Schedule object initialisation.
◆ serializeOp()
template<class Serializer >
| void Opm::WellCompletionEvents::serializeOp |
( |
Serializer & |
serializer | ) |
|
|
inline |
Convert between byte array and object representation.
- Template Parameters
-
- Parameters
-
| [in,out] | serializer | Byte array conversion object. |
The documentation for this class was generated from the following files:
- opm/input/eclipse/Schedule/Events.hpp
- opm/input/eclipse/Schedule/Events.cpp