BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
Bempp::AbstractBoundaryOperatorSum< BasisFunctionType_, ResultType_ > Class Template Reference

Sum of two abstract boundary operators. More...

#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/assembly/abstract_boundary_operator_sum.hpp>

Inheritance diagram for Bempp::AbstractBoundaryOperatorSum< BasisFunctionType_, ResultType_ >:
Bempp::AbstractBoundaryOperatorSuperpositionBase< BasisFunctionType_, ResultType_ > Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >

Public Types

typedef Base::BasisFunctionType BasisFunctionType
 Type of the values of the (components of the) basis functions into which functions acted upon by the operator are expanded. More...
 
typedef Base::ResultType ResultType
 Type used to represent elements of the weak form of the operator. More...
 
typedef Base::CoordinateType CoordinateType
 Type used to represent coordinates. More...
 
typedef Base::QuadratureStrategy QuadratureStrategy
 Type of the appropriate instantiation of Fiber::QuadratureStrategy. More...
 
typedef Base::LocalAssembler LocalAssembler
 Type of the appropriate instantiation of Fiber::LocalAssemblerForOperators. More...
 
- Public Types inherited from Bempp::AbstractBoundaryOperatorSuperpositionBase< BasisFunctionType_, ResultType_ >
typedef Base::BasisFunctionType BasisFunctionType
 Type of the values of the (components of the) basis functions into which functions acted upon by the operator are expanded. More...
 
typedef Base::ResultType ResultType
 Type used to represent elements of the weak form of the operator. More...
 
typedef Base::CoordinateType CoordinateType
 Type used to represent coordinates. More...
 
typedef Base::QuadratureStrategy QuadratureStrategy
 Type of the appropriate instantiation of Fiber::QuadratureStrategy. More...
 
typedef
Fiber::LocalAssemblerForIntegralOperators
< ResultType
LocalAssembler
 Type of the appropriate instantiation of Fiber::LocalAssemblerForOperators.
 
- Public Types inherited from Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >
typedef BasisFunctionType_ BasisFunctionType
 Type of the values of the (components of the) basis functions into which functions acted upon by the operator are expanded.
 
typedef ResultType_ ResultType
 Type used to represent elements of the weak form of the operator.
 
typedef ScalarTraits
< ResultType >::RealType 
CoordinateType
 Type used to represent coordinates.
 
typedef
Fiber::QuadratureStrategy
< BasisFunctionType,
ResultType, GeometryFactory
QuadratureStrategy
 Type of the appropriate instantiation of Fiber::QuadratureStrategy.
 

Public Member Functions

 AbstractBoundaryOperatorSum (const BoundaryOperator< BasisFunctionType, ResultType > &term1, const BoundaryOperator< BasisFunctionType, ResultType > &term2, int symmetry=AUTO_SYMMETRY)
 Constructor. More...
 
virtual bool isLocal () const
 Return whether this operator is local. More...
 
BoundaryOperator
< BasisFunctionType_,
ResultType_ > 
term1 () const
 
BoundaryOperator
< BasisFunctionType_,
ResultType_ > 
term2 () const
 
