#include <levelRiesz.hh>
Public Member Functions | |
LevelRiesz (const concepts::Space< Real > &space2D, const concepts::ElementFormulaContainer< Real > &levelFunction, const concepts::ElementFormulaContainer< Real2d > &levelFunctionGrad, const concepts::ElementFormulaContainer< Real > &observable) | |
virtual void | operator() (const concepts::Element< Real > &elm, concepts::ElementMatrix< Real > &em) const |
virtual void | operator() (const Element< typename Realtype< concepts::Real >::type > &elm, ElementMatrix< concepts::Real > &em) const=0 |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
This class creates a linearform corresponding to the integral:
,
where $\psi$ is a given 2D-function (must take values between 0 and 1 !) and f the function to be integrated.
These integrals, called geometric coefficients, are computed for all y in [0,1] via a Galerkin-projection on a polynomial space.
As polynomials spaces one can choose the space of orthonormal Legendre-polynomials (hp1D::hpAdaptiveSpaceL2) or the space of Karniadakis-polynomials (hp1D::Space).
Definition at line 34 of file levelRiesz.hh.
hp1D::LevelRiesz::LevelRiesz | ( | const concepts::Space< Real > & | space2D, |
const concepts::ElementFormulaContainer< Real > & | levelFunction, | ||
const concepts::ElementFormulaContainer< Real2d > & | levelFunctionGrad, | ||
const concepts::ElementFormulaContainer< Real > & | observable | ||
) |
Constructor The level function $\psi$ and it's gradient are defined on a 2D space. $\psi$ must take values in [0,1]. The observable corresponds to the integrand.
space2D | 2D domain, on which level function is given |
levelFunction | levelset function. must take values in [0,1] |
levelFunctionGrad | gradient of levelset function |
observable | integrand over level sets of levelFunction |
|
inline |
Definition at line 52 of file levelRiesz.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::LinearForm< concepts::Real >.
|
virtual |
This method loops over all elements of the 2D space and cells levelRieszElement on each one of them. These local contributions are added together to get the overall value.
|
pure virtualinherited |
Computes the element contribution to the function.
elm | Element on which the computations should be performed |
em | The local matrix |