concepts::InfiniteRect2d Class Reference
A 2D cell: infinite rectangle. More...
#include <cell2D.hh>
Public Member Functions | |
Real3d | center () const |
Makes no sense. Calling throws an exception. More... | |
virtual Real2d | chi (Real xi, Real eta) const |
Evaluates the element map. More... | |
virtual InfiniteRect2d * | child (uint i) |
Returns a child. More... | |
virtual const InfiniteRect2d * | child (uint i) const |
Returns a child. More... | |
InfiniteRect2d * | clone (InfiniteQuad &cntr, const Real2d &vtx0, const Real2d &vtx1) const |
Returns a copy of itself. More... | |
InfiniteQuad & | connector () const |
Returns the quadrilateral connector (topology) More... | |
virtual Real3d | elemMap (const Real coord_local) const |
Element map from point local coordinates in 1D. More... | |
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 |
InfiniteRect2d (InfiniteQuad &cntr, const Real2d &vtx0, const Real2d &vtx1) | |
Constructor. More... | |
virtual MapReal2d | jacobian (const Real xi, const Real eta) const |
Real3d | vertex (uint i) const |
Returns the coordinates of the ith vertex. More... | |
virtual | ~InfiniteRect2d () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
InfiniteRect2d * | chld_ |
Pointer to the first child. More... | |
InfiniteQuad & | cntr_ |
Reference to the quadrilateral connector (topology) More... | |
InfiniteRect2d * | lnk_ |
Pointer to a sibling. More... | |
UnitNd< 2 > | n_ |
Direction of the infinite edges (normalised) More... | |
Real2d | vtx_ [2] |
Vertices. More... | |
Detailed Description
A 2D cell: infinite rectangle.
If a infinite rectangle is subdivided, two new infinite infinite rectangles are created. This happens automatically, if a child is requested
- See also
- Cell for more information on cells in a mesh.
Constructor & Destructor Documentation
◆ InfiniteRect2d()
concepts::InfiniteRect2d::InfiniteRect2d | ( | InfiniteQuad & | cntr, |
const Real2d & | vtx0, | ||
const Real2d & | vtx1 | ||
) |
Constructor.
Takes the connector cntr
and the element map map
and creates a cell.
- Parameters
-
cntr Topological information of the infinite quadrilateral map Element map of the quadrilateral
◆ ~InfiniteRect2d()
|
virtual |
Member Function Documentation
◆ center()
|
virtual |
Makes no sense. Calling throws an exception.
Implements concepts::Cell2.
◆ chi()
Evaluates the element map.
Maps a point from the the reference coordinates in [0,1][0,\infty) onto the physical coordinates.
- Returns
- Point in 2D in physical coordinates.
- Parameters
-
xi eta
Implements concepts::InfiniteQuad2d.
◆ child() [1/2]
|
virtual |
Returns a child.
If no children exist, four new children are created. The quadrilateral is cut into four new quadrilaterals by joining the midpoints of its edges.
- Parameters
-
i Index of the child to be returned.
Implements concepts::Cell2.
◆ child() [2/2]
|
virtual |
Returns a child.
If no children exist, none are created and 0 is returned.
- Parameters
-
i Index of the child to be returned.
Implements concepts::Cell2.
◆ clone()
|
inline |
◆ connector()
|
inlinevirtualinherited |
Returns the quadrilateral connector (topology)
Implements concepts::Cell2.
◆ 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.
Implements concepts::Cell2.
◆ elemMap() [3/3]
Element map from point local coordinates in 3D.
Reference element is 2D, third component is omitted.
Reimplemented from concepts::Cell.
◆ hasChildren()
|
inline |
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::InfiniteQuad2d.
◆ jacobian()
|
virtual |
Implements concepts::InfiniteQuad2d.
◆ vertex()
|
virtualinherited |
Returns the coordinates of the ith vertex.
Implements concepts::Cell2.
Member Data Documentation
◆ chld_
|
private |
◆ cntr_
|
privateinherited |
◆ lnk_
|
private |
◆ n_
|
private |
◆ vtx_
|
privateinherited |
The documentation for this class was generated from the following file:
- geometry/cell2D.hh