- Public Member Functions inherited from Bempp::AbstractBoundaryOperatorSuperpositionBase< BasisFunctionType_, ResultType_ >
 AbstractBoundaryOperatorSuperpositionBase (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. More...
 
- Public Member Functions inherited from Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >
 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. More...
 
virtual ~AbstractBoundaryOperator ()
 Destructor.
 
virtual BEMPP_DEPRECATED
shared_ptr< const
AbstractBoundaryOperatorId
id () const
 Return the identifier of this operator. More...
 
shared_ptr< const Space
< BasisFunctionType > > 
domain () const
 Domain. More...
 
shared_ptr< const Space
< BasisFunctionType > > 
range () const
 Range. More...
 
shared_ptr< const Space
< BasisFunctionType > > 
dualToRange () const
 Dual to range. More...
 
std::string label () const
 Return the label of the operator.
 
int symmetry () const
 Return the symmetry properties of the operator. More...
 
shared_ptr
< DiscreteBoundaryOperator
< ResultType_ > > 
assembleWeakForm (const Context< BasisFunctionType_, ResultType_ > &context) const
 Assemble and return the operator's weak form. More...
 

Private Types

typedef
AbstractBoundaryOperatorSuperpositionBase
< BasisFunctionType_,
ResultType_ > 
Base
 

Private Attributes

BoundaryOperator
< BasisFunctionType,
ResultType
m_term1
 
BoundaryOperator
< BasisFunctionType,
ResultType
m_term2
 

Additional Inherited Members

- Static Public Member Functions inherited from Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >
static std::string uniqueLabel ()
 Generate and return a new unique label "OpN", where N is a number.
 
- Protected Member Functions inherited from Bempp::AbstractBoundaryOperatorSuperpositionBase< BasisFunctionType_, ResultType_ >
virtual shared_ptr
< DiscreteBoundaryOperator
< ResultType_ > > 
assembleWeakFormImpl (const Context< BasisFunctionType, ResultType > &context) const
 Assemble and return the operator's weak form. More...
 
- Protected Member Functions inherited from Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >
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 construction.
 
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 from assembly options.
 
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 options.
 

Detailed Description

template<typename BasisFunctionType_, typename ResultType_>
class Bempp::AbstractBoundaryOperatorSum< BasisFunctionType_, ResultType_ >

Sum of two abstract boundary operators.

This class represents a sum of two boundary operators.

Member Typedef Documentation

template<typename BasisFunctionType_ , typename ResultType_ >
typedef Base::BasisFunctionType Bempp::AbstractBoundaryOperatorSum< BasisFunctionType_, ResultType_ >::BasisFunctionType

Type of the values of the (components of the) basis functions into which functions acted upon by the operator are expanded.

template<typename BasisFunctionType_ , typename ResultType_ >
typedef Base::CoordinateType Bempp::AbstractBoundaryOperatorSum< BasisFunctionType_, ResultType_ >::CoordinateType

Type used to represent coordinates.

template<typename BasisFunctionType_ , typename ResultType_ >
typedef Base::LocalAssembler Bempp::AbstractBoundaryOperatorSum< BasisFunctionType_, ResultType_ >::LocalAssembler

Type of the appropriate instantiation of Fiber::LocalAssemblerForOperators.

template<typename BasisFunctionType_ , typename ResultType_ >
typedef Base::QuadratureStrategy Bempp::AbstractBoundaryOperatorSum< BasisFunctionType_, ResultType_ >::QuadratureStrategy

Type of the appropriate instantiation of Fiber::QuadratureStrategy.

template<typename BasisFunctionType_ , typename ResultType_ >
typedef Base::ResultType Bempp::AbstractBoundaryOperatorSum< BasisFunctionType_, ResultType_ >::ResultType

Type used to represent elements of the weak form of the operator.

Constructor & Destructor Documentation

template<typename BasisFunctionType_ , typename ResultType_ >
Bempp::AbstractBoundaryOperatorSum< BasisFunctionType_, ResultType_ >::AbstractBoundaryOperatorSum ( const BoundaryOperator< BasisFunctionType, ResultType > &  term1,
const BoundaryOperator< BasisFunctionType, ResultType > &  term2,
int  symmetry = AUTO_SYMMETRY 
)

Constructor.

Construct an operator representing the sum $M \equiv L_1 + L_2$ of two boundary operators $L_1 : X \to Y$ and $L_2 : X \to Y$.

Parameters
[in]term1Operator $L_1$.
[in]term2Operator $L_2$.
[in]symmetry(Optional) Symmetry of the weak form of the composite operator. By default is taken as the logical product of the symmetries of the two operands. Can be set to any combination of the flags defined in the enumeration type Symmetry.
Note
Both terms must be initialized and their domains, ranges and spaces dual to ranges must be identical, otherwise an exception is thrown.

Member Function Documentation

template<typename BasisFunctionType , typename ResultType >
bool Bempp::AbstractBoundaryOperatorSum< BasisFunctionType, ResultType >::isLocal ( ) const
virtual

Return whether this operator is local.

Suppose that an operator $A$ acting on a function $f(x)$ produces another function $g(x)$. We say that $A$ is local if the value of $g$ at any point $x$ depends only on the values of $f$ in an infinitesimal neighbourhood of $x$.

Multiplicative and differential operators are local and discretization of their weak forms with finite elements leads to sparse matrices. Conversely, integral operators are in general non-local and discretization of their weak forms leads to dense matrices.

Implements Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >.


The documentation for this class was generated from the following files: