21#ifndef OPM_PARSER_ECLIPSE_ECLIPSESTATE_TABLES_VFPINJTABLE_HPP_
22#define OPM_PARSER_ECLIPSE_ECLIPSESTATE_TABLES_VFPINJTABLE_HPP_
29#include <opm/common/OpmLog/KeywordLocation.hpp>
52 return this->m_location;
55 inline int getTableNum()
const {
60 inline int name()
const {
64 inline double getDatumDepth()
const {
68 inline FLO_TYPE getFloType()
const {
72 inline const std::vector<double>& getFloAxis()
const {
76 inline const std::vector<double>& getTHPAxis()
const {
92 inline const std::vector<double>&
getTable()
const {
98 std::array<size_t,2> shape()
const;
100 double operator()(
size_t thp_idx,
size_t flo_idx)
const;
102 template<
class Serializer>
105 serializer(m_table_num);
106 serializer(m_datum_depth);
107 serializer(m_flo_type);
108 serializer(m_flo_data);
109 serializer(m_thp_data);
111 serializer(m_location);
116 double m_datum_depth;
119 std::vector<double> m_flo_data;
120 std::vector<double> m_thp_data;
123 std::vector<double> m_data;
124 KeywordLocation m_location;
128 double& operator()(
size_t thp_idx,
size_t flo_idx);
130 static FLO_TYPE getFloType(std::string flo_string);
132 static void scaleValues(std::vector<double>& values,
133 const double& scaling_factor);
135 static void convertFloToSI(
const FLO_TYPE& type,
136 std::vector<double>& values,
137 const UnitSystem& unit_system);
138 static void convertTHPToSI(std::vector<double>& values,
139 const UnitSystem& unit_system);
Definition: DeckKeyword.hpp:36
Definition: KeywordLocation.hpp:27
Class for (de-)serializing.
Definition: Serializer.hpp:75
Definition: UnitSystem.hpp:33
Definition: VFPInjTable.hpp:36
const std::vector< double > & getTable() const
Returns the data of the table itself.
Definition: VFPInjTable.hpp:92
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29