concepts::QuadNd Class Referenceabstract
Base class for a quadrilateral in any dimension. More...
#include <cell2D.hh>
Classes | |
struct | Index |
Subclass of QuadNd representing its index. More... | |
Public Types | |
typedef uint | index_type |
Public Member Functions | |
virtual Real3d | center () const =0 |
Returns the center of the cell. More... | |
virtual const Cell2 * | child (uint i) const =0 |
Returns a pointer to the ith child. More... | |
virtual Cell2 * | child (uint i)=0 |
Returns a pointer to the ith child. More... | |
Quad & | connector () const |
Returns the quadrilateral connector (topology) More... | |
virtual uint | dim () const =0 |
Returns the dimension of the space. 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 =0 |
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... | |
virtual Real | gramDeterminantRoot (const Real xi, const Real eta) const =0 |
Returns the square root of the Gram determinant. More... | |
bool | hasChildren () const |
Returns true if there is a least one child. More... | |
Level< 2 > | level () const |
Returns the level of the cell. More... | |
virtual Real | lineElement (const Real xi, const uint edge) const =0 |
QuadNd (Quad &cntr) | |
QuadNd (Quad &cntr, const Index &idx) | |
virtual Real3d | vertex (uint i) const =0 |
Returns the coordinates of the ith vertex. More... | |
Static Public Attributes | |
static uint | MAX_LEVEL |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const =0 |
Returns information in an output stream. More... | |
Protected Attributes | |
Quad & | cntr_ |
Reference to the quadrilateral connector (topology) More... | |
Index | idx_ |
Index of this element. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const QuadNd::Index &i) |
Detailed Description
Base class for a quadrilateral in any dimension.
Currently only used as base class for Quad3d
Member Typedef Documentation
◆ index_type
typedef uint concepts::QuadNd::index_type |
Constructor & Destructor Documentation
◆ QuadNd() [1/2]
◆ QuadNd() [2/2]
Member Function Documentation
◆ center()
|
pure virtualinherited |
Returns the center of the cell.
Implemented in concepts::Quad3d, concepts::Triangle3d, concepts::InfiniteRect2d, concepts::Quad2d, and concepts::Triangle2d.
◆ child() [1/2]
|
pure virtualinherited |
Returns a pointer to the ith child.
Children are not created if they do not already exist, instead 0 is returned.
Implements concepts::Cell.
Implemented in concepts::Quad3d, concepts::Triangle3d, concepts::InfiniteRect2d, concepts::Quad2d, and concepts::Triangle2d.
◆ child() [2/2]
|
pure virtualinherited |
Returns a pointer to the ith child.
Children are created if they do not already exist.
Implements concepts::Cell.
Implemented in concepts::Quad3d, concepts::Triangle3d, concepts::InfiniteRect2d, concepts::Quad2d, and concepts::Triangle2d.
◆ connector()
|
inlinevirtual |
Returns the quadrilateral connector (topology)
Implements concepts::Cell2.
◆ dim()
|
pure virtual |
Returns the dimension of the space.
Implemented in concepts::Quad3d, and concepts::Quad2d.
◆ 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 from concepts::Cell.
Implemented in concepts::Quad3d, concepts::Triangle3d, concepts::InfiniteRect2d, concepts::Quad2d, and concepts::Triangle2d.
◆ elemMap() [3/3]
Element map from point local coordinates in 3D.
Reference element is 2D, third component is omitted.
Reimplemented from concepts::Cell.
◆ gramDeterminantRoot()
|
pure virtual |
Returns the square root of the Gram determinant.
The Gram determinant is given by
where A is the Jacobian of the mapping. Note that for a Quad2d
this is the same as the determinant of the Jacobian.
Implemented in concepts::Quad3d, and concepts::Quad2d.
◆ hasChildren()
|
inlineinherited |
◆ info()
|
protectedpure virtualinherited |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Implemented in concepts::Sphere3d, concepts::SphericalSurface3d, concepts::Parallelepiped3d, concepts::Hexahedron3d, concepts::Tetrahedron3d, concepts::Quad3d, concepts::Triangle3d, concepts::InfiniteRect2d, concepts::InfiniteQuad2d, concepts::Quad2d, concepts::Triangle2d, concepts::Edge2d, concepts::Edge1d, and concepts::EdgeNd.
◆ level()
|
inline |
◆ lineElement()
Implemented in concepts::Quad3d, and concepts::Quad2d.
◆ vertex()
|
pure virtualinherited |
Returns the coordinates of the ith vertex.
Implemented in concepts::Quad3d, concepts::Triangle3d, concepts::InfiniteQuad2d, concepts::Quad2d, and concepts::Triangle2d.
Friends And Related Function Documentation
◆ operator<<
|
friend |
Member Data Documentation
◆ cntr_
|
protected |
◆ idx_
|
protected |
◆ MAX_LEVEL
The documentation for this class was generated from the following file:
- geometry/cell2D.hh