BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
helmholtz_3d_potential_operator_base.hpp
1 // Copyright (C) 2011-2012 by the BEM++ Authors
2 //
3 // Permission is hereby granted, free of charge, to any person obtaining a copy
4 // of this software and associated documentation files (the "Software"), to deal
5 // in the Software without restriction, including without limitation the rights
6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 // copies of the Software, and to permit persons to whom the Software is
8 // furnished to do so, subject to the following conditions:
9 //
10 // The above copyright notice and this permission notice shall be included in
11 // all copies or substantial portions of the Software.
12 //
13 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 // THE SOFTWARE.
20 
21 #ifndef bempp_helmholtz_3d_potential_operator_base_hpp
22 #define bempp_helmholtz_3d_potential_operator_base_hpp
23 
24 #include "elementary_potential_operator.hpp"
25 
26 #include <boost/scoped_ptr.hpp>
27 
28 namespace Bempp
29 {
30 
43 template <typename Impl, typename BasisFunctionType_>
46  BasisFunctionType_,
47  typename ScalarTraits<BasisFunctionType_>::ComplexType,
48  typename ScalarTraits<BasisFunctionType_>::ComplexType>
49 {
51  BasisFunctionType_,
54  Base;
55 public:
60  typedef typename Base::KernelType KernelType;
62  typedef typename Base::ResultType ResultType;
72 
85 
87  KernelType waveNumber() const;
88 
89 private:
90  virtual const CollectionOfKernels& kernels() const;
92  trialTransformations() const;
93  virtual const KernelTrialIntegral& integral() const;
94 
95 private:
97  boost::scoped_ptr<Impl> m_impl;
99 };
100 
101 } // namespace Bempp
102 
103 #endif
Traits of scalar types.
Definition: scalar_traits.hpp:40
Base::CollectionOfBasisTransformations CollectionOfBasisTransformations
Type of the appropriate instantiation of Fiber::CollectionOfBasisTransformations. ...
Definition: helmholtz_3d_potential_operator_base.hpp:67
Base::CoordinateType CoordinateType
Type used to represent coordinates.
Definition: helmholtz_3d_potential_operator_base.hpp:64
Helmholtz3dPotentialOperatorBase & operator=(const Helmholtz3dPotentialOperatorBase &rhs)
Assignment operator.
Definition: helmholtz_3d_potential_operator_base_imp.hpp:64
virtual const KernelTrialIntegral & integral() const
Return an object representing the integral used to evaluate the potential of a charge distribution...
Definition: helmholtz_3d_potential_operator_base_imp.hpp:103
ScalarTraits< BasisFunctionType_ >::ComplexType ResultType
Type of the values of the (components of the) potential.
Definition: potential_operator.hpp:82
Base::CollectionOfKernels CollectionOfKernels
Type of the appropriate instantiation of Fiber::CollectionOfKernels.
Definition: helmholtz_3d_potential_operator_base.hpp:69
virtual ~Helmholtz3dPotentialOperatorBase()
Destructor.
Definition: helmholtz_3d_potential_operator_base_imp.hpp:57
Base class for potential operators for the Helmholtz equation in 3D.
Definition: helmholtz_3d_potential_operator_base.hpp:44
Base::ResultType ResultType
Type of the values of the potential.
Definition: helmholtz_3d_potential_operator_base.hpp:62
Helmholtz3dPotentialOperatorBase(KernelType waveNumber)
Constructor.
Definition: helmholtz_3d_potential_operator_base_imp.hpp:43
BasisFunctionType_ BasisFunctionType
Type of the values of the (components of the) basis functions into which functions acted upon by the ...
Definition: potential_operator.hpp:80
Base::KernelTrialIntegral KernelTrialIntegral
Type of the appropriate instantiation of Fiber::KernelTrialIntegral.
Definition: helmholtz_3d_potential_operator_base.hpp:71
KernelType_ KernelType
Type of the values of the (components of the) kernel functions.
Definition: elementary_potential_operator.hpp:99
Definition: kernel_trial_integral.hpp:42
Elementary potential operator.
Definition: elementary_potential_operator.hpp:91
KernelType waveNumber() const
Return the wave number set previously in the constructor.
Definition: helmholtz_3d_potential_operator_base_imp.hpp:76
Fiber::CollectionOfKernels< KernelType > CollectionOfKernels
Type of the appropriate instantiation of Fiber::CollectionOfKernels.
Definition: elementary_potential_operator.hpp:123
Base::BasisFunctionType BasisFunctionType
Type of the values of the basis functions into which functions acted upon by the operator are expande...
Definition: helmholtz_3d_potential_operator_base.hpp:58
Fiber::CollectionOfShapesetTransformations< CoordinateType > CollectionOfBasisTransformations
Type of the appropriate instantiation of Fiber::CollectionOfBasisTransformations. ...
Definition: elementary_potential_operator.hpp:120
ScalarTraits< ResultType >::RealType CoordinateType
Type used to represent coordinates.
Definition: potential_operator.hpp:84
virtual const CollectionOfBasisTransformations & trialTransformations() const
Return the collection of transformations of the charge distribution that occur in the weak form of th...
Definition: helmholtz_3d_potential_operator_base_imp.hpp:94
Base::KernelType KernelType
Type of the values of kernel functions.
Definition: helmholtz_3d_potential_operator_base.hpp:60
Fiber::KernelTrialIntegral< BasisFunctionType, KernelType, ResultType > KernelTrialIntegral
Type of the appropriate instantiation of Fiber::KernelTrialIntegral.
Definition: elementary_potential_operator.hpp:127
virtual const CollectionOfKernels & kernels() const
Return the collection of kernel functions occurring in the integrand of this operator.
Definition: helmholtz_3d_potential_operator_base_imp.hpp:85