OilVaporizationProperties.hpp
Go to the documentation of this file.
1 #ifndef DRSDT_HPP
2 #define DRSDT_HPP
3 #include <iostream>
4 #include <string>
5 #include <memory>
7 
8 namespace Opm
9 {
10  /*
11  * The OilVaporizationProperties class
12  * This classe is used to store the values from {VAPPARS, DRSDT, DRVDT} the behavior of the keywords are mutal exclusive.
13  * Any one of the three keywords {VAPPARS, DRSDT, DRVDT} will cancel previous settings of the other keywords.
14  * Ask for type first and the ask for the correct values for this type, asking for values not valid for the current type will throw a logic exception.
15  */
17  {
18  public:
19 
20 
21  static std::shared_ptr<OilVaporizationProperties> createOilVaporizationPropertiesDRSDT(double maxDRSDT, std::string option);
22  static std::shared_ptr<OilVaporizationProperties> createOilVaporizationPropertiesDRVDT(double maxDRVDT);
23  static std::shared_ptr<OilVaporizationProperties> createOilVaporizationPropertiesVAPPARS(double vap1, double vap2);
25  double getVap1() const;
26  double getVap2() const;
27  double getMaxDRSDT() const;
28  double getMaxDRVDT() const;
29  bool getOption() const;
30 
31  private:
34  double m_vap1;
35  double m_vap2;
36  double m_maxDRSDT;
37  double m_maxDRVDT;
38  bool m_maxDRSDT_allCells;
39  };
40  typedef std::shared_ptr<OilVaporizationProperties> OilVaporizationPropertiesPtr;
41  typedef std::shared_ptr<const OilVaporizationProperties> OilVaporizationPropertiesConstPtr;
42 }
43 #endif // DRSDT_H
static std::shared_ptr< OilVaporizationProperties > createOilVaporizationPropertiesDRVDT(double maxDRVDT)
Definition: Deck.hpp:29
std::shared_ptr< const OilVaporizationProperties > OilVaporizationPropertiesConstPtr
Definition: OilVaporizationProperties.hpp:41
static std::shared_ptr< OilVaporizationProperties > createOilVaporizationPropertiesVAPPARS(double vap1, double vap2)
static std::shared_ptr< OilVaporizationProperties > createOilVaporizationPropertiesDRSDT(double maxDRSDT, std::string option)
OilVaporizationEnum
Definition: ScheduleEnums.hpp:242
Definition: OilVaporizationProperties.hpp:16
std::shared_ptr< OilVaporizationProperties > OilVaporizationPropertiesPtr
Definition: OilVaporizationProperties.hpp:40
Opm::OilVaporizationEnum getType() const