11 #ifndef BEMBEL_SRC_LINEARFORM_DIRICHLETTRACE_HPP_
12 #define BEMBEL_SRC_LINEARFORM_DIRICHLETTRACE_HPP_
16 template <
typename Scalar>
19 template <
typename ScalarT>
21 typedef ScalarT Scalar;
30 template <
typename Scalar>
34 void set_function(
const std::function<Scalar(Eigen::Vector3d)> &
function) {
38 void evaluateIntegrand_impl(
40 Eigen::Matrix<Scalar, Eigen::Dynamic, 1> *intval)
const {
41 auto polynomial_degree = super_space.get_polynomial_degree();
42 auto polynomial_degree_plus_one_squared =
43 (polynomial_degree + 1) * (polynomial_degree + 1);
46 auto s = p.segment<2>(0);
52 auto x_f = p.segment<3>(3);
53 auto x_f_dx = p.segment<3>(6);
54 auto x_f_dy = p.segment<3>(9);
57 auto x_kappa = x_f_dx.cross(x_f_dy).norm();
60 auto integrand = function_(x_f) * x_kappa * ws;
63 super_space.addScaledBasis(intval, integrand, s);
69 std::function<Scalar(Eigen::Vector3d)> function_;
This class provides an implementation of the Dirichlet trace operator and a corresponding method to e...
Eigen::Matrix< double, 12, 1 > SurfacePoint
typedef of SurfacePoint
Routines for the evalutation of pointwise errors.