Linear form form 2D linear FEM. More...

#include <linearForm2D.hh>

Inheritance diagram for linearFEM::Riesz2d:
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...
 
void operator() (const linearFEM::Quad &elm, concepts::ElementMatrix< Real > &em) const
 Computes the local load vector for a quad. More...
 
void operator() (const linearFEM::Triangle &elm, concepts::ElementMatrix< Real > &em) const
 Computes the local load vector for a triangle. More...
 
 Riesz2d (const concepts::Formula< Real > &frm)
 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...
 
concepts::Array< concepts::Realshpfct_
 

Static Private Attributes

static const concepts::Real2d coord_ [4]
 Integration points (3rd order) More...
 
static const Real weights_ [4]
 Integration weights (3rd order) More...
 

Detailed Description

Linear form form 2D 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, 2002

Definition at line 29 of file linearForm2D.hh.

Constructor & Destructor Documentation

◆ Riesz2d()

linearFEM::Riesz2d::Riesz2d ( const concepts::Formula< Real > &  frm)
inline

Constructor.

Parameters
frmFormula

Definition at line 34 of file linearForm2D.hh.

Member Function Documentation

◆ info()

◆ operator()() [1/4]

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

◆ operator()() [2/4]

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

◆ operator()() [3/4]

void linearFEM::Riesz2d::operator() ( const linearFEM::Quad elm,
concepts::ElementMatrix< Real > &  em 
) const

Computes the local load vector for a quad.

◆ operator()() [4/4]

void linearFEM::Riesz2d::operator() ( const linearFEM::Triangle elm,
concepts::ElementMatrix< Real > &  em 
) const

Computes the local load vector for a triangle.

Member Data Documentation

◆ coord_

const concepts::Real2d linearFEM::Riesz2d::coord_[4]
staticprivate

Integration points (3rd order)

Definition at line 51 of file linearForm2D.hh.

◆ frm_

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

Formula.

Definition at line 46 of file linearForm2D.hh.

◆ shpfct_

concepts::Array<concepts::Real> linearFEM::Riesz2d::shpfct_
mutableprivate

Definition at line 47 of file linearForm2D.hh.

◆ weights_

const Real linearFEM::Riesz2d::weights_[4]
staticprivate

Integration weights (3rd order)

Definition at line 49 of file linearForm2D.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