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

Assembled potential operator. More...

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

Public Types

typedef ScalarTraits
< ResultType >::RealType 
CoordinateType
 Type used to represent point coordinates.
 

Public Member Functions

 AssembledPotentialOperator (const shared_ptr< const Space< BasisFunctionType > > &space_, const shared_ptr< const arma::Mat< CoordinateType > > &evaluationPoints_, const shared_ptr< const DiscreteBoundaryOperator< ResultType > > &op_, int componentCount_)
 Constructor. More...
 
shared_ptr< const Space
< BasisFunctionType > > 
space () const
 
shared_ptr< const arma::Mat
< CoordinateType > > 
evaluationPoints () const
 
shared_ptr< const
DiscreteBoundaryOperator
< ResultType > > 
discreteOperator () const
 
int componentCount () const
 Return the number of components of the potential.
 
arma::Mat< ResultType > apply (const GridFunction< BasisFunctionType, ResultType > &argument) const
 Apply the operator to a grid function. More...
 

Detailed Description

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

Assembled potential operator.

This class stores a DiscreteBoundaryOperator object representing the matrix containing the values of the potentials generated by applying a specific potential operator, at a certain set of points $\{\boldsymbol x_i\}_{i=1}^m$, to the charge distributions given by the individual basis functions $\{\phi_i\}_{i=1}^m$ of a function space. An AssembledPotentialOperator object can be used to rapidly evaluate the potential generated at the points $\{\boldsymbol x_i\}_{i=1}^m$ by any GridFunction expanded in that function space.

Constructor & Destructor Documentation

template<typename BasisFunctionType , typename ResultType >
Bempp::AssembledPotentialOperator< BasisFunctionType, ResultType >::AssembledPotentialOperator ( const shared_ptr< const Space< BasisFunctionType > > &  space_,
const shared_ptr< const arma::Mat< CoordinateType > > &  evaluationPoints_,
const shared_ptr< const DiscreteBoundaryOperator< ResultType > > &  op_,
int  componentCount_ 
)

Constructor.

Parameters
[in]space_A function space.
[in]evaluationPoints_A 2D array whose (i, j)th element contains the ith coordinate of jth evaluation point. The number of rows (i.e. the number of coordinates) must be equal to space_->grid()->dimWorld().
[in]op_A DiscreteBoundaryOperator object representing the matrix whose (i * c, j)th element contains the value of the cth component of the potential generated at the ith point by the charge distribution equal to the jth basis function of space space_.
[in]componentCount_The number of components of the potential (e.g. 1 if the potential is scalar-valued, 3 if it is vector-valued).

Member Function Documentation

template<typename BasisFunctionType , typename ResultType >
arma::Mat< ResultType > Bempp::AssembledPotentialOperator< BasisFunctionType, ResultType >::apply ( const GridFunction< BasisFunctionType, ResultType > &  argument) const

Apply the operator to a grid function.

Parameters
[in]argumentA grid function expanded in the space returned by space().
Returns
A matrix whose (i, j)th element contains the value of the ith component of the potential generated by the charge distribution argument at the jth point from the array returned by the function evaluationPoints().

References Bempp::GridFunction< BasisFunctionType, ResultType >::coefficients(), Bempp::NO_TRANSPOSE, and Bempp::GridFunction< BasisFunctionType, ResultType >::space().

Referenced by Bempp::ElementaryPotentialOperator< BasisFunctionType_, KernelType_, ResultType_ >::evaluateAtPoints().

template<typename BasisFunctionType , typename ResultType >
shared_ptr< const DiscreteBoundaryOperator< ResultType > > Bempp::AssembledPotentialOperator< BasisFunctionType, ResultType >::discreteOperator ( ) const

brief Return the discrete operator object defining the assembled operator.

See the documentation of the constructor for a full desciption.

template<typename BasisFunctionType , typename ResultType >
shared_ptr< const arma::Mat< typenameAssembledPotentialOperator< BasisFunctionType, ResultType >::CoordinateType > > Bempp::AssembledPotentialOperator< BasisFunctionType, ResultType >::evaluationPoints ( ) const

brief Return the list of points at which the potential is evaluated.

The (i, j)th element of the returned array contains the ith coordinate of jth evaluation point.

template<typename BasisFunctionType , typename ResultType >
shared_ptr< const Space< BasisFunctionType > > Bempp::AssembledPotentialOperator< BasisFunctionType, ResultType >::space ( ) const

brief Return the space used in the construction of this operator.

See the documentation of the constructor for a full desciption.


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