concepts::Parallelepiped3d Class Reference
A 3D cell: parallelepiped. More...
#include <cell3D.hh>
Classes | |
struct | Index |
Subclass of Tetrahedron3d representing its index. More... | |
Public Types | |
typedef uint | index_type |
Public Member Functions | |
Real3d | center () const |
Returns the center of the cell. More... | |
Real3d | chi (Real xi, Real eta, Real zeta) const |
The element map. More... | |
virtual Parallelepiped3d * | child (uint c) |
Returns a pointer to the ith child. More... | |
virtual const Parallelepiped3d * | child (uint c) const |
Returns a pointer to the ith child. More... | |
Hexahedron & | connector () const |
Returns the connector. More... | |
virtual Real3d | elemMap (const Real coord_local) const |
Element map from point local coordinates in 1D. More... | |
virtual Real3d | elemMap (const Real2d &coord_local) const |
Element map from point local coordinates in 2D. More... | |
virtual Real3d | elemMap (const Real3d &coord_local) const |
Element map from point local coordinates in 3D. More... | |
bool | hasChildren () const |
Returns true if there is a least one child. More... | |
Parallelepiped3d (Hexahedron &cntr, const MapParallelepiped3d &map) | |
Constructor. More... | |
Real3d | vertex (uint i) const |
Returns the coordinates of the ith vertex. More... | |
virtual | ~Parallelepiped3d () |
Static Public Attributes | |
static uint | MAX_LEVEL |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Member Functions | |
Parallelepiped3d (Hexahedron &cntr, MapParallelepiped3d *map, const Index &idx) | |
Private constructor. More... | |
Private Attributes | |
Parallelepiped3d * | chld_ |
Pointer to the first child. More... | |
Hexahedron & | cntr_ |
Reference to the tetrahedron connector (topology) More... | |
Index | idx_ |
Index of this element. More... | |
Parallelepiped3d * | lnk_ |
Pointer to a sibling. More... | |
MapParallelepiped3d * | map_ |
Pointer to the element map. More... | |
Detailed Description
A 3D cell: parallelepiped.
If a parallelepiped is subdivided, eight new parallelepipeds are created. This happens automatically, if a child is requested.
Member Typedef Documentation
◆ index_type
typedef uint concepts::Parallelepiped3d::index_type |
Constructor & Destructor Documentation
◆ Parallelepiped3d() [1/2]
concepts::Parallelepiped3d::Parallelepiped3d | ( | Hexahedron & | cntr, |
const MapParallelepiped3d & | map | ||
) |
Constructor.
Takes the connector cntr
and the element map map
and creates a cell.
- Parameters
-
cntr Topological information of the tetrahedron map Element map of the tetrahedron
◆ ~Parallelepiped3d()
|
virtual |
◆ Parallelepiped3d() [2/2]
|
private |
Private constructor.
Member Function Documentation
◆ center()
|
inlinevirtual |
Returns the center of the cell.
Implements concepts::Cell3.
◆ chi()
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 eta zeta
◆ child() [1/2]
|
virtual |
Returns a pointer to the ith child.
Children are created if they do not already exist.
Implements concepts::Cell3.
◆ child() [2/2]
|
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.
◆ connector()
|
inlinevirtual |
◆ elemMap() [1/3]
Element map from point local coordinates in 1D.
Reimplemented in concepts::Edge2d, concepts::Edge1d, concepts::Sphere3d, and concepts::SphericalSurface3d.
◆ elemMap() [2/3]
Element map from point local coordinates in 2D.
Reimplemented in concepts::Edge2d, concepts::Edge1d, concepts::Sphere3d, concepts::SphericalSurface3d, concepts::Cell2, concepts::Quad3d, concepts::Triangle3d, concepts::InfiniteRect2d, concepts::Quad2d, and concepts::Triangle2d.
◆ elemMap() [3/3]
Element map from point local coordinates in 3D.
Reimplemented in concepts::Edge2d, concepts::Edge1d, concepts::Sphere3d, concepts::SphericalSurface3d, concepts::Hexahedron3d, and concepts::Cell2.
◆ hasChildren()
|
inlineinherited |
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Implements concepts::Cell.
◆ vertex()
|
virtual |
Returns the coordinates of the ith vertex.
Implements concepts::Cell3.
Member Data Documentation
◆ chld_
|
private |
◆ cntr_
|
private |
◆ idx_
|
private |
◆ lnk_
|
private |
◆ map_
|
private |
◆ MAX_LEVEL
The documentation for this class was generated from the following file:
- geometry/cell3D.hh