Space for piecewise constant DG FEM in 2D on triangles. More...

#include <space.hh>

Inheritance diagram for linDG2D::SpaceP0:
linDG2D::Space concepts::Space< Real >

Public Types

typedef TriangleP0 Element
 
typedef std::unordered_map< uint, Triangle * > Map
 
typedef Scan< Element< Real > > Scanner
 
typedef void(* SMap) (const concepts::TColumn< Real > &, concepts::TColumn< Real > &)
 
typedef Element< Real > type
 

Public Member Functions

virtual uint dim () const
 Returns the dimension of the space. More...
 
virtual uint dim () const=0
 Returns the dimension of the space. More...
 
virtual const Triangleelm (const concepts::Triangle2d *cell) const
 Returns the element on triangle cell. More...
 
virtual uint getOutputDimension () const
 Returns the default output dimension, when we consider plotting a real-valued operator on this space. More...
 
virtual uint nelm () const
 Returns the number of elements in the space. More...
 
virtual uint nelm () const=0
 Returns the number of elements in the space. More...
 
virtual Scannerscan () const
 
virtual Scannerscan () const=0
 Returns a scanner to iterate over the elements of the space. More...
 
 SpaceP0 (concepts::Mesh2 &msh)
 Constructor. More...
 

Protected Member Functions

virtual void constructor_ (concepts::Mesh2 &mesh)
 
virtual std::ostream & info (std::ostream &os) const
 
virtual uint nDoF_ () const
 
virtual TrianglenewElm_ (const concepts::Triangle2d &cell, uint idx[]) const
 

Private Attributes

uint dim_
 Number of degrees of freedom. More...
 
Map elm_
 List of elements. More...
 
uint nelm_
 Number of elements. More...
 

Detailed Description

Space for piecewise constant DG FEM in 2D on triangles.

Author
Christoph Winkelmann, 2003

Definition at line 105 of file space.hh.

Member Typedef Documentation

◆ Element

Definition at line 107 of file space.hh.

◆ Map

typedef std::unordered_map<uint, Triangle*> linDG2D::Space::Map
inherited

Definition at line 34 of file space.hh.

◆ Scanner

typedef Scan<Element<Real > > concepts::Space< Real >::Scanner
inherited

Definition at line 47 of file space.hh.

◆ SMap

typedef void(* linDG2D::Space::SMap) (const concepts::TColumn< Real > &, concepts::TColumn< Real > &)
inherited

Definition at line 32 of file space.hh.

◆ type

typedef Element<Real > concepts::Space< Real >::type
inherited

Definition at line 46 of file space.hh.

Constructor & Destructor Documentation

◆ SpaceP0()

linDG2D::SpaceP0::SpaceP0 ( concepts::Mesh2 msh)
inline

Constructor.

Generates the list of element pairs elmPair_.

Parameters
mshMesh

Definition at line 111 of file space.hh.

Member Function Documentation

◆ constructor_()

virtual void linDG2D::Space::constructor_ ( concepts::Mesh2 mesh)
protectedvirtualinherited

◆ dim() [1/2]

virtual uint linDG2D::Space::dim ( ) const
inlinevirtualinherited

Returns the dimension of the space.

Definition at line 39 of file space.hh.

◆ dim() [2/2]

virtual uint concepts::Space< Real >::dim ( ) const
pure virtualinherited

◆ elm()

virtual const Triangle& linDG2D::Space::elm ( const concepts::Triangle2d cell) const
inlinevirtualinherited

Returns the element on triangle cell.

Definition at line 43 of file space.hh.

◆ getOutputDimension()

virtual uint concepts::Space< Real >::getOutputDimension ( ) const
inlinevirtualinherited

Returns the default output dimension, when we consider plotting a real-valued operator on this space.

Definition at line 50 of file space.hh.

◆ info()

virtual std::ostream& linDG2D::SpaceP0::info ( std::ostream &  os) const
protectedvirtual

Reimplemented from linDG2D::Space.

◆ nDoF_()

virtual uint linDG2D::SpaceP0::nDoF_ ( ) const
inlineprotectedvirtual

Implements linDG2D::Space.

Definition at line 118 of file space.hh.

◆ nelm() [1/2]

virtual uint linDG2D::Space::nelm ( ) const
inlinevirtualinherited

Returns the number of elements in the space.

Definition at line 41 of file space.hh.

◆ nelm() [2/2]

virtual uint concepts::Space< Real >::nelm ( ) const
pure virtualinherited

◆ newElm_()

virtual Triangle* linDG2D::SpaceP0::newElm_ ( const concepts::Triangle2d cell,
uint  idx[] 
) const
inlineprotectedvirtual

Implements linDG2D::Space.

Definition at line 114 of file space.hh.

◆ scan() [1/2]

virtual Scanner* linDG2D::Space::scan ( ) const
inlinevirtualinherited

Definition at line 37 of file space.hh.

◆ scan() [2/2]

virtual Scanner* concepts::Space< Real >::scan ( ) const
pure virtualinherited

Member Data Documentation

◆ dim_

uint linDG2D::Space::dim_
privateinherited

Number of degrees of freedom.

Definition at line 71 of file space.hh.

◆ elm_

Map linDG2D::Space::elm_
privateinherited

List of elements.

Definition at line 75 of file space.hh.

◆ nelm_

uint linDG2D::Space::nelm_
privateinherited

Number of elements.

Definition at line 73 of file space.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