DUNE-ACFEM (unstable)
Dune::ACFem::LinearFunctional::DiracDistribution< DiscreteFunctionSpace > Class Template Reference
Dirac-distribution. More...
#include <dune/acfem/operators/functionals/modules/diracfunctional.hh>
![+](closed.png)
Public Member Functions | |
template<class X0Arg , std::enable_if_t< std::is_constructible< DomainType, X0Arg >::value, int > = 0> | |
DiracDistribution (X0Arg &&x0, const DiscreteFunctionSpaceType &space) | |
Constructor. More... | |
Detailed Description
template<class DiscreteFunctionSpace>
class Dune::ACFem::LinearFunctional::DiracDistribution< DiscreteFunctionSpace >
class Dune::ACFem::LinearFunctional::DiracDistribution< DiscreteFunctionSpace >
Dirac-distribution.
Note that this is not a functional in H1, unless you live in a one-dimensional world (where functional means as usual: linear and continuous). For continuous spaces this implementation makes use of the Fem::EnitySearch to find an element were the support (the global coordinate) of the Dirac-distribution is located in. For discontinuous spaces this is not enough if the point resides in special position, therefor simply every element is checked. This means this is rather inefficient for discontinuous FEM spaces.
- Parameters
-
[in] DiscreteFunctionSpace The discrete function model the distribution acts aon.
- Note
- The current implementation produces a class which is quite costly to copy. Consequently, don't try to inject a temporary instance of this class into expression templates.
Constructor & Destructor Documentation
◆ DiracDistribution()
template<class DiscreteFunctionSpace >
template<class X0Arg , std::enable_if_t< std::is_constructible< DomainType, X0Arg >::value, int > = 0>
|
inline |
Constructor.
Construct a Dirac distribution for the given discrete space and given point.
- Parameters
-
[in] space Discrete function space we operate on. [in] x0 "Support" of the Dirac measure
The documentation for this class was generated from the following file:
- dune/acfem/operators/functionals/modules/diracfunctional.hh
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)