#include <cell2D.hh>
Classes | |
| struct | Index |
| Subclass of Quad2d representing its index. More... | |
Public Types | |
| typedef uint | index_type |
Public Member Functions | |
| Triangle3d (Triangle &cntr, const MapTriangle3d &map) | |
| virtual Triangle3d * | child (uint i) |
| virtual const Triangle3d * | child (uint i) const |
| Triangle & | connector () const |
| Returns the triangle connector (topology) | |
| Real3d | chi (Real xi, Real eta) const |
| Real3d | elemMap (const Real2d &coord_local) const |
| Element map from point local coordinates in 2D. | |
| Real3d | vertex (uint i) const |
| Returns the coordinates of the ith vertex. | |
| Real3d | center () const |
| Returns the center of the cell. | |
| const MapTriangle3d * | map () const |
| Returns the element map. | |
| Triangle3d * | clone (Triangle &cntr, MapTriangle3d *map) const |
| Returns a copy of itself. | |
| virtual Real3d | elemMap (const Real3d &coord_local) const |
| virtual Real3d | elemMap (const Real coord_local) const |
| Element map from point local coordinates in 1D. | |
| bool | hasChildren () const |
| Returns true if there is a least one child. | |
Static Public Attributes | |
| static uint | MAX_LEVEL |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Triangle3d::Index &i) |
A 3D cell: triangle. If a triangle is subdivided, four new children are created.
| concepts::Triangle3d::Triangle3d | ( | Triangle & | cntr, |
| const MapTriangle3d & | map | ||
| ) |
Constructor. Takes the connector cntr and the element map map and creates a cell.
| cntr | Topological information of the triangle |
| map | Element map of this triangle |
|
inlinevirtual |
Returns the center of the cell.
Implements concepts::Cell2.
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).
| xi | |
| eta |
|
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.
| i | Index of the child to be returned. |
Implements concepts::Cell2.
|
virtual |
Returns a child. If no children exist, none are created and 0 is returned.
| i | Index of the child to be returned. |
Implements concepts::Cell2.
|
inline |
|
inlinevirtual |
Returns the triangle connector (topology)
Implements concepts::Cell2.
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.
Implements concepts::Cell2.
Element map from point local coordinates in 3D
Reference element is 2D, third component is omitted.
Reimplemented from concepts::Cell.
|
inlineinherited |
|
protectedvirtual |
Returns information in an output stream.
Implements concepts::Cell.
|
inline |
Returns the coordinates of the ith vertex.
Implements concepts::Cell2.