19 #ifndef FIELDPROPS_MANAGER_HPP
20 #define FIELDPROPS_MANAGER_HPP
24 #include <unordered_map>
25 #include <opm/input/eclipse/EclipseState/Grid/TranCalculator.hpp>
26 #include <opm/input/eclipse/EclipseState/Grid/FieldData.hpp>
36 class NumericalAquifers;
48 virtual void reset_actnum(
const std::vector<int>& actnum);
49 const std::string& default_region()
const;
50 virtual std::vector<int> actnum()
const;
51 virtual std::vector<double> porv(
bool global =
false)
const;
54 void apply_schedule_keywords(
const std::vector<DeckKeyword>& keywords);
65 std::size_t active_size()
const;
124 template <
typename T>
125 std::vector<T> get_copy(
const std::string& keyword,
bool global=
false)
const;
136 template <
typename T>
const std::vector<T>* try_get(
const
137 std::string& keyword)
const;
144 template <
typename T>
145 std::vector<bool> defaulted(
const std::string& keyword)
const;
157 template <
typename T>
158 static bool supported(
const std::string& keyword);
167 template <
typename T>
168 std::vector<std::string> keys()
const;
171 get_int_field_data(
const std::string& keyword)
const;
178 virtual const std::vector<int>& get_int(
const std::string& keyword)
const {
return this->get<int>(keyword); }
179 virtual std::vector<int> get_global_int(
const std::string& keyword)
const {
return this->get_global<int>(keyword); }
181 virtual const std::vector<double>& get_double(
const std::string& keyword)
const {
return this->get<double>(keyword); }
182 virtual std::vector<double> get_global_double(
const std::string& keyword)
const {
return this->get_global<double>(keyword); }
184 virtual bool has_int(
const std::string& keyword)
const {
return this->has<int>(keyword); }
185 virtual bool has_double(
const std::string& keyword)
const {
return this->has<double>(keyword); }
218 virtual bool tran_active(
const std::string& keyword)
const;
229 virtual void apply_tran(
const std::string& keyword, std::vector<double>& tran_data)
const;
231 void apply_numerical_aquifers(
const NumericalAquifers& aquifers);
233 const Fieldprops::TranMap& getTran()
const;
252 template <
typename T>
253 const std::vector<T>& get(
const std::string& keyword)
const;
260 template <
typename T>
261 bool has(
const std::string& keyword)
const;
268 template <
typename T>
269 std::vector<T> get_global(
const std::string& keyword)
const;
271 std::shared_ptr<FieldProps> fp;
274 template<
class MapType>
275 void apply_tran(
const std::unordered_map<std::string, Fieldprops::TranCalculator>& tran,
276 const MapType& double_data,
277 std::size_t active_size,
278 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:54
Definition: FieldPropsManager.hpp:38
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.
bool is_usable() const
Whether we can call methods on the manager.
Definition: Runspec.hpp:57
Definition: TableManager.hpp:65
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29
Definition: FieldData.hpp:55