Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Static Private Attributes
linDG2D::Triangle Class Reference

Abstract base class for triangular elements in 2D DGFEM. More...

#include <triangle.hh>

Inheritance diagram for linDG2D::Triangle:
Inheritance graph
[legend]
Collaboration diagram for linDG2D::Triangle:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Real type

Public Member Functions

virtual const
concepts::Triangle2d
cell () const
 Returns the underlying geometrical triangle.
Real3d elemMap (const Real coord_local) const
Real3d elemMap (const Real2d &coord_local) const
Real3d elemMap (const Real3d &coord_local) const
virtual const
concepts::ElementGraphics
< Real > * 
graphics () const
 Returns the element graphics object.
virtual Real shapeFct (const uint i, const Real xi1, const Real xi2) const =0
 Computes the value of the ith shape function in the point (xi1, xi2).
virtual Real solution (const concepts::Vector< Real > &coeffs, const Real xi1, const Real xi2) const =0
 Returns the value of a mesh function within this element.
virtual const concepts::Trianglesupport () const
 Returns the topological triangle supporting the element.
virtual const
concepts::TMatrixBase< Real > & 
T () const
 Returns the T matrix of this element.
uint & tag ()
 Returns the tag.
 Triangle (const concepts::Triangle2d &cell, uint nDoF, uint idx[])
 Constructor.

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Protected Attributes

std::auto_ptr
< concepts::TMatrixBase< Real > > 
T_
 T matrix of this element.

Private Attributes

const concepts::Triangle2dcell_
 Cell under this element.

Static Private Attributes

static std::auto_ptr
< TriangleGraphics
graphics_
 Graphics object of this element.

Detailed Description

Abstract base class for triangular elements in 2D DGFEM.

Author:
Christoph Winkelmann, 2003

Definition at line 27 of file triangle.hh.


Member Typedef Documentation

typedef Real concepts::Element< Real >::type [inherited]

Definition at line 53 of file element.hh.


Constructor & Destructor Documentation

linDG2D::Triangle::Triangle ( const concepts::Triangle2d cell,
uint  nDoF,
uint  idx[] 
) [inline]

Constructor.

Creates a T matrix out of idx.

See also:
concepts::TIndex
Parameters:
cellCell of the element
nDoFNumber of degrees of freedom per element
idxDescribes the map local / global dof

Definition at line 35 of file triangle.hh.


Member Function Documentation

virtual const concepts::Triangle2d& linDG2D::Triangle::cell ( ) const [inline, virtual]

Returns the underlying geometrical triangle.

Implements linearFEM::Element.

Definition at line 42 of file triangle.hh.

Real3d concepts::ElementWithCell< Real >::elemMap ( const Real  coord_local) const [inline, inherited]

Definition at line 83 of file element.hh.

Here is the call graph for this function:

Real3d concepts::ElementWithCell< Real >::elemMap ( const Real2d coord_local) const [inline, inherited]

Definition at line 87 of file element.hh.

Here is the call graph for this function:

Real3d concepts::ElementWithCell< Real >::elemMap ( const Real3d coord_local) const [inline, inherited]

Definition at line 91 of file element.hh.

Here is the call graph for this function:

virtual const concepts::ElementGraphics<Real>* linDG2D::Triangle::graphics ( ) const [virtual]

Returns the element graphics object.

Reimplemented from concepts::Element< Real >.

virtual std::ostream& linDG2D::Triangle::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Reimplemented in linDG2D::TriangleP1, and linDG2D::TriangleP0.

virtual Real linDG2D::Triangle::shapeFct ( const uint  i,
const Real  xi1,
const Real  xi2 
) const [pure virtual]

Computes the value of the ith shape function in the point (xi1, xi2).

Precondition:
xi1, xi2 >= 0 and xi2 <= xi1 <= 1
Parameters:
iIndex of the shape fct. (0, 1, 2)
xi1First coordinate
xi2Second coordinate

Implemented in linDG2D::TriangleP1, and linDG2D::TriangleP0.

virtual Real linDG2D::Triangle::solution ( const concepts::Vector< Real > &  coeffs,
const Real  xi1,
const Real  xi2 
) const [pure virtual]

Returns the value of a mesh function within this element.

Parameters:
coeffsVector of coefficients representing the mesh function
xi1first reference element coordinate, in [0,1]
xi2second reference element coordinate, in [0,xi1]

Implemented in linDG2D::TriangleP1, and linDG2D::TriangleP0.

virtual const concepts::Triangle& linDG2D::Triangle::support ( ) const [inline, virtual]

Returns the topological triangle supporting the element.

Implements linearFEM::Element.

Definition at line 38 of file triangle.hh.

Here is the call graph for this function:

virtual const concepts::TMatrixBase<Real>& linearFEM::Element::T ( ) const [inline, virtual, inherited]

Returns the T matrix of this element.

Implements concepts::Element< Real >.

Definition at line 44 of file element.hh.

uint& concepts::Element< Real >::tag ( ) [inline, inherited]

Returns the tag.

Definition at line 65 of file element.hh.


Member Data Documentation

Cell under this element.

Definition at line 64 of file triangle.hh.

std::auto_ptr<TriangleGraphics> linDG2D::Triangle::graphics_ [static, private]

Graphics object of this element.

Definition at line 66 of file triangle.hh.

std::auto_ptr<concepts::TMatrixBase<Real> > linearFEM::Element::T_ [protected, inherited]

T matrix of this element.

Definition at line 47 of file element.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)