BEM++
2.0
|
Standard implementation of an elementary local operator. More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/assembly/general_elementary_local_operator.hpp>
Public Types | |
typedef Base::BasisFunctionType | BasisFunctionType |
Type of the values of the basis functions into which functions acted upon by the operator are expanded. | |
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::CollectionOfShapesetTransformations | CollectionOfShapesetTransformations |
Type of the appropriate instantiation of Fiber::CollectionOfShapesetTransformations. More... | |
typedef Base::CollectionOfBasisTransformations | CollectionOfBasisTransformations |
Type of the appropriate instantiation of Fiber::CollectionOfBasisTransformations. More... | |
typedef Base::TestTrialIntegral | TestTrialIntegral |
![]() | |
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::CollectionOfShapesetTransformations < CoordinateType > | CollectionOfShapesetTransformations |
Type of the appropriate instantiation of Fiber::CollectionOfShapesetTransformations. | |
typedef Fiber::CollectionOfShapesetTransformations < CoordinateType > | CollectionOfBasisTransformations |
Type of the appropriate instantiation of Fiber::CollectionOfBasisTransformations. More... | |
typedef Fiber::TestTrialIntegral < BasisFunctionType, ResultType > | TestTrialIntegral |
Type of the appropriate instantiation of Fiber::TestTrialIntegral. | |
![]() | |
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 | |
template<typename TestTransformationsFunctor , typename TrialTransformationsFunctor , typename IntegrandFunctor > | |
GeneralElementaryLocalOperator (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, const TestTransformationsFunctor &testTransformationsFunctor, const TrialTransformationsFunctor &trialTransformationsFunctor, const IntegrandFunctor &integrandFunctor) | |
Constructor. More... | |
virtual const CollectionOfShapesetTransformations & | testTransformations () const |
Return the collection of test function transformations occurring in the weak form of this operator. | |
virtual const CollectionOfShapesetTransformations & | trialTransformations () const |
Return the collection of trial function transformations occurring in the weak form of this operator. | |
virtual const TestTrialIntegral & | integral () const |
Return an object representing the integral that is the weak form of this operator. More... | |
![]() | |
ElementaryLocalOperator (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 bool | isLocal () const |
Return true. | |
![]() | |
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 ElementaryLocalOperator < BasisFunctionType_, ResultType_ > | Base |
Additional Inherited Members | |
![]() | |
static std::string | uniqueLabel () |
Generate and return a new unique label "OpN", where N is a number. | |
![]() | |
virtual shared_ptr < DiscreteBoundaryOperator < ResultType_ > > | assembleWeakFormImpl (const Context< BasisFunctionType, ResultType > &context) const |
Assemble and return the operator's weak form. More... | |
![]() | |
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. | |
Standard implementation of an elementary local operator.
This class provides an implementation of the interface defined by ElementaryLocalOperator that is sufficient for most purposes. The constructor takes three functor objects representing the three elements of the operator's weak form: collections of test and trial basis function transformations and the weak form integrand. These functors are used to construct instances of appropriate instantiations of DefaultCollectionOfShapesetTransformations and DefaultTestKernelTrialIntegral. These objects are stored as private member variables and are returned by the implementations of the virtual methods testTransformations(), trialTransformations() and integral().
BasisFunctionType_ | Type of the values of the (components of the) basis functions into which functions acted upon by the operator are expanded. |
ResultType_ | Type used to represent elements of the weak form of the operator. |
All three template parameters can take the following values: float
, double
, std::complex<float>
and std::complex<double>
. All types must have the same precision: for instance, mixing float
with std::complex<double>
is not allowed. If either BasisFunctionType_
or KernelType_
is a complex type, then ResultType_
must be set to the same type.
typedef Base::CollectionOfBasisTransformations Bempp::GeneralElementaryLocalOperator< BasisFunctionType_, ResultType_ >::CollectionOfBasisTransformations |
Type of the appropriate instantiation of Fiber::CollectionOfBasisTransformations.
typedef Base::CollectionOfShapesetTransformations Bempp::GeneralElementaryLocalOperator< BasisFunctionType_, ResultType_ >::CollectionOfShapesetTransformations |
Type of the appropriate instantiation of Fiber::CollectionOfShapesetTransformations.
typedef Base::CoordinateType Bempp::GeneralElementaryLocalOperator< BasisFunctionType_, ResultType_ >::CoordinateType |
Type used to represent coordinates.
typedef Base::ResultType Bempp::GeneralElementaryLocalOperator< BasisFunctionType_, ResultType_ >::ResultType |
Type used to represent elements of the weak form of the operator.
typedef Base::TestTrialIntegral Bempp::GeneralElementaryLocalOperator< BasisFunctionType_, ResultType_ >::TestTrialIntegral |
Bempp::GeneralElementaryLocalOperator< BasisFunctionType_, ResultType_ >::GeneralElementaryLocalOperator | ( | 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, | ||
const TestTransformationsFunctor & | testTransformationsFunctor, | ||
const TrialTransformationsFunctor & | trialTransformationsFunctor, | ||
const IntegrandFunctor & | integrandFunctor | ||
) |
Constructor.
[in] | domain | Function space being the domain of the operator. |
[in] | range | Function space being the range of the operator. |
[in] | dualToRange | Function space dual to the the range of the operator. |
[in] | label | Textual label of the operator. If empty, a unique label is generated automatically. |
[in] | symmetry | Symmetry of the weak form of the operator. Can be any combination of the flags defined in the enumeration type Symmetry. |
[in] | testTransformationsFunctor | A functor object to be used to evaluate the collection of test function transformations at a single point. The TestTransformationsFunctor class must provide the interface defined in the documentation of DefaultCollectionOfShapesetTransformations. |
[in] | trialTransformationsFunctor | A functor object to be used to evaluate the collection of trial function transformations at a single point. The TrialTransformationsFunctor class must provide the interface defined in the documentation of DefaultCollectionOfShapesetTransformations. |
[in] | integrandFunctor | A functor object to be used to evaluate the integrand of the weak form at a single point. The IntegrandFunctor class must provide the interface defined in the documentation of DefaultTestTrialIntegral. |
None of the shared pointers may be null and all the spaces must be defined on the same grid, otherwise an exception is thrown.
The implementation of this constructor is contained in general_elementary_local_operator_imp.hpp. This header must be included in any file creating a new GeneralElementaryLocalOperator object.
|
inlinevirtual |
Return an object representing the integral that is the weak form of this operator.
Subclasses of TestTrialIntegral implement functions that evaluate the integral using the data provided by a pair of CollectionOfShapesetTransformations objects representing the test and trial function transformations occurring in the integrand.
Implements Bempp::ElementaryLocalOperator< BasisFunctionType_, ResultType_ >.