BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
laplace_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_laplace_3d_potential_operator_base_hpp
22 #define bempp_laplace_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 
52 template <typename Impl,
53  typename BasisFunctionType_, typename ResultType_ = BasisFunctionType_>
56  BasisFunctionType_,
57  typename ScalarTraits<ResultType_>::RealType,
58  ResultType_>
59 {
61  BasisFunctionType_,
63  ResultType_>
64  Base;
65 public:
70  typedef typename Base::KernelType KernelType;
72  typedef typename Base::ResultType ResultType;
82 
92 
93 private:
94  virtual const CollectionOfKernels& kernels() const;
96  trialTransformations() const;
97  virtual const KernelTrialIntegral& integral() const;
98 
99 private:
101  boost::scoped_ptr<Impl> m_impl;
103 };
104 
105 } // namespace Bempp
106 
107 #endif
Traits of scalar types.
Definition: scalar_traits.hpp:40
virtual const CollectionOfKernels & kernels() const
Return the collection of kernel functions occurring in the integrand of this operator.
Definition: laplace_3d_potential_operator_base_imp.hpp:64
Laplace3dPotentialOperatorBase & operator=(const Laplace3dPotentialOperatorBase &rhs)
Assignment operator.
Definition: laplace_3d_potential_operator_base_imp.hpp:53
Base::CollectionOfBasisTransformations CollectionOfBasisTransformations
Type of the appropriate instantiation of Fiber::CollectionOfBasisTransformations. ...
Definition: laplace_3d_potential_operator_base.hpp:77
ResultType_ ResultType
Type of the values of the (components of the) potential.
Definition: potential_operator.hpp:82
Base class for potential operators related to the Laplace equation in 3D.
Definition: laplace_3d_potential_operator_base.hpp:54
Base::ResultType ResultType
Type of the values of the potential.
Definition: laplace_3d_potential_operator_base.hpp:72
Base::CollectionOfKernels CollectionOfKernels
Type of the appropriate instantiation of Fiber::CollectionOfKernels.
Definition: laplace_3d_potential_operator_base.hpp:79
virtual const KernelTrialIntegral & integral() const
Return an object representing the integral used to evaluate the potential of a charge distribution...
Definition: laplace_3d_potential_operator_base_imp.hpp:82
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: laplace_3d_potential_operator_base.hpp:81
KernelType_ KernelType
Type of the values of the (components of the) kernel functions.
Definition: elementary_potential_operator.hpp:99
Base::KernelType KernelType
Type of the values of kernel functions.
Definition: laplace_3d_potential_operator_base.hpp:70
Definition: kernel_trial_integral.hpp:42
Elementary potential operator.
Definition: elementary_potential_operator.hpp:91
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: laplace_3d_potential_operator_base.hpp:68
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 ~Laplace3dPotentialOperatorBase()
Destructor.
Definition: laplace_3d_potential_operator_base_imp.hpp:46
virtual const CollectionOfBasisTransformations & trialTransformations() const
Return the collection of transformations of the charge distribution that occur in the weak form of th...
Definition: laplace_3d_potential_operator_base_imp.hpp:73
Laplace3dPotentialOperatorBase()
Constructor.
Definition: laplace_3d_potential_operator_base_imp.hpp:31
Base::CoordinateType CoordinateType
Type used to represent coordinates.
Definition: laplace_3d_potential_operator_base.hpp:74
Fiber::KernelTrialIntegral< BasisFunctionType, KernelType, ResultType > KernelTrialIntegral
Type of the appropriate instantiation of Fiber::KernelTrialIntegral.
Definition: elementary_potential_operator.hpp:127