21 #ifndef OPM_BLACKOILSTATE_HEADER_INCLUDED 22 #define OPM_BLACKOILSTATE_HEADER_INCLUDED 24 #include <opm/common/data/SimulationDataContainer.hpp> 26 #include <opm/core/grid.h> 27 #include <opm/core/props/BlackoilPropertiesInterface.hpp> 33 enum HydroCarbonState {
43 static const std::string GASOILRATIO;
44 static const std::string RV;
45 static const std::string SURFACEVOL;
46 static const std::string SSOL;
47 static const std::string POLYMER;
56 BlackoilState(
size_t num_cells,
size_t num_faces,
size_t num_phases);
70 std::vector<double>& surfacevol () {
return *surfacevol_ref_; }
71 std::vector<double>& gasoilratio () {
return *gasoilratio_ref_; }
72 std::vector<double>& rv () {
return *rv_ref_; }
73 std::vector<HydroCarbonState>& hydroCarbonState() {
return hydrocarbonstate_; }
75 const std::vector<double>& surfacevol ()
const {
return *surfacevol_ref_; }
76 const std::vector<double>& gasoilratio ()
const {
return *gasoilratio_ref_; }
77 const std::vector<double>& rv ()
const {
return *rv_ref_; }
78 const std::vector<HydroCarbonState>& hydroCarbonState()
const {
return hydrocarbonstate_; }
81 void setBlackoilStateReferencePointers();
82 std::vector<double>* surfacevol_ref_;
83 std::vector<double>* gasoilratio_ref_;
84 std::vector<double>* rv_ref_;
87 std::vector<HydroCarbonState> hydrocarbonstate_;
94 #endif // OPM_BLACKOILSTATE_HEADER_INCLUDED BlackoilState & operator=(const BlackoilState &other)
Copy assignment operator.
Definition: BlackoilState.cpp:37
Definition: AnisotropicEikonal.cpp:446
Simulator state for a blackoil simulator.
Definition: BlackoilState.hpp:40
BlackoilState(size_t num_cells, size_t num_faces, size_t num_phases)
Main constructor setting the sizes for the contained data types.
Definition: BlackoilState.cpp:18