Tetrahedral element with constant shapefunction. More...

#include <element.hh>

Inheritance diagram for linDG3D::FvdgP0TetElem:
linDG3D::FvdgElement concepts::ElementWithCell< Real >

Public Types

typedef Real type
 

Public Member Functions

virtual const concepts::Tetrahedron3dcell () const
 Returns the geometrical cell of this element. More...
 
virtual const Cell & cell () const=0
 Returns the cell on which the element is built. More...
 
concepts::Real3d edgeCenter (uint edgeIdx) const
 Returns the real world coordinates of the center of the edge with index edgeIdx. More...
 
Real3d elemMap (const Real coord_local) const
 
Real3d elemMap (const Real2d &coord_local) const
 
Real3d elemMap (const Real3d &coord_local) const
 
 FvdgP0TetElem (const concepts::Tetrahedron3d &cell, uint idx[])
 Constructor. More...
 
const concepts::ElementGraphics< Real > * graphics () const
 Returns the graphics object for the element. More...
 
Real shapeFct (const uint fctIdx, const concepts::Real3d xi) const
 Shape function. More...
 
Real shapeFctEdgeCenter (const uint fctIdx, const uint edgeIdx) const
 Shapefunction at edge center. More...
 
concepts::Real3d shapeFctGradient (const uint fctIdx) const
 Gradient of shape function. More...
 
Real shapeFctVertex (const uint fctIdx, const uint vtxIdx) const
 Shapefunction at vertex. More...
 
Real solution (const concepts::Vector< Real > &sol, const concepts::Real3d xi) const
 Returns the value of the solution sol at the reference element coordinate xi. More...
 
Real solutionEdgeCenter (const concepts::Vector< Real > &sol, const uint edgeIdx) const
 Returns the value of the solution sol at the center of edge edgeIdx of this tetrahedron. More...
 
Real solutionVertex (const concepts::Vector< Real > &sol, const uint vertexIdx) const
 Returns the value of the solution sol at vertex vertexIdx of this tetrahedron. More...
 
const concepts::Tetrahedronsupport () const
 Returns the topological support of this element. More...
 
const concepts::TMatrixBase< Real > & T () const
 Returns the T matrix of this element. More...
 
virtual const TMatrixBase< Real > & T () const=0
 Returns the T matrix of the element. More...
 
const concepts::Real3d vertex (const uint i) const
 Returns the vertex with local index i in this element. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns cell and T matrix of this element. More...
 

Protected Attributes

const concepts::Tetrahedron3dcell_
 
std::unique_ptr< concepts::TMatrixBase< Real > > T_
 

Static Protected Attributes

static Real eta_ [6][3]
 
static std::unique_ptr< FvdgP0TetGraphicsgraphics_
 Graphics object of the element. More...
 

Detailed Description

Tetrahedral element with constant shapefunction.

Author
Christoph Winkelmann, 2002

Definition at line 111 of file element.hh.

Member Typedef Documentation

◆ type

typedef Real concepts::ElementWithCell< Real >::type
inherited

Definition at line 81 of file element.hh.

Constructor & Destructor Documentation

◆ FvdgP0TetElem()

linDG3D::FvdgP0TetElem::FvdgP0TetElem ( const concepts::Tetrahedron3d cell,
uint  idx[] 
)

Constructor.

Creates a T matrix of type TIndex from idx.

Parameters
cellThe Cell the element lives on
idxDescribes the map local / global dof

Member Function Documentation

◆ cell() [1/2]

virtual const concepts::Tetrahedron3d& linDG3D::FvdgElement::cell ( ) const
inlinevirtualinherited

Returns the geometrical cell of this element.

Definition at line 44 of file element.hh.

◆ cell() [2/2]

virtual const Cell& concepts::ElementWithCell< Real >::cell ( ) const
pure virtualinherited

Returns the cell on which the element is built.

Implemented in hp3D::Element< Real >, hp2D::Element< Real >, and hp1D::BaseElement< Real >.

◆ edgeCenter()

concepts::Real3d linDG3D::FvdgElement::edgeCenter ( uint  edgeIdx) const
inherited

Returns the real world coordinates of the center of the edge with index edgeIdx.

Parameters
edgeIdxEdge index

◆ elemMap() [1/3]

Real3d concepts::ElementWithCell< Real >::elemMap ( const Real  coord_local) const
inlineinherited

Definition at line 86 of file element.hh.

◆ elemMap() [2/3]

Real3d concepts::ElementWithCell< Real >::elemMap ( const Real2d coord_local) const
inlineinherited

Definition at line 90 of file element.hh.

◆ elemMap() [3/3]

Real3d concepts::ElementWithCell< Real >::elemMap ( const Real3d coord_local) const
inlineinherited

Definition at line 94 of file element.hh.

◆ graphics()

