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

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

A 3D cell: parallelepiped. More...

#include <cell3D.hh>

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

List of all members.

Classes

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

Public Member Functions

Real3d center () const
 Returns the center of the cell.
Real3d chi (Real xi, Real eta, Real zeta) const
 The element map.
virtual const Parallelepiped3dchild (uint c) const
 Returns a pointer to the ith child.
virtual Parallelepiped3dchild (uint c)
 Returns a pointer to the ith child.
Hexahedronconnector () const
 Returns the connector.
virtual Real3d elemMap (const Real2d &coord_local) const
 Element map from point local coordinates in 2D.
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.
bool hasChildren () const
 Returns true if there is a least one child.
 Parallelepiped3d (Hexahedron &cntr, const MapParallelepiped3d &map)
 Constructor.
Real3d vertex (uint i) const
 Returns the coordinates of the ith vertex.
virtual ~Parallelepiped3d ()

Protected Member Functions

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

Private Member Functions

 Parallelepiped3d (Hexahedron &cntr, MapParallelepiped3d *map, const Index &idx)
 Private constructor.

Private Attributes

Parallelepiped3dchld_
 Pointer to the first child.
Hexahedroncntr_
 Reference to the tetrahedron connector (topology)
Index idx_
 Index of this element.
Parallelepiped3dlnk_
 Pointer to a sibling.
MapParallelepiped3dmap_
 Pointer to the element map.

Detailed Description

A 3D cell: parallelepiped.

If a parallelepiped is subdivided, eight new parallelepipeds are created. This happens automatically, if a child is requested.

Author:
Gregor Schmidlin, 2003

Definition at line 478 of file cell3D.hh.


Constructor & Destructor Documentation

concepts::Parallelepiped3d::Parallelepiped3d ( Hexahedron cntr,
const MapParallelepiped3d map 
)

Constructor.

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

Parameters:
cntrTopological information of the tetrahedron
mapElement map of the tetrahedron
virtual concepts::Parallelepiped3d::~Parallelepiped3d ( ) [virtual]
concepts::Parallelepiped3d::Parallelepiped3d ( Hexahedron cntr,
MapParallelepiped3d map,
const Index idx 
) [private]

Private constructor.


Member Function Documentation

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

Returns the center of the cell.

Implements concepts::Cell3.

Definition at line 530 of file cell3D.hh.

Here is the call graph for this function:

Real3d concepts::Parallelepiped3d::chi ( Real  xi,
Real  eta,
Real  zeta 
) const

The element map.

Maps a point from the unit cube $[0,1]^3$ onto the element.

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

Returns a pointer to the ith child.

Children are not created if they do not already exist, instead 0 is returned.

Implements concepts::Cell3.

virtual Parallelepiped3d* concepts::Parallelepiped3d::child ( uint  i) [virtual]

Returns a pointer to the ith child.

Children are created if they do not already exist.

Implements concepts::Cell3.

Hexahedron& concepts::Parallelepiped3d::connector ( ) const [inline, virtual]

Returns the connector.

Implements concepts::Cell3.

Definition at line 519 of file cell3D.hh.

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.

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

Element map from point local coordinates in 3D.

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

virtual Real3d concepts::Cell::elemMap ( const Real2d coord_local) const [virtual, inherited]
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::Parallelepiped3d::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Implements concepts::Cell.

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

Returns the coordinates of the ith vertex.

Implements concepts::Cell3.


Member Data Documentation

Pointer to the first child.

The children are stored in a linked list.

Definition at line 548 of file cell3D.hh.

Reference to the tetrahedron connector (topology)

Definition at line 540 of file cell3D.hh.

Index of this element.

Definition at line 537 of file cell3D.hh.

Pointer to a sibling.

Definition at line 543 of file cell3D.hh.

Pointer to the element map.

Definition at line 551 of file cell3D.hh.


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

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