Linear form on edges in nD. More...

#include <linearForm.hh>

Inheritance diagram for hp1D::Neumann:
concepts::Neumann< Real > concepts::LinearForm< Real >

Public Member Functions

 Neumann (const concepts::BoundaryConditions *bc)
 Constructor. More...
 
void operator() (const concepts::Element< Real > &elm, concepts::ElementMatrix< Real > &em) const
 Computes the element load vector. More...
 
virtual void operator() (const Element< typename Realtype< Real >::type > &elm, ElementMatrix< Real > &em) const=0
 Computes the element contribution to the function. More...
 
virtual ~Neumann ()
 

Protected Member Functions

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

Protected Attributes

std::unique_ptr< BoundaryConditions > bc_
 Reference to the boundary conditions. More...
 

Detailed Description

Linear form on edges in nD.

Point evaluation of boundary vertices which correspond to the Neumann boundary condition for one-dimensional domains.

This linear form computes

\[ \int_{\partial K \cap \partial\Omega} g v \, dx. \]

where $g$ is the data of the Neumann boundary condition.

Author
Kersten Schmidt, 2010

Definition at line 38 of file linearForm.hh.

Constructor & Destructor Documentation

◆ Neumann()

hp1D::Neumann::Neumann ( const concepts::BoundaryConditions bc)

Constructor.

Parses the formula.

Parameters
frmThe formula
bcBoundary conditions, defaults to homogeneous

◆ ~Neumann()

virtual hp1D::Neumann::~Neumann ( )
virtual

Reimplemented from concepts::Neumann< Real >.

Member Function Documentation

◆ info()

virtual std::ostream& concepts::Neumann< Real >::info ( std::ostream &  os) const
protectedvirtualinherited

Reimplemented from concepts::LinearForm< Real >.

◆ operator()() [1/2]

void hp1D::Neumann::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/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

◆ bc_

std::unique_ptr<BoundaryConditions> concepts::Neumann< Real >::bc_
protectedinherited

Reference to the boundary conditions.

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