Simulator state for a blackoil simulator. More...
#include <BlackoilState.hpp>
Public Member Functions | |
BlackoilState (size_t num_cells, size_t num_faces, size_t num_phases) | |
Main constructor setting the sizes for the contained data types. More... | |
BlackoilState (const BlackoilState &other) | |
Copy constructor. More... | |
BlackoilState & | operator= (const BlackoilState &other) |
Copy assignment operator. More... | |
std::vector< double > & | surfacevol () |
std::vector< double > & | gasoilratio () |
std::vector< double > & | rv () |
std::vector< HydroCarbonState > & | hydroCarbonState () |
const std::vector< double > & | surfacevol () const |
const std::vector< double > & | gasoilratio () const |
const std::vector< double > & | rv () const |
const std::vector < HydroCarbonState > & | hydroCarbonState () const |
Simulator state for a blackoil simulator.
BlackoilState::BlackoilState | ( | size_t | num_cells, |
size_t | num_faces, | ||
size_t | num_phases | ||
) |
Main constructor setting the sizes for the contained data types.
num_cells | number of elements in cell data vectors |
num_faces | number of elements in face data vectors |
num_phases | number of phases, the number of components in any data vector must equal 1 or this number (this behaviour and argument is deprecated). |
BlackoilState::BlackoilState | ( | const BlackoilState & | other | ) |
Copy constructor.
Must be defined explicitly because class contains non-value objects (the reference pointers rv_ref_ etc.) that should not simply be copied.
BlackoilState & BlackoilState::operator= | ( | const BlackoilState & | other | ) |
Copy assignment operator.
Must be defined explicitly because class contains non-value objects (the reference pointers rv_ref_ etc.) that should not simply be copied.