|
opm-common
|
Internalised representation of all UDAs in a simulation run. More...
#include <UDQActive.hpp>
Classes | |
| class | InputRecord |
| Internalised representation of a UDA from the input file. More... | |
| class | OutputRecord |
| Single UDA with use counts and IUAP start offsets for restart file output purposes. More... | |
| struct | RstRecord |
| Single UDA created from restart file information. More... | |
Public Member Functions | |
| UDQActive ()=default | |
| Default constructor. More... | |
| int | update (const UDQConfig &udq_config, const UDAValue &uda, const std::string &wgname, const UDAControl control) |
| Amend collection of input UDAs to account for a new entry. More... | |
| operator bool () const | |
| UDA existence predicate. More... | |
| const std::vector< OutputRecord > & | iuad () const |
| Retrieve current set of UDAs, condensed by use counts and IUAP offsets. More... | |
| std::vector< InputRecord > | iuap () const |
| Retrieve current set of UDAs from which to form IUAP restart file array. More... | |
| bool | operator== (const UDQActive &data) const |
| Equality predicate. More... | |
| template<class Serializer > | |
| void | serializeOp (Serializer &serializer) |
| Convert between byte array and object representation. More... | |
Static Public Member Functions | |
| static UDQActive | serializationTestObject () |
| Create a serialisation test object. | |
| static std::vector< RstRecord > | load_rst (const UnitSystem &units, const UDQConfig &udq_config, const RestartIO::RstState &rst_state, const std::vector< std::string > &well_names, const std::vector< std::string > &group_names) |
| Load UDAs from restart file. More... | |
Internalised representation of all UDAs in a simulation run.
|
default |
Default constructor.
Creates an empty collection of UDAs. Resulting collection is usable as a target for a deserialisation operation, or as a container of new UDAs through calls to the update() member function.
| const std::vector< Opm::UDQActive::OutputRecord > & Opm::UDQActive::iuad | ( | ) | const |
Retrieve current set of UDAs, condensed by use counts and IUAP offsets.
Intended for restart file output purposes only.
| std::vector< Opm::UDQActive::InputRecord > Opm::UDQActive::iuap | ( | ) | const |
Retrieve current set of UDAs from which to form IUAP restart file array.
Intendend for restart file output purposes only.
|
static |
Load UDAs from restart file.
| [in] | units | |
| [in] | udq_config | Simulation run's collection of user defined quantities. |
| [in] | rst_state | Restart file information. |
| [in] | well_names | Run's wells at restart point. |
| [in] | group_names | Run's groups at restart point. |
|
explicit |
UDA existence predicate.
| bool Opm::UDQActive::operator== | ( | const UDQActive & | data | ) | const |
Equality predicate.
| [in] | data | Object against which *this |
data.
|
inline |
Convert between byte array and object representation.
| Serializer | Byte array conversion protocol. |
| [in,out] | serializer | Byte array conversion object. |
| int Opm::UDQActive::update | ( | const UDQConfig & | udq_config, |
| const UDAValue & | uda, | ||
| const std::string & | wgname, | ||
| const UDAControl | control | ||
| ) |
Amend collection of input UDAs to account for a new entry.
Does nothing if the UDA is numeric. Adds a new record if none exists for the particular combination of (UDA, well/group name, and constraint keyword item). Removes a record if the UDA value is numeric and previously used a UDQ specification. Replaces a record if a different UDA was used for the same combination of well/group name and keyword/item.
| [in] | udq_config | Simulation run's collection of user defined quantities. |
| [in] | uda | Numeric or string UDA value entered for a single limit/item in a constraint keyword. |
| [in] | wgname | Well/group name affected by uda. |
| [in] | control | Constraint keyword and associate item/limit for which uda supplies the numeric value. |