#include <cell3D.hh>
Classes | |
struct | Index |
Subclass of Tetrahedron3d representing its index. More... | |
Public Types | |
typedef uint | index_type |
Public Member Functions | |
Tetrahedron3d (Tetrahedron &cntr, const MapTetrahedron3d &map) | |
virtual Tetrahedron3d * | child (uint i) |
virtual const Tetrahedron3d * | child (uint i) const |
Tetrahedron & | connector () const |
Returns the connector. | |
Real3d | chi (Real xi, Real eta, Real zeta) const |
Real3d | center () const |
Returns the center of the cell. | |
Real3d | vertex (uint i) const |
Returns the coordinates of the ith vertex. | |
bool | hasChildren () const |
Returns true if there is a least one child. | |
virtual Real3d | elemMap (const Real coord_local) const |
Element map from point local coordinates in 1D. | |
virtual Real3d | elemMap (const Real2d &coord_local) const |
Element map from point local coordinates in 2D. | |
virtual Real3d | elemMap (const Real3d &coord_local) const |
Element map from point local coordinates in 3D. | |
Static Public Attributes | |
static uint | MAX_LEVEL |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
A 3D cell: tetrahedron. If a tetrahedron is subdivided, eight new tetrahedra are created. This happens automatically, if a child is requested.
concepts::Tetrahedron3d::Tetrahedron3d | ( | Tetrahedron & | cntr, |
const MapTetrahedron3d & | map | ||
) |
Constructor. Takes the connector cntr
and the element map map
and creates a cell.
cntr | Topological information of the tetrahedron |
map | Element map of the tetrahedron |
|
inlinevirtual |
Returns the center of the cell.
Implements concepts::Cell3.
The element map. Maps a point from the unit cube $[0,1]^3$ onto the element.
xi | |
eta | |
zeta |
|
virtual |
Returns a pointer to the ith child. Children are created if they do not already exist.
Implements concepts::Cell3.
|
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.
|
inlinevirtual |
Element map from point local coordinates in 1D.
Reimplemented in concepts::SphericalSurface3d, concepts::Sphere3d, concepts::Edge1d, and concepts::Edge2d.
Element map from point local coordinates in 2D.
Reimplemented in concepts::Triangle2d, concepts::Quad2d, concepts::InfiniteRect2d, concepts::Triangle3d, concepts::Quad3d, concepts::Cell2, concepts::SphericalSurface3d, concepts::Sphere3d, concepts::Edge1d, and concepts::Edge2d.
Element map from point local coordinates in 3D.
Reimplemented in concepts::Cell2, concepts::Hexahedron3d, concepts::SphericalSurface3d, concepts::Sphere3d, concepts::Edge1d, and concepts::Edge2d.
|
inlineinherited |
|
protectedvirtual |
Returns information in an output stream.
Implements concepts::Cell.
Returns the coordinates of the ith vertex.
Implements concepts::Cell3.