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

Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
concepts::Triangle3d Class Reference

A 3D cell: triangle. More...

#include <cell2D.hh>

Inheritance diagram for concepts::Triangle3d:
Inheritance graph
[legend]
Collaboration diagram for concepts::Triangle3d:
Collaboration graph
[legend]

List of all members.

Classes

struct  Index
 Subclass of Quad2d representing its index. More...

Public Member Functions

Real3d center () const
 Returns the center of the cell.
Real3d chi (Real xi, Real eta) const
 The element map.
virtual const Triangle3dchild (uint i) const
 Returns a child.
virtual Triangle3dchild (uint i)
 Returns a child.
Triangle3dclone (Triangle &cntr, MapTriangle3d *map) const
 Returns a copy of itself.
Triangleconnector () const
 Returns the triangle connector (topology)
virtual Real3d elemMap (const Real coord_local) const
 Element map from point local coordinates in 1D.
virtual Real3d elemMap (const Real3d &coord_local) const
 Element map from point local coordinates in 3D.
Real3d elemMap (const Real2d &coord_local) const
 Element map from point local coordinates in 2D.
bool hasChildren () const
 Returns true if there is a least one child.
const MapTriangle3dmap () const
 Returns the element map.
 Triangle3d (Triangle &cntr, const MapTriangle3d &map)
 Constructor.
Real3d vertex (uint i) const
 Returns the coordinates of the ith vertex.
virtual ~Triangle3d ()

Protected Member Functions

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

Private Member Functions

 Triangle3d (Triangle &cntr, MapTriangle3d *map, const Index &key)
 Private constructor.

Private Attributes

Triangle3dchld_
 Pointer to the first child.
Trianglecntr_
 Reference to the triangle connector (topology)
Index idx_
 Index of this element.
Triangle3dlnk_
 Pointer to a sibling.
MapTriangle3dmap_
 Pointer to the element map.

Friends

std::ostream & operator<< (std::ostream &os, const Triangle3d::Index &i)

Detailed Description

A 3D cell: triangle.

If a triangle is subdivided, four new children are created.

See also:
Cell for more information on cells in a mesh.

Definition at line 642 of file cell2D.hh.


Constructor & Destructor Documentation

concepts::Triangle3d::Triangle3d ( Triangle cntr,
const MapTriangle3d map 
)

Constructor.

Takes the connector cntr and the element map map and creates a cell.

Parameters:
cntrTopological information of the triangle
mapElement map of this triangle
virtual concepts::Triangle3d::~Triangle3d ( ) [virtual]
concepts::Triangle3d::Triangle3d ( Triangle cntr,
MapTriangle3d map,
const Index key 
) [private]

Private constructor.


Member Function Documentation

Real3d concepts::Triangle3d::center ( ) const [inline, virtual]

Returns the center of the cell.

Implements concepts::Cell2.

Definition at line 707 of file cell2D.hh.

Here is the call graph for this function:

Real3d concepts::Triangle3d::chi ( Real  xi,
Real  eta 
) const

The element map.

Maps a corner from the unit square [0,1]2 onto the element. The three vertices are (0, 0), (1, 0) and (1, 1).

Returns:
Point in 3D in physical coordinates.
Parameters:
xi$\in [0,1]$
eta$\in [0,1]$
virtual Triangle3d* concepts::Triangle3d::child ( uint  i) [virtual]

Returns a child.

If no children exist, four new children are created. The triangle is cut into four new triangles by joining the midpoints of its edges.

Parameters:
iIndex of the child to be returned.

Implements concepts::Cell2.

virtual const Triangle3d* concepts::Triangle3d::child ( uint  i) const [virtual]

Returns a child.

If no children exist, none are created and 0 is returned.

Parameters:
iIndex of the child to be returned.

Implements concepts::Cell2.

Triangle3d* concepts::Triangle3d::clone ( Triangle cntr,
MapTriangle3d map 
) const [inline]

Returns a copy of itself.

Definition at line 713 of file cell2D.hh.

Here is the call graph for this function:

Triangle& concepts::Triangle3d::connector ( ) const [inline, virtual]

Returns the triangle connector (topology)

Implements concepts::Cell2.

Definition at line 690 of file cell2D.hh.

virtual Real3d concepts::Cell2::elemMap ( const Real3d coord_local) const [inline, virtual, inherited]

Element map from point local coordinates in 3D.

Reference element is 2D, third component is omitted.

Reimplemented from concepts::Cell.

Definition at line 100 of file cell.hh.

Here is the call graph for this function:

Real3d concepts::Triangle3d::elemMap ( const Real2d coord_local) const [inline, virtual]

Element map from point local coordinates in 2D.

Implements concepts::Cell2.

Definition at line 701 of file cell2D.hh.

Here is the call graph for this function:

virtual Real3d concepts::Cell::elemMap ( const Real  coord_local) const [virtual, inherited]

Element map from point local coordinates in 1D.

Reimplemented in concepts::Edge1d, and concepts::Edge2d.

bool concepts::Cell::hasChildren ( ) const [inline, inherited]

Returns true if there is a least one child.

Reimplemented in concepts::Quad2d, and concepts::InfiniteRect2d.

Definition at line 48 of file cell.hh.

Here is the call graph for this function:

virtual std::ostream& concepts::Triangle3d::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Implements concepts::Cell.

const MapTriangle3d* concepts::Triangle3d::map ( ) const [inline]

Returns the element map.

Definition at line 710 of file cell2D.hh.

Real3d concepts::Triangle3d::vertex ( uint  i) const [virtual]

Returns the coordinates of the ith vertex.

Implements concepts::Cell2.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Triangle3d::Index i 
) [friend]

Member Data Documentation

Pointer to the first child.

The children are stored in a linked list.

Definition at line 730 of file cell2D.hh.

Reference to the triangle connector (topology)

Definition at line 722 of file cell2D.hh.

Index of this element.

Definition at line 719 of file cell2D.hh.

Pointer to a sibling.

Definition at line 725 of file cell2D.hh.

Pointer to the element map.

Definition at line 733 of file cell2D.hh.


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

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