19 #ifndef FIELDPROPS_MANAGER_HPP
20 #define FIELDPROPS_MANAGER_HPP
24 #include <unordered_map>
25 #include <opm/parser/eclipse/EclipseState/Grid/TranCalculator.hpp>
26 #include <opm/parser/eclipse/EclipseState/Grid/FieldData.hpp>
35 class NumericalAquifers;
45 virtual void reset_actnum(
const std::vector<int>& actnum);
46 const std::string& default_region()
const;
47 virtual std::vector<int> actnum()
const;
48 virtual std::vector<double> porv(
bool global =
false)
const;
56 std::size_t active_size()
const;
115 template <
typename T>
116 std::vector<T> get_copy(
const std::string& keyword,
bool global=
false)
const;
127 template <
typename T>
const std::vector<T>* try_get(
const
128 std::string& keyword)
const;
135 template <
typename T>
136 std::vector<bool> defaulted(
const std::string& keyword)
const;
148 template <
typename T>
149 static bool supported(
const std::string& keyword);
158 template <
typename T>
159 std::vector<std::string> keys()
const;
162 get_int_field_data(
const std::string& keyword)
const;
169 virtual const std::vector<int>& get_int(
const std::string& keyword)
const {
return this->get<int>(keyword); }
170 virtual std::vector<int> get_global_int(
const std::string& keyword)
const {
return this->get_global<int>(keyword); }
172 virtual const std::vector<double>& get_double(
const std::string& keyword)
const {
return this->get<double>(keyword); }
173 virtual std::vector<double> get_global_double(
const std::string& keyword)
const {
return this->get_global<double>(keyword); }
175 virtual bool has_int(
const std::string& keyword)
const {
return this->has<int>(keyword); }
176 virtual bool has_double(
const std::string& keyword)
const {
return this->has<double>(keyword); }
209 virtual bool tran_active(
const std::string& keyword)
const;
220 virtual void apply_tran(
const std::string& keyword, std::vector<double>& tran_data)
const;
222 void apply_numerical_aquifers(
const NumericalAquifers& aquifers);
232 virtual std::vector<char> serialize_tran()
const;
233 virtual void deserialize_tran(
const std::vector<char>& buffer);
251 template <
typename T>
252 const std::vector<T>& get(
const std::string& keyword)
const;
259 template <
typename T>
260 bool has(
const std::string& keyword)
const;
267 template <
typename T>
268 std::vector<T> get_global(
const std::string& keyword)
const;
271 std::shared_ptr<FieldProps> fp;
275 void deserialize_tran(std::unordered_map<std::string, Fieldprops::TranCalculator>& tran,
276 const std::vector<char>& buffer);
278 template<
class MapType>
279 void apply_tran(
const std::unordered_map<std::string, Fieldprops::TranCalculator>& tran,
280 const MapType& double_data,
281 std::size_t active_size,
282 const std::string& keyword, std::vector<double>& data);
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition: EclipseGrid.hpp:55
Definition: FieldPropsManager.hpp:37
const Fieldprops::FieldData< double > & get_double_field_data(const std::string &keyword, bool allow_unsupported=false) const
Get double field data associated with a keyword.
Definition: Runspec.hpp:57
Definition: TableManager.hpp:64
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29
Definition: FieldData.hpp:55