DUNE-ACFEM (unstable)

Dune::ACFem::LinearFunctional::DiracDistribution< DiscreteFunctionSpace > Class Template Reference

Dirac-distribution. More...

#include <dune/acfem/operators/functionals/modules/diracfunctional.hh>

+ Collaboration diagram for Dune::ACFem::LinearFunctional::DiracDistribution< DiscreteFunctionSpace >:

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 >

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]DiscreteFunctionSpaceThe 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>
Dune::ACFem::LinearFunctional::DiracDistribution< DiscreteFunctionSpace >::DiracDistribution ( X0Arg &&  x0,
const DiscreteFunctionSpaceType &  space 
)
inline

Constructor.

Construct a Dirac distribution for the given discrete space and given point.

Parameters
[in]spaceDiscrete function space we operate on.
[in]x0"Support" of the Dirac measure

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)