Linear form in 2D. More...

#include <linearForm.hh>

Inheritance diagram for hp2Dedge::EdgeRiesz:
concepts::LinearForm< Real >

Public Member Functions

 EdgeRiesz (const concepts::Boundary &bd)
 Constructor. More...
 
void operator() (const concepts::Element< Real > &elm, concepts::ElementMatrix< Real > &em) const
 Computes the element load vector. More...
 
void operator() (const Edge< 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...
 
virtual ~EdgeRiesz ()
 

Protected Member Functions

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

Private Attributes

const concepts::Boundary bd_
 Boundary condition on this edge. More...
 

Detailed Description

Linear form in 2D.

This linear form computes

\[ \int_{\partial K} f \vec{t} \cdot \vec{v} \, ds \]

where

\[\vec{t} = \vec{n}^\bot = {-n_y \choose n_x} \]

is the tangential vector, and

\[\vec{n}\]

the outer normal vector.

The integration is only done for the shape function which are located on the edge. For mapping to the degrees of freedom in the element there is the T matrix of the edge.

See also
Edge
Author
Kersten Schmidt, 2003

Definition at line 147 of file linearForm.hh.

Constructor & Destructor Documentation

◆ EdgeRiesz()

hp2Dedge::EdgeRiesz::EdgeRiesz ( const concepts::Boundary bd)

Constructor.

Parameters
bdBoundary condition with contained formula

◆ ~EdgeRiesz()

virtual hp2Dedge::EdgeRiesz::~EdgeRiesz ( )
virtual

Member Function Documentation

◆ info()

virtual std::ostream& hp2Dedge::EdgeRiesz::info ( std::ostream &  os) const
protectedvirtual

Reimplemented from concepts::LinearForm< Real >.

◆ operator()() [1/3]

void hp2Dedge::EdgeRiesz::operator() ( const concepts::Element< Real > &  elm,
concepts::ElementMatrix< Real > &  em 
) const

Computes the element load vector.

As for the computation of an element stiffness matrix, there are the loops over all quadrature points and the loops over all shape functions.

Parameters
elmThe element for which the load vector should be computed.
emThe load vector

◆ operator()() [2/3]

void hp2Dedge::EdgeRiesz::operator() ( const Edge< Real > &  elm,
concepts::ElementMatrix< Real > &  em 
) const

◆ operator()() [3/3]

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

◆ bd_

const concepts::Boundary hp2Dedge::EdgeRiesz::bd_
private

Boundary condition on this edge.

Definition at line 170 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