const concepts::ElementGraphics<Real>* linDG3D::FvdgP0TetElem::graphics ( ) const
virtual

Returns the graphics object for the element.

Implements linDG3D::FvdgElement.

◆ info()

virtual std::ostream& linDG3D::FvdgP0TetElem::info ( std::ostream &  os) const
protectedvirtual

Returns cell and T matrix of this element.

Reimplemented from linDG3D::FvdgElement.

◆ shapeFct()

Real linDG3D::FvdgP0TetElem::shapeFct ( const uint  fctIdx,
const concepts::Real3d  xi 
) const
inlinevirtual

Shape function.

Returns the value of a shape function

Parameters
fctIdxnumber of the shape function
xireference coordinate to evaluate the shape function at

Implements linDG3D::FvdgElement.

Definition at line 122 of file element.hh.

◆ shapeFctEdgeCenter()

Real linDG3D::FvdgP0TetElem::shapeFctEdgeCenter ( const uint  fctIdx,
const uint  edgeIdx 
) const
inlinevirtual

Shapefunction at edge center.

Returns the value of shape function fctIdx at center of edge edgeIdx of this tetrahedron

Parameters
fctIdxnumber of the shape function
edgeIdxnumber of edge

Implements linDG3D::FvdgElement.

Definition at line 130 of file element.hh.

◆ shapeFctGradient()

concepts::Real3d linDG3D::FvdgP0TetElem::shapeFctGradient ( const uint  fctIdx) const
inlinevirtual

Gradient of shape function.

Returns the gradient of shape function fctIdx

Parameters
fctIdxnumber of the shape function

Implements linDG3D::FvdgElement.

Definition at line 145 of file element.hh.

◆ shapeFctVertex()

Real linDG3D::FvdgP0TetElem::shapeFctVertex ( const uint  fctIdx,
const uint  vtxIdx 
) const
inlinevirtual

Shapefunction at vertex.

Returns the value of shape function fctIdx at vertex vtxIdx of this tetrahedron

Parameters
fctIdxnumber of the shape function
vtxIdxnumber of vertex

Implements linDG3D::FvdgElement.

Definition at line 138 of file element.hh.

◆ solution()

Real linDG3D::FvdgElement::solution ( const concepts::Vector< Real > &  sol,
const concepts::Real3d  xi 
) const
inherited

Returns the value of the solution sol at the reference element coordinate xi.

Parameters
solsolution vector
xireference element coordinate to get solution at

◆ solutionEdgeCenter()

Real linDG3D::FvdgP0TetElem::solutionEdgeCenter ( const concepts::Vector< Real > &  sol,
const uint  edgeIdx 
) const
inlinevirtual

Returns the value of the solution sol at the center of edge edgeIdx of this tetrahedron.

Parameters
solsolution vector
edgeIdxnumber of edge

Implements linDG3D::FvdgElement.

Definition at line 153 of file element.hh.

◆ solutionVertex()

Real linDG3D::FvdgP0TetElem::solutionVertex ( const concepts::Vector< Real > &  sol,
const uint  vertexIdx 
) const
inlinevirtual

Returns the value of the solution sol at vertex vertexIdx of this tetrahedron.

Parameters
solsolution vector
vertexIdxnumber of vertex

Implements linDG3D::FvdgElement.

Definition at line 162 of file element.hh.

◆ support()

const concepts::Tetrahedron& linDG3D::FvdgElement::support ( ) const
inlineinherited

Returns the topological support of this element.

Definition at line 36 of file element.hh.

◆ T() [1/2]

const concepts::TMatrixBase<Real>& linDG3D::FvdgElement::T ( ) const
inlineinherited

Returns the T matrix of this element.

Definition at line 38 of file element.hh.

◆ T() [2/2]

virtual const TMatrixBase<Real >& concepts::ElementWithCell< Real >::T ( ) const
pure virtualinherited

Returns the T matrix of the element.

Implemented in hp3D::Element< Real >, and hp2D::Element< Real >.

◆ vertex()

const concepts::Real3d linDG3D::FvdgElement::vertex ( const uint  i) const
inlineinherited

Returns the vertex with local index i in this element.

Definition at line 40 of file element.hh.

Member Data Documentation

◆ cell_

const concepts::Tetrahedron3d& linDG3D::FvdgElement::cell_
protectedinherited

Definition at line 103 of file element.hh.

◆ eta_

Real linDG3D::FvdgElement::eta_[6][3]
staticprotectedinherited

Definition at line 104 of file element.hh.

◆ graphics_

std::unique_ptr<FvdgP0TetGraphics> linDG3D::FvdgP0TetElem::graphics_
staticprotected

Graphics object of the element.

Definition at line 172 of file element.hh.

◆ T_

std::unique_ptr<concepts::TMatrixBase<Real> > linDG3D::FvdgElement::T_
protectedinherited

Definition at line 102 of file element.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