|
opm-common
|
Settings for model initialisation. More...
#include <InitConfig.hpp>
Public Member Functions | |
| InitConfig ()=default | |
| Default constructor. | |
| InitConfig (const Deck &deck, const Phases &phases) | |
| Constructor. | |
| void | setRestart (const std::string &root, int step) |
| Assign simulation restart information. | |
| bool | restartRequested () const |
| Whether or not this is a restarted simulation run (input uses the RESTART keyword). | |
| int | getRestartStep () const |
| Report step from which to restart the simulation. | |
| const std::string & | getRestartRootName () const |
| Full path to run's restart input (i.e., run's initial pressures, saturations, Rs, &c). | |
| const std::string & | getRestartRootNameInput () const |
| Relative path to run's restart input (i.e., run's initial pressures, saturations, Rs, &c). | |
| bool | hasEquil () const |
| Whether or not run uses initialisation by equilibration. | |
| const Equil & | getEquil () const |
| Equilibration specification. | |
| bool | hasStressEquil () const |
| Whether or not run initialises its mechanical stresses by an equilibration procedure (STREQUIL keyword). | |
| const StressEquil & | getStressEquil () const |
| Mechanical stress equilibration specification. | |
| bool | hasGravity () const |
| Whether or not run includes gravity effects. | |
| bool | hasFoamConfig () const |
| Whether or not run includes foam effects. | |
| const FoamConfig & | getFoamConfig () const |
| Run's foam configuration. | |
| bool | filleps () const |
| Whether or not the run specifies the FILLEPS keyword that requests expanded end-point scaling arrays be output to the run's INIT file. | |
| bool | operator== (const InitConfig &config) const |
| Equality predicate. | |
| template<class Serializer> | |
| void | serializeOp (Serializer &serializer) |
| Convert between byte array and object representation. | |
Static Public Member Functions | |
| static InitConfig | serializationTestObject () |
| Create a serialisation test object. | |
| static bool | rst_cmp (const InitConfig &full_config, const InitConfig &rst_config) |
| Equality predicate for objects created from restart file information. | |
Settings for model initialisation.
|
default |
Default constructor.
Resulting object is mostly usable as a target in a deserialisation operation.
Constructor.
Internalises the run's initialisation-related information.
| [in] | deck | Run's model description. |
| const Equil & Opm::InitConfig::getEquil | ( | ) | const |
Equilibration specification.
Only meaningful if hasEquil() returns true.
| const FoamConfig & Opm::InitConfig::getFoamConfig | ( | ) | const |
Run's foam configuration.
Only meaningful if hasFoamConfig() returns true.
| const std::string & Opm::InitConfig::getRestartRootName | ( | ) | const |
Full path to run's restart input (i.e., run's initial pressures, saturations, Rs, &c).
Only meaningful if restartRequested() returns true.
| const std::string & Opm::InitConfig::getRestartRootNameInput | ( | ) | const |
Relative path to run's restart input (i.e., run's initial pressures, saturations, Rs, &c).
Copy of item 1 from the RESTART keyword.
Only meaningful if restartRequested() returns true.
| int Opm::InitConfig::getRestartStep | ( | ) | const |
Report step from which to restart the simulation.
Only meaningful if restartRequested() returns true.
| const StressEquil & Opm::InitConfig::getStressEquil | ( | ) | const |
Mechanical stress equilibration specification.
Only meaningful if hasStressEquil() returns true.
|
inline |
Whether or not run includes gravity effects.
Will be true unless run specifies the NOGRAV keyword.
| bool Opm::InitConfig::hasStressEquil | ( | ) | const |
Whether or not run initialises its mechanical stresses by an equilibration procedure (STREQUIL keyword).
Only relevant for runs with geo-mechanical effects.
| bool Opm::InitConfig::operator== | ( | const InitConfig & | config | ) | const |
Equality predicate.
| [in] | config | Object against which will be tested for equality. |
config.
|
static |
Equality predicate for objects created from restart file information.
Exists mostly to support simulation restart development and may be removed in the future.
| [in] | full_config | Initialisation information from a complete model description. |
| [in] | rst_config | Initialisation information formed from restart file information. |
rst_config matches the retart information in full_config.
|
inline |
Convert between byte array and object representation.
| Serializer | Byte array conversion protocol. |
| [in,out] | serializer | Byte array conversion object. |
| void Opm::InitConfig::setRestart | ( | const std::string & | root, |
| int | step ) |
Assign simulation restart information.
Mostly provided to construct a meaningful InitConfig object during simulation restart.
| [in] | root | Full path to run's restart input file containing the run's initial pressure and mass distributions. |
| [in] | step | One-based report step from which to restart the simulation run. |