21 #ifndef fiber_modified_helmholtz_3d_hypersingular_kernel_interpolated_functor_hpp
22 #define fiber_modified_helmholtz_3d_hypersingular_kernel_interpolated_functor_hpp
24 #include "../common/common.hpp"
26 #include "geometrical_data.hpp"
27 #include "scalar_traits.hpp"
29 #include "modified_helmholtz_3d_single_layer_potential_kernel_interpolated_functor.hpp"
52 template <
typename ValueType_>
56 typedef ValueType_ ValueType;
61 CoordinateType maxDist,
int interpPtsPerWavelength) :
62 m_slpKernel(waveNumber, maxDist, interpPtsPerWavelength)
65 int kernelCount()
const {
return 2; }
66 int kernelRowCount(
int )
const {
return 1; }
67 int kernelColCount(
int )
const {
return 1; }
69 void addGeometricalDependencies(
size_t& testGeomDeps,
size_t& trialGeomDeps)
const {
70 m_slpKernel.addGeometricalDependencies(testGeomDeps, trialGeomDeps);
73 ValueType waveNumber()
const {
return m_slpKernel.waveNumber(); }
75 template <
template <
typename T>
class CollectionOf2dSlicesOfNdArrays>
79 CollectionOf2dSlicesOfNdArrays<ValueType>& result)
const {
81 m_slpKernel.evaluate(testGeomData, trialGeomData, result);
82 result[1](0, 0) = result[0](0, 0) *
83 m_slpKernel.waveNumber() * m_slpKernel.waveNumber();
86 CoordinateType estimateRelativeScale(CoordinateType distance)
const {
87 return m_slpKernel.estimateRelativeScale(distance);
Traits of scalar types.
Definition: scalar_traits.hpp:40
Single-layer-potential kernel functor for the modified Helmholtz equation in 3D.
Definition: modified_helmholtz_3d_single_layer_potential_kernel_interpolated_functor.hpp:52
Hypersingular kernel collection functor for the modified Helmholtz equation in 3D.
Definition: modified_helmholtz_3d_hypersingular_kernel_interpolated_functor.hpp:53
Access to slices of geometrical data.
Definition: geometrical_data.hpp:88