20 #ifndef OPM_PARSER_ECLIPSE_ECLIPSESTATE_TABLES_VFPINJTABLE_HPP_ 21 #define OPM_PARSER_ECLIPSE_ECLIPSESTATE_TABLES_VFPINJTABLE_HPP_ 23 #include <opm/common/OpmLog/KeywordLocation.hpp> 50 return this->m_location;
53 inline int getTableNum()
const {
58 inline int name()
const {
62 inline double getDatumDepth()
const {
66 inline FLO_TYPE getFloType()
const {
70 inline const std::vector<double>& getFloAxis()
const {
74 inline const std::vector<double>& getTHPAxis()
const {
90 inline const std::vector<double>&
getTable()
const {
96 std::array<std::size_t,2> shape()
const;
98 double operator()(std::size_t thp_idx, std::size_t flo_idx)
const;
100 template<
class Serializer>
103 serializer(m_table_num);
104 serializer(m_datum_depth);
105 serializer(m_flo_type);
106 serializer(m_flo_data);
107 serializer(m_thp_data);
109 serializer(m_location);
114 double m_datum_depth;
117 std::vector<double> m_flo_data;
118 std::vector<double> m_thp_data;
120 std::vector<double> m_data;
121 KeywordLocation m_location;
125 double& operator()(std::size_t thp_idx, std::size_t flo_idx);
127 static FLO_TYPE getFloType(
const std::string& flo_string);
129 static void scaleValues(std::vector<double>& values,
130 const double& scaling_factor);
132 static void convertFloToSI(
const FLO_TYPE& type,
133 std::vector<double>& values,
134 const UnitSystem& unit_system);
135 static void convertTHPToSI(std::vector<double>& values,
136 const UnitSystem& unit_system);
Definition: VFPInjTable.hpp:35
Definition: KeywordLocation.hpp:27
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
const std::vector< double > & getTable() const
Returns the data of the table itself.
Definition: VFPInjTable.hpp:90
Definition: UnitSystem.hpp:34
Class for (de-)serializing.
Definition: Serializer.hpp:95
Definition: DeckKeyword.hpp:38