Abstract base class of spaces for DG FEM in 2D on triangles. More...

#include <space.hh>

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

Classes

class  S
 Scanner class for Space. More...
 

Public Types

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...
 
 Space ()
 
virtual ~Space ()
 

Protected Member Functions

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

Private Attributes

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

Detailed Description

Abstract base class of spaces for DG FEM in 2D on triangles.

Author
Christoph Winkelmann, 2003

Definition at line 30 of file space.hh.

Member Typedef Documentation

◆ Map

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

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 > &)

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

◆ Space()

linDG2D::Space::Space ( )
inline

Definition at line 35 of file space.hh.

◆ ~Space()

virtual linDG2D::Space::~Space ( )
virtual

Member Function Documentation

◆ constructor_()

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

◆ dim() [1/2]

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

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
inlinevirtual

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::Space::info ( std::ostream &  os) const
protectedvirtual

Reimplemented from concepts::Space< Real >.

Reimplemented in linDG2D::SpaceP0, and linDG2D::SpaceP1.

◆ nDoF_()

virtual uint linDG2D::Space::nDoF_ ( ) const
protectedpure virtual

Implemented in linDG2D::SpaceP0, and linDG2D::SpaceP1.

◆ nelm() [1/2]

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

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::Space::newElm_ ( const concepts::Triangle2d cell,
uint  idx[] 
) const
protectedpure virtual

Implemented in linDG2D::SpaceP0, and linDG2D::SpaceP1.

◆ scan() [1/2]

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

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

Number of degrees of freedom.

Definition at line 71 of file space.hh.

◆ elm_

Map linDG2D::Space::elm_
private

List of elements.

Definition at line 75 of file space.hh.

◆ nelm_

uint linDG2D::Space::nelm_
private

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