BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
general_hypersingular_integral_operator.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_general_hypersingular_integral_operator_hpp
22 #define bempp_general_hypersingular_integral_operator_hpp
23 
24 #include "hypersingular_integral_operator.hpp"
25 
26 namespace Bempp
27 {
28 
64 template <typename BasisFunctionType_, typename KernelType_, typename ResultType_>
67  BasisFunctionType_, KernelType_, ResultType_>
68 {
70  BasisFunctionType_, KernelType_, ResultType_> Base;
71 public:
76  typedef typename Base::KernelType KernelType;
78  typedef typename Base::ResultType ResultType;
91 
156  template <typename KernelFunctor,
157  typename TestTransformationsFunctor,
158  typename TrialTransformationsFunctor,
159  typename IntegrandFunctor,
160  typename OffDiagonalKernelFunctor,
161  typename OffDiagonalTestTransformationsFunctor,
162  typename OffDiagonalTrialTransformationsFunctor,
163  typename OffDiagonalIntegrandFunctor>
165  const shared_ptr<const Space<BasisFunctionType_> >& domain,
166  const shared_ptr<const Space<BasisFunctionType_> >& range,
167  const shared_ptr<const Space<BasisFunctionType_> >& dualToRange,
168  const std::string& label,
169  int symmetry,
170  const KernelFunctor& kernelFunctor,
171  const TestTransformationsFunctor& testTransformationsFunctor,
172  const TrialTransformationsFunctor& trialTransformationsFunctor,
173  const IntegrandFunctor& integrandFunctor,
174  const OffDiagonalKernelFunctor& offDiagonalKernelFunctor,
175  const OffDiagonalTestTransformationsFunctor& offDiagonalTestTransformationsFunctor,
176  const OffDiagonalTrialTransformationsFunctor& offDiagonalTrialTransformationsFunctor,
177  const OffDiagonalIntegrandFunctor& offDiagonalIntegrandFunctor);
178 
186  template <typename KernelFunctor,
187  typename TestTransformationsFunctor,
188  typename TrialTransformationsFunctor,
189  typename OffDiagonalKernelFunctor,
190  typename OffDiagonalTestTransformationsFunctor,
191  typename OffDiagonalTrialTransformationsFunctor>
193  const shared_ptr<const Space<BasisFunctionType_> >& domain,
194  const shared_ptr<const Space<BasisFunctionType_> >& range,
195  const shared_ptr<const Space<BasisFunctionType_> >& dualToRange,
196  const std::string& label,
197  int symmetry,
198  const KernelFunctor& kernelFunctor,
199  const TestTransformationsFunctor& testTransformationsFunctor,
200  const TrialTransformationsFunctor& trialTransformationsFunctor,
201  const shared_ptr<Fiber::TestKernelTrialIntegral<
202  BasisFunctionType_, KernelType_, ResultType_> >& integral,
203  const OffDiagonalKernelFunctor& offDiagonalKernelFunctor,
204  const OffDiagonalTestTransformationsFunctor& offDiagonalTestTransformationsFunctor,
205  const OffDiagonalTrialTransformationsFunctor& offDiagonalTrialTransformationsFunctor,
206  const shared_ptr<Fiber::TestKernelTrialIntegral<
207  BasisFunctionType_, KernelType_, ResultType_> >& offDiagonalIntegral);
208 
209  virtual const CollectionOfKernels& kernels() const
210  { return *m_kernels; }
212  { return *m_testTransformations; }
214  { return *m_trialTransformations; }
215  virtual const TestKernelTrialIntegral& integral() const
216  { return *m_integral; }
217 
219  { return *m_offDiagonalKernels; }
221  { return *m_offDiagonalTestTransformations; }
223  { return *m_offDiagonalTrialTransformations; }
225  { return *m_offDiagonalIntegral; }
226 
227 private:
229  shared_ptr<CollectionOfKernels> m_kernels;
230  shared_ptr<CollectionOfShapesetTransformations> m_testTransformations;
231  shared_ptr<CollectionOfShapesetTransformations> m_trialTransformations;
232  shared_ptr<TestKernelTrialIntegral> m_integral;
233  shared_ptr<CollectionOfKernels> m_offDiagonalKernels;
234  shared_ptr<CollectionOfShapesetTransformations> m_offDiagonalTestTransformations;
235  shared_ptr<CollectionOfShapesetTransformations> m_offDiagonalTrialTransformations;
236  shared_ptr<TestKernelTrialIntegral> m_offDiagonalIntegral;
238 };
239 
240 } // namespace Bempp
241 
242 #endif
virtual const CollectionOfKernels & kernels() const
Return the collection of kernel functions occurring in the weak form of this operator.
Definition: general_hypersingular_integral_operator.hpp:209
Base::BasisFunctionType BasisFunctionType
Type of the values of the basis functions into which functions acted upon by the operator are expande...
Definition: general_hypersingular_integral_operator.hpp:74
std::string label() const
Return the label of the operator.
Definition: abstract_boundary_operator.cpp:149
virtual const CollectionOfShapesetTransformations & offDiagonalTrialTransformations() const
Return the collection of trial-function transformations occurring in the second representation of the...
Definition: general_hypersingular_integral_operator.hpp:222
Base::CollectionOfBasisTransformations CollectionOfBasisTransformations
Type of the appropriate instantiation of Fiber::CollectionOfBasisTransformations. ...
Definition: general_hypersingular_integral_operator.hpp:86
GeneralHypersingularIntegralOperator(const shared_ptr< const Space< BasisFunctionType_ > > &domain, const shared_ptr< const Space< BasisFunctionType_ > > &range, const shared_ptr< const Space< BasisFunctionType_ > > &dualToRange, const std::string &label, int symmetry, const KernelFunctor &kernelFunctor, const TestTransformationsFunctor &testTransformationsFunctor, const TrialTransformationsFunctor &trialTransformationsFunctor, const IntegrandFunctor &integrandFunctor, const OffDiagonalKernelFunctor &offDiagonalKernelFunctor, const OffDiagonalTestTransformationsFunctor &offDiagonalTestTransformationsFunctor, const OffDiagonalTrialTransformationsFunctor &offDiagonalTrialTransformationsFunctor, const OffDiagonalIntegrandFunctor &offDiagonalIntegrandFunctor)
Constructor.
Definition: general_hypersingular_integral_operator_imp.hpp:44
virtual const CollectionOfShapesetTransformations & testTransformations() const
Return the collection of test-function transformations occurring in the first representation of the w...
Definition: general_hypersingular_integral_operator.hpp:211
Function space.
Definition: assembled_potential_operator.hpp:35
Base::ResultType ResultType
Type used to represent elements of the weak form of the operator.
Definition: general_hypersingular_integral_operator.hpp:78
Standard implementation of a hypersingular singular integral operator.
Definition: general_hypersingular_integral_operator.hpp:65
Base::KernelType KernelType
Type of the values of kernel functions.
Definition: general_hypersingular_integral_operator.hpp:76
Base::CoordinateType CoordinateType
Type used to represent coordinates.
Definition: hypersingular_integral_operator.hpp:115
shared_ptr< const Space< BasisFunctionType > > range() const
Range.
Definition: abstract_boundary_operator.cpp:135
int symmetry() const
Return the symmetry properties of the operator.
Definition: abstract_boundary_operator.cpp:156
Base::CollectionOfKernels CollectionOfKernels
Type of the appropriate instantiation of Fiber::CollectionOfKernels.
Definition: general_hypersingular_integral_operator.hpp:88
shared_ptr< const Space< BasisFunctionType > > dualToRange() const
Dual to range.
Definition: abstract_boundary_operator.cpp:142
virtual const CollectionOfShapesetTransformations & offDiagonalTestTransformations() const
Return the collection of test-function transformations occurring in the second representation of the ...
Definition: general_hypersingular_integral_operator.hpp:220
Hypersingular integral boundary operator.
Definition: hypersingular_integral_operator.hpp:105
shared_ptr< const Space< BasisFunctionType > > domain() const
Domain.
Definition: abstract_boundary_operator.cpp:128
virtual const TestKernelTrialIntegral & offDiagonalIntegral() const
Return an object representing the integral that is the second representation of the weak form of this...
Definition: general_hypersingular_integral_operator.hpp:224
Base::TestKernelTrialIntegral TestKernelTrialIntegral
Type of the appropriate instantiation of Fiber::TestKernelTrialIntegral.
Definition: general_hypersingular_integral_operator.hpp:90
Base::BasisFunctionType BasisFunctionType
Type of the values of the (components of the) basis functions into which functions acted upon by the ...
Definition: hypersingular_integral_operator.hpp:111
Base::CollectionOfShapesetTransformations CollectionOfShapesetTransformations
Type of the appropriate instantiation of Fiber::CollectionOfShapesetTransformations.
Definition: general_hypersingular_integral_operator.hpp:83
Base::CoordinateType CoordinateType
Type used to represent coordinates.
Definition: general_hypersingular_integral_operator.hpp:80
virtual const CollectionOfKernels & offDiagonalKernels() const
Return the collection of kernel functions occurring in the in the second representation of the weak f...
Definition: general_hypersingular_integral_operator.hpp:218
virtual const CollectionOfShapesetTransformations & trialTransformations() const
Return the collection of trial-function transformations occurring in the first representation of the ...
Definition: general_hypersingular_integral_operator.hpp:213
virtual const TestKernelTrialIntegral & integral() const
Return an object representing the integral that is the first representation of the weak form of this ...
Definition: general_hypersingular_integral_operator.hpp:215
KernelType_ KernelType
Type of the values of the (components of the) kernel functions.
Definition: hypersingular_integral_operator.hpp:121
Base::ResultType ResultType
Type used to represent elements of the weak form of the operator.
Definition: hypersingular_integral_operator.hpp:113