linDG2D::ScalarProductLf Class Referenceabstract

Pure L2 scalar product linear form for DG in 2D. More...

#include <linearForm.hh>

Inheritance diagram for linDG2D::ScalarProductLf:
concepts::LinearForm< Real >

Public Member Functions

void operator() (const concepts::Element< Real > &elmBase, concepts::ElementMatrix< Real > &em)
 Application operator. More...
 
virtual void operator() (const Element< typename Realtype< Real >::type > &elm, ElementMatrix< Real > &em) const=0
 Computes the element contribution to the function. More...
 
 ScalarProductLf (concepts::Formula< Real > &frm, uint nQuadPts)
 Constructor. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Private Attributes

const concepts::Formula< Real > & frm_
 
const uint nQuadPts_
 

Detailed Description

Pure L2 scalar product linear form for DG in 2D.

Useful e. g. for L2 projections of initial conditions

Author
Christoph Winkelmann, 2003

Definition at line 66 of file linearForm.hh.

Constructor & Destructor Documentation

◆ ScalarProductLf()

linDG2D::ScalarProductLf::ScalarProductLf ( concepts::Formula< Real > &  frm,
uint  nQuadPts 
)
inline

Constructor.

Parameters
frmformula
nQuadPtsnumber of quadrature points per dimension

Definition at line 72 of file linearForm.hh.

Member Function Documentation

◆ info()

◆ operator()() [1/2]

void linDG2D::ScalarProductLf::operator() ( const concepts::Element< Real > &  elmBase,
concepts::ElementMatrix< Real > &  em 
)

Application operator.

Computes the element contribution.

Parameters
elmBaseElement
emElement matrix

◆ operator()() [2/2]

virtual void concepts::LinearForm< Real , typename Realtype<Real >::type >::operator() ( const Element< G > &  elm,
ElementMatrix< F > &  em 
) const
pure virtualinherited

Computes the element contribution to the function.

Parameters
elmElement on which the computations should be performed
emThe local matrix

Member Data Documentation

◆ frm_

const concepts::Formula<Real>& linDG2D::ScalarProductLf::frm_
private

Definition at line 81 of file linearForm.hh.

◆ nQuadPts_

const uint linDG2D::ScalarProductLf::nQuadPts_
private

Definition at line 82 of file linearForm.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich