11#ifndef BEMBEL_SRC_POTENTIAL_DISCRETEPOTENTIAL_HPP_
12#define BEMBEL_SRC_POTENTIAL_DISCRETEPOTENTIAL_HPP_
20template <
typename Derived,
typename LinOp>
49 evaluate(
const Eigen::Matrix<double, Eigen::Dynamic, 3> &points) {
50 auto FunctionSpaceVectorDimension =
62 auto polynomial_degree =
super_space.get_polynomial_degree();
63 auto polynomial_degree_plus_one_squared =
64 (polynomial_degree + 1) * (polynomial_degree + 1);
89#pragma omp single nowait
92 for (
auto j = 0;
j <
Q.w_.size(); ++
j) {
96 for (
auto i = 0;
i < points.rows(); ++
i) {
111 void set_cauchy_data(
112 const Eigen::Matrix<
typename LinearOperatorTraits<LinOp>::Scalar,
116 void set_degree(
const int °) { deg_ = deg; }
120 Derived &get_potential() {
return pot_; }
127 AnsatzSpace<LinOp> ansatz_space_;
128 FunctionEvaluator<LinOp> fun_ev_;
The AnsatzSpace is the class that handles the assembly of the discrete basis.
int get_polynomial_degree() const
Retrieves the polynomial degree of this AnsatzSpace.
const SuperSpace< Derived > & get_superspace() const
Retrieves the reference to the SuperSpace associated with this AnsatzSpace.
void init_DiscretePotential(const AnsatzSpace< LinOp > &ansatz_space)
This class organizes an element structure on a Geometry object and handles refinement.
int get_number_of_elements() const
Return number of elements in the ElementTree.
The FunctionEvaluator provides means to evaluate coefficient vectors as functions on the geometry.
Eigen::Matrix< double, 12, 1 > SurfacePoint
typedef of SurfacePoint
Routines for the evalutation of pointwise errors.
constexpr int getFunctionSpaceOutputDimension()
struct containing specifications on the linear operator has to be specialized or derived for any part...
Base case for specifying the return type of the potential.
struct containing specifications on the functional has to be specialized or derived for any particula...