OGS
Extrapolator.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <Eigen/Eigen>
14 #include <vector>
15 
17 #include "NumLib/NumericsConfig.h"
18 
19 namespace NumLib
20 {
21 class LocalToGlobalIndexMap;
22 
26 {
27 public:
29  virtual void extrapolate(
30  const unsigned num_components,
31  ExtrapolatableElementCollection const& extrapolatables,
32  const double t,
33  std::vector<GlobalVector*> const& x,
34  std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table) = 0;
35 
42  virtual void calculateResiduals(
43  const unsigned num_components,
44  ExtrapolatableElementCollection const& extrapolatables,
45  const double t,
46  std::vector<GlobalVector*> const& x,
47  std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table) = 0;
48 
51  virtual GlobalVector const& getNodalValues() const = 0;
52 
55  virtual GlobalVector const& getElementResiduals() const = 0;
56 
57  virtual ~Extrapolator() = default;
58 };
59 
60 } // namespace NumLib
Global vector based on Eigen vector.
Definition: EigenVector.h:28
virtual GlobalVector const & getElementResiduals() const =0
virtual GlobalVector const & getNodalValues() const =0
virtual ~Extrapolator()=default
virtual void extrapolate(const unsigned num_components, ExtrapolatableElementCollection const &extrapolatables, const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table)=0
Extrapolates the given property from the given local assemblers.
virtual void calculateResiduals(const unsigned num_components, ExtrapolatableElementCollection const &extrapolatables, const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table)=0
static const double t