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

Assembly context. More...

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

Public Types

typedef
Fiber::QuadratureStrategy
< BasisFunctionType,
ResultType, GeometryFactory
QuadratureStrategy
 Type of the appropriate instantiation of Fiber::QuadratureStrategy.
 

Public Member Functions

 Context (const shared_ptr< const QuadratureStrategy > &quadStrategy, const AssemblyOptions &assemblyOptions)
 Constructor. More...
 
BEMPP_DEPRECATED shared_ptr
< const
DiscreteBoundaryOperator
< ResultType > > 
getWeakForm (const AbstractBoundaryOperator< BasisFunctionType, ResultType > &op) const
 Return the discrete weak form of the specified abstract operator. More...
 
const AssemblyOptionsassemblyOptions () const
 Return a reference to a copy of the AssemblyOptions object passed when constructing the Context.
 
shared_ptr< const
QuadratureStrategy
quadStrategy () const
 Return a reference to the QuadratureStrategy object passed when constructing the Context.
 

Private Attributes

shared_ptr< const
QuadratureStrategy
m_quadStrategy
 
AssemblyOptions m_assemblyOptions
 

Detailed Description

template<typename BasisFunctionType, typename ResultType>
class Bempp::Context< BasisFunctionType, ResultType >

Assembly context.

This class manages the assembly of weak forms and evaluation of potentials.

An assembly context consists of a quadrature strategy, which determines the way integrals are calculated, and assembly options, which control higher-level aspects of weak-form assembly, e.g. the use or not of acceleration algorithms such as ACA and the level of parallelism.

Constructor & Destructor Documentation

template<typename BasisFunctionType , typename ResultType >
Bempp::Context< BasisFunctionType, ResultType >::Context ( const shared_ptr< const QuadratureStrategy > &  quadStrategy,
const AssemblyOptions assemblyOptions 
)

Constructor.

Parameters
[in]quadStrategyQuadrature strategy to be used for calculation of integrals occurring e.g. in the weak forms of boundary operators or in the definition of potential operators.
[in]assemblyOptionsFurther options influencing the weak-form assembly process.

Member Function Documentation

template<typename BasisFunctionType , typename ResultType >
shared_ptr< const DiscreteBoundaryOperator< ResultType > > Bempp::Context< BasisFunctionType, ResultType >::getWeakForm ( const AbstractBoundaryOperator< BasisFunctionType, ResultType > &  op) const

Return the discrete weak form of the specified abstract operator.

This function returns returns the weak form of the specified abstract boundary operator, calculated in accordance with the settings specified during the construction of the Context.

Deprecated:
This function is deprecated and will be removed in a future version of BEM++. To get the discrete weak form of an AbstractBoundaryOperator, use its assembleWeakForm() method. Alternatively, call the weakForm() method of a BoundaryOperator object wrapping the AbstractBoundaryOperator in question.

References Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >::assembleWeakForm().


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