BEM++
2.0
|
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... | |
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 , to the charge distributions given by the individual basis functions
of a function space. An AssembledPotentialOperator object can be used to rapidly evaluate the potential generated at the points
by any GridFunction expanded in that function space.
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.
[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). |
arma::Mat< ResultType > Bempp::AssembledPotentialOperator< BasisFunctionType, ResultType >::apply | ( | const GridFunction< BasisFunctionType, ResultType > & | argument | ) | const |
Apply the operator to a grid function.
[in] | argument | A grid function expanded in the space returned by space(). |
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().
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.
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.
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.