BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
general_elementary_singular_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_elementary_singular_integral_operator_hpp
22 #define bempp_general_elementary_singular_integral_operator_hpp
23 
24 #include "elementary_singular_integral_operator.hpp"
25 
26 namespace Bempp
27 {
28 
58 template <typename BasisFunctionType_, typename KernelType_, typename ResultType_>
61  BasisFunctionType_, KernelType_, ResultType_>
62 {
64  BasisFunctionType_, KernelType_, ResultType_> Base;
65 public:
70  typedef typename Base::KernelType KernelType;
72  typedef typename Base::ResultType ResultType;
85 
130  template <typename KernelFunctor,
131  typename TestTransformationsFunctor,
132  typename TrialTransformationsFunctor,
133  typename IntegrandFunctor>
135  const shared_ptr<const Space<BasisFunctionType_> >& domain,
136  const shared_ptr<const Space<BasisFunctionType_> >& range,
137  const shared_ptr<const Space<BasisFunctionType_> >& dualToRange,
138  const std::string& label,
139  int symmetry,
140  const KernelFunctor& kernelFunctor,
141  const TestTransformationsFunctor& testTransformationsFunctor,
142  const TrialTransformationsFunctor& trialTransformationsFunctor,
143  const IntegrandFunctor& integrandFunctor);
144 
151  template <typename KernelFunctor,
152  typename TestTransformationsFunctor,
153  typename TrialTransformationsFunctor>
155  const shared_ptr<const Space<BasisFunctionType_> >& domain,
156  const shared_ptr<const Space<BasisFunctionType_> >& range,
157  const shared_ptr<const Space<BasisFunctionType_> >& dualToRange,
158  const std::string& label,
159  int symmetry,
160  const KernelFunctor& kernelFunctor,
161  const TestTransformationsFunctor& testTransformationsFunctor,
162  const TrialTransformationsFunctor& trialTransformationsFunctor,
163  const shared_ptr<Fiber::TestKernelTrialIntegral<
164  BasisFunctionType_, KernelType_, ResultType_> >& integral);
165 
175  const shared_ptr<const Space<BasisFunctionType_> >& domain,
176  const shared_ptr<const Space<BasisFunctionType_> >& range,
177  const shared_ptr<const Space<BasisFunctionType_> >& dualToRange,
178  const std::string& label,
179  int symmetry,
185  const shared_ptr<Fiber::TestKernelTrialIntegral<
186  BasisFunctionType_, KernelType_, ResultType_> >& integral);
187 
188  virtual const CollectionOfKernels& kernels() const
189  { return *m_kernels; }
191  { return *m_testTransformations; }
193  { return *m_trialTransformations; }
194  virtual const TestKernelTrialIntegral& integral() const
195  { return *m_integral; }
196 
197 private:
199  shared_ptr<CollectionOfKernels> m_kernels;
200  shared_ptr<CollectionOfShapesetTransformations> m_testTransformations;
201  shared_ptr<CollectionOfShapesetTransformations> m_trialTransformations;
202  shared_ptr<TestKernelTrialIntegral> m_integral;
204 };
205 
206 } // namespace Bempp
207 
208 #endif
GeneralElementarySingularIntegralOperator(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)
Constructor.
Definition: general_elementary_singular_integral_operator_imp.hpp:40
An integral representing the weak form of an integral operator.
Definition: test_kernel_trial_integral.hpp:70
std::string label() const
Return the label of the operator.
Definition: abstract_boundary_operator.cpp:149
Base::CoordinateType CoordinateType
Type used to represent coordinates.
Definition: general_elementary_singular_integral_operator.hpp:74
Collection of kernels.
Definition: collection_of_kernels.hpp:59
virtual const CollectionOfShapesetTransformations & testTransformations() const
Return the collection of test function transformations occurring in the weak form of this operator...
Definition: general_elementary_singular_integral_operator.hpp:190
Base::TestKernelTrialIntegral TestKernelTrialIntegral
Type of the appropriate instantiation of Fiber::TestKernelTrialIntegral.
Definition: general_elementary_singular_integral_operator.hpp:84
Elementary boundary integral operator with weak form whose integrand has a singularity at origin...
Definition: elementary_singular_integral_operator.hpp:35
Base::BasisFunctionType BasisFunctionType
Type of the values of the (components of the) basis functions into which functions acted upon by the ...
Definition: elementary_integral_operator_base.hpp:59
Base::ResultType ResultType
Type used to represent elements of the weak form of the operator.
Definition: elementary_integral_operator_base.hpp:61
Function space.
Definition: assembled_potential_operator.hpp:35
Base::CollectionOfKernels CollectionOfKernels
Type of the appropriate instantiation of Fiber::CollectionOfKernels.
Definition: elementary_singular_integral_operator.hpp:55
Standard implementation of an elementary singular integral operator.
Definition: general_elementary_singular_integral_operator.hpp:59
Base::ResultType ResultType
Type used to represent elements of the weak form of the operator.
Definition: general_elementary_singular_integral_operator.hpp:72
Base::KernelType KernelType
Type of the values of kernel functions.
Definition: general_elementary_singular_integral_operator.hpp:70
Base class of ElementaryIntegralOperator, containing functionality independent from KernelType...
Definition: elementary_integral_operator_base.hpp:53
shared_ptr< const Space< BasisFunctionType > > range() const
Range.
Definition: abstract_boundary_operator.cpp:135
Base::CollectionOfBasisTransformations CollectionOfBasisTransformations
Type of the appropriate instantiation of Fiber::CollectionOfBasisTransformations. ...
Definition: elementary_singular_integral_operator.hpp:50
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_elementary_singular_integral_operator.hpp:82
Base::TestKernelTrialIntegral TestKernelTrialIntegral
Type of the appropriate instantiation of Fiber::TestKernelTrialIntegral.
Definition: elementary_singular_integral_operator.hpp:57
shared_ptr< const Space< BasisFunctionType > > dualToRange() const
Dual to range.
Definition: abstract_boundary_operator.cpp:142
shared_ptr< const Space< BasisFunctionType > > domain() const
Domain.
Definition: abstract_boundary_operator.cpp:128
Base::CollectionOfShapesetTransformations CollectionOfShapesetTransformations
Type of the appropriate instantiation of Fiber::CollectionOfShapesetTransformations.
Definition: general_elementary_singular_integral_operator.hpp:77
Base::CollectionOfShapesetTransformations CollectionOfShapesetTransformations
Type of the appropriate instantiation of Fiber::CollectionOfShapesetTransformations.
Definition: elementary_singular_integral_operator.hpp:53
Base::BasisFunctionType BasisFunctionType
Type of the values of the basis functions into which functions acted upon by the operator are expande...
Definition: general_elementary_singular_integral_operator.hpp:68
Base::CollectionOfBasisTransformations CollectionOfBasisTransformations
Type of the appropriate instantiation of Fiber::CollectionOfBasisTransformations. ...
Definition: general_elementary_singular_integral_operator.hpp:80
Base::KernelType KernelType
Type of the values of the (components of the) kernel functions.
Definition: elementary_singular_integral_operator.hpp:43
virtual const CollectionOfKernels & kernels() const
Return the collection of kernel functions occurring in the weak form of this operator.
Definition: general_elementary_singular_integral_operator.hpp:188
virtual const TestKernelTrialIntegral & integral() const
Return an object representing the integral that is the weak form of this operator.
Definition: general_elementary_singular_integral_operator.hpp:194
virtual const CollectionOfShapesetTransformations & trialTransformations() const
Return the collection of trial function transformations occurring in the weak form of this operator...
Definition: general_elementary_singular_integral_operator.hpp:192
Base::CoordinateType CoordinateType
Type used to represent coordinates.
Definition: elementary_integral_operator_base.hpp:63