11#ifndef BEMBEL_SRC_HELMHOLTZ_DOUBLELAYERPOTENTIAL_HPP_
12#define BEMBEL_SRC_HELMHOLTZ_DOUBLELAYERPOTENTIAL_HPP_
17template <
typename LinOp>
18class HelmholtzDoubleLayerPotential;
20template <
typename LinOp>
22 typedef Eigen::VectorXcd::Scalar Scalar;
23 static constexpr int OutputSpaceDimension = 1;
29template <
typename LinOp>
31 :
public PotentialBase<HelmholtzDoubleLayerPotential<LinOp>, LinOp> {
38 std::complex<double>>::Scalar,
42 const Eigen::Vector3d &
point,
45 auto s =
p.segment<2>(0);
51 auto x_f =
p.segment<3>(3);
72 const Eigen::Vector3d &
y,
73 const Eigen::Vector3d &
y_n)
const {
77 auto i = std::complex<double>(0., 1.);
78 return c.dot(
y_n) * std::exp(-
i * wavenumber_ *
r) *
79 (1. +
i * wavenumber_ *
r) / 4. / BEMBEL_PI /
r3;
84 void set_wavenumber(std::complex<double>
wavenumber) {
90 std::complex<double> get_wavenumber() {
return wavenumber_; }
93 std::complex<double> wavenumber_;
The ElementTreeNode corresponds to an element in the element tree.
The FunctionEvaluator provides means to evaluate coefficient vectors as functions on the geometry.
std::complex< double > evaluateKernelGrad(const Eigen::Vector3d &x, const Eigen::Vector3d &y, const Eigen::Vector3d &y_n) const
Gradient of fundamental solution of Helmholtz problem.
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...
functional base class. this serves as a common interface for existing functionals.
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...