Linear form form 1D linear FEM. More...

#include <linearForm1D.hh>

Inheritance diagram for linearFEM::Riesz1d:
concepts::LinearForm< Real >

Public Member Functions

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

Protected Member Functions

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

Private Attributes

std::unique_ptr< const concepts::Formula< Real > > frm_
 Formula. More...
 
const concepts::Quadrature< 4 > quad_
 Quadrature formula. More...
 

Detailed Description

Linear form form 1D linear FEM.

This linear form takes a formula frm and computes the load vector

\[ \int_K f v \, dx, \]

where f ist frm and v are the test functions.

Author
Philipp Frauenfelder, 2003
Examples
linearDG1d.cc.

Definition at line 26 of file linearForm1D.hh.

Constructor & Destructor Documentation

◆ Riesz1d()

linearFEM::Riesz1d::Riesz1d ( const concepts::Formula< Real > &  frm,
const uint  gauss_p = 1 
)
inline

Constructor.

Parameters
frmFormula
gauss_pNumer of points for the Gaussian quadrature

Definition at line 32 of file linearForm1D.hh.

Member Function Documentation

◆ info()

◆ operator()() [1/2]

virtual void linearFEM::Riesz1d::operator() ( const concepts::Element< Real > &  elm,
concepts::ElementMatrix< Real > &  em 
) const
virtual

◆ 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_

std::unique_ptr<const concepts::Formula<Real> > linearFEM::Riesz1d::frm_
private

Formula.

Definition at line 38 of file linearForm1D.hh.

◆ quad_

const concepts::Quadrature<4> linearFEM::Riesz1d::quad_
private

Quadrature formula.

Definition at line 40 of file linearForm1D.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