21 #ifndef bempp_abstract_boundary_operator_hpp
22 #define bempp_abstract_boundary_operator_hpp
24 #include "../common/common.hpp"
26 #include "assembly_options.hpp"
27 #include "symmetry.hpp"
29 #include "../common/deprecated.hpp"
30 #include "../common/scalar_traits.hpp"
31 #include "../common/shared_ptr.hpp"
32 #include "../fiber/quadrature_strategy.hpp"
33 #include "../space/space.hpp"
43 template <
typename eT>
class Mat;
52 class AbstractBoundaryOperatorId;
54 class GeometryFactory;
55 template <
typename ValueType>
class DiscreteBoundaryOperator;
56 template <
typename BasisFunctionType,
typename ResultType>
class AbstractBoundaryOperatorSum;
57 template <
typename BasisFunctionType,
typename ResultType>
class Context;
58 template <
typename BasisFunctionType,
typename ResultType>
class ElementaryAbstractBoundaryOperator;
59 template <
typename BasisFunctionType,
typename ResultType>
class GridFunction;
60 template <
typename BasisFunctionType,
typename ResultType>
class ScaledAbstractBoundaryOperator;
89 template <
typename BasisFunctionType_,
typename ResultType_>
129 const std::string&
label,
159 shared_ptr<const Space<BasisFunctionType> >
domain()
const;
165 shared_ptr<const Space<BasisFunctionType> >
range()
const;
171 shared_ptr<const Space<BasisFunctionType> >
dualToRange()
const;
178 std::string
label()
const;
200 virtual bool isLocal()
const = 0;
231 shared_ptr<GeometryFactory>& testGeometryFactory,
232 shared_ptr<GeometryFactory>& trialGeometryFactory,
237 shared_ptr<Fiber::OpenClHandler>& openClHandler,
238 bool& cacheSingularIntegrals)
const;
245 shared_ptr<GeometryFactory>& testGeometryFactory,
246 shared_ptr<GeometryFactory>& trialGeometryFactory,
250 trialShapesets)
const;
258 shared_ptr<Fiber::OpenClHandler>& openClHandler,
259 bool& cacheSingularIntegrals)
const;
265 virtual shared_ptr<DiscreteBoundaryOperator<ResultType> >
272 shared_ptr<const Space<BasisFunctionType> > m_domain;
273 shared_ptr<const Space<BasisFunctionType> > m_range;
274 shared_ptr<const Space<BasisFunctionType> > m_dualToRange;
Traits of scalar types.
Definition: scalar_traits.hpp:40
virtual bool isLocal() const =0
Return whether this operator is local.
std::string label() const
Return the label of the operator.
Definition: abstract_boundary_operator.cpp:149
void collectOptionsDependentDataForAssemblerConstruction(const AssemblyOptions &options, const shared_ptr< Fiber::RawGridGeometry< CoordinateType > > &testRawGeometry, const shared_ptr< Fiber::RawGridGeometry< CoordinateType > > &trialRawGeometry, shared_ptr< Fiber::OpenClHandler > &openClHandler, bool &cacheSingularIntegrals) const
Construct those objects necessary for subsequent local assembler construction that depend on assembly...
Definition: abstract_boundary_operator.cpp:218
virtual BEMPP_DEPRECATED shared_ptr< const AbstractBoundaryOperatorId > id() const
Return the identifier of this operator.
Definition: abstract_boundary_operator.cpp:105
Base class for quadrature strategies.
Definition: quadrature_strategy.hpp:242
void collectDataForAssemblerConstruction(const AssemblyOptions &options, shared_ptr< Fiber::RawGridGeometry< CoordinateType > > &testRawGeometry, shared_ptr< Fiber::RawGridGeometry< CoordinateType > > &trialRawGeometry, shared_ptr< GeometryFactory > &testGeometryFactory, shared_ptr< GeometryFactory > &trialGeometryFactory, shared_ptr< std::vector< const Fiber::Shapeset< BasisFunctionType_ > * > > &testShapesets, shared_ptr< std::vector< const Fiber::Shapeset< BasisFunctionType_ > * > > &trialShapesets, shared_ptr< Fiber::OpenClHandler > &openClHandler, bool &cacheSingularIntegrals) const
Given an AssemblyOptions object, construct objects necessary for subsequent local assembler construct...
Definition: abstract_boundary_operator.cpp:163
shared_ptr< DiscreteBoundaryOperator< ResultType_ > > assembleWeakForm(const Context< BasisFunctionType_, ResultType_ > &context) const
Assemble and return the operator's weak form.
Definition: abstract_boundary_operator.cpp:120
Function space.
Definition: assembled_potential_operator.hpp:35
AbstractBoundaryOperator(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)
Constructor.
Definition: abstract_boundary_operator.cpp:46
#define BEMPP_DEPRECATED
Macro used to mark deprecated functions or classes.
Definition: deprecated.hpp:41
virtual shared_ptr< DiscreteBoundaryOperator< ResultType > > assembleWeakFormImpl(const Context< BasisFunctionType, ResultType > &context) const =0
Assemble and return the operator's weak form.
void collectOptionsIndependentDataForAssemblerConstruction(shared_ptr< Fiber::RawGridGeometry< CoordinateType > > &testRawGeometry, shared_ptr< Fiber::RawGridGeometry< CoordinateType > > &trialRawGeometry, shared_ptr< GeometryFactory > &testGeometryFactory, shared_ptr< GeometryFactory > &trialGeometryFactory, shared_ptr< std::vector< const Fiber::Shapeset< BasisFunctionType_ > * > > &testShapesets, shared_ptr< std::vector< const Fiber::Shapeset< BasisFunctionType_ > * > > &trialShapesets) const
Construct those objects necessary for subsequent local assembler construction that are independent fr...
Definition: abstract_boundary_operator.cpp:187
Assembly context.
Definition: context.hpp:30
BasisFunctionType_ BasisFunctionType
Type of the values of the (components of the) basis functions into which functions acted upon by the ...
Definition: abstract_boundary_operator.hpp:95
virtual ~AbstractBoundaryOperator()
Destructor.
Definition: abstract_boundary_operator.cpp:99
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
Collection of shape functions defined on a reference element.
Definition: default_local_assembler_for_operators_on_surfaces_utilities.hpp:34
Abstract (non-discretized) boundary operator.
Definition: abstract_boundary_operator.hpp:90
ScalarTraits< ResultType >::RealType CoordinateType
Type used to represent coordinates.
Definition: abstract_boundary_operator.hpp:99
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
ResultType_ ResultType
Type used to represent elements of the weak form of the operator.
Definition: abstract_boundary_operator.hpp:97
Definition: default_local_assembler_for_operators_on_surfaces_utilities.hpp:35
static std::string uniqueLabel()
Generate and return a new unique label "OpN", where N is a number.
Definition: abstract_boundary_operator.cpp:112
Fiber::QuadratureStrategy< BasisFunctionType, ResultType, GeometryFactory > QuadratureStrategy
Type of the appropriate instantiation of Fiber::QuadratureStrategy.
Definition: abstract_boundary_operator.hpp:102
Options determining how weak-form assembly is done.
Definition: assembly_options.hpp:43