A 1D cell: edge in 2D. More...
#include <cell1D.hh>


Public Member Functions | |
| virtual Real3d | center () const |
| Returns the center of the cell. | |
| Real2d | chi (Real xi) const |
| The element map. | |
| virtual Edge2d * | child (uint i) |
| Returns a child. | |
| virtual const Edge2d * | child (uint i) const |
| Returns a pointer to the ith child. | |
| virtual Edge2d * | clone () const |
| Returns a copy of itself. | |
| virtual Edge2d * | clone (Edge &cntr, MappingEdge2d *map) const |
| Edge & | connector () const |
| Returns the connector (topology) | |
| Z2 & | dir () |
| Access to the direction of the normal vector. | |
| Z2 | dir () const |
| Returns if the normal vector is right or left pointing. | |
| Edge2d (Edge &cntr, const MappingEdge2d &map, const Z2 dir=0) | |
| Constructor. | |
| virtual concepts::Real3d | elemMap (const Real3d &xi) const |
| Element map from point local coordinates in 3D. | |
| virtual concepts::Real3d | elemMap (const Real xi) const |
| Element map from point local coordinates in 1D. | |
| virtual concepts::Real3d | elemMap (const Real2d &xi) const |
| Element map from point local coordinates in 2D. | |
| bool | hasChildren () const |
| Returns true if there is a least one child. | |
| Real2d | jacobian (Real x) const |
| Returns the Jacobian. | |
| Real | jacobianDeterminant (const Real x) const |
| Returns the determinant of the Jacobian. | |
| uchar | level () const |
| Returns the level of the cell. | |
| const MappingEdge2d * | map () const |
| Real2d | n0 (Real x) const |
| Returns the normal vector on a point of the edge. | |
| void | swapdir () |
| Swaps the normal direction. | |
| virtual Real3d | vertex (const uint i) const |
| Returns the coordinates of the ith vertex. | |
| virtual | ~Edge2d () |
Protected Member Functions | |
| Edge2d (Edge &cntr, MappingEdge2d *map, const Z2 dir, const uint l, const uint i) | |
| Protected copy constructor. | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Protected Attributes | |
| Edge & | cntr_ |
| Reference to the edge (topology) | |
| Z2 | dir_ |
| Direction of the normal vector. | |
| uint | i_ |
| Index of the element (ie. left or right child) | |
| uint | l_ |
| Level of the element. | |
| MappingEdge2d * | map_ |
| Pointer to the element map. | |
Private Attributes | |
| Edge2d * | chld_ |
| Pointer to the first child. | |
| Edge2d * | lnk_ |
| Pointer to a sibling. | |
| concepts::Edge2d::Edge2d | ( | Edge & | cntr, |
| const MappingEdge2d & | map, | ||
| const Z2 | dir = 0 |
||
| ) |
Constructor.
| cntr | The edge which should be represented |
| map | Element map of the edge |
| dir | direction of the normal vector when looking along direction of the edge (from first vertex to second) dir = 0 : Right normal dir = 1 : Left normal |
| virtual concepts::Edge2d::~Edge2d | ( | ) | [virtual] |
| concepts::Edge2d::Edge2d | ( | Edge & | cntr, |
| MappingEdge2d * | map, | ||
| const Z2 | dir, | ||
| const uint | l, | ||
| const uint | i | ||
| ) | [protected] |
| virtual Real3d concepts::EdgeNd::center | ( | ) | const [virtual, inherited] |
Returns the center of the cell.
Implements concepts::Cell1.
The element map.
Maps a point from the unit intervall [0,1] onto the element.
| xi | |
| virtual const Edge2d* concepts::Edge2d::child | ( | uint | i | ) | const [virtual] |
Returns a pointer to the ith child.
Children are not created if they do not already exist, instead 0 is returned.
Implements concepts::EdgeNd.
| virtual Edge2d* concepts::Edge2d::child | ( | uint | i | ) | [virtual] |
Returns a child.
If no children exist, two new children are created. The edge is cut in the middle.
| i | Index of the child to be returned. |
Implements concepts::EdgeNd.
| virtual Edge2d* concepts::Edge2d::clone | ( | ) | const [virtual] |
Returns a copy of itself.
| virtual Edge2d* concepts::Edge2d::clone | ( | Edge & | cntr, |
| MappingEdge2d * | map | ||
| ) | const [inline, virtual] |
| Edge& concepts::EdgeNd::connector | ( | ) | const [inline, virtual, inherited] |
Returns the connector (topology)
Implements concepts::Cell1.
| Z2 concepts::Edge2d::dir | ( | ) | const [inline] |
| Z2& concepts::Edge2d::dir | ( | ) | [inline] |
| virtual concepts::Real3d concepts::Edge2d::elemMap | ( | const Real | coord_local | ) | const [virtual] |
Element map from point local coordinates in 1D.
Reimplemented from concepts::Cell.
| virtual concepts::Real3d concepts::Edge2d::elemMap | ( | const Real2d & | coord_local | ) | const [virtual] |
Element map from point local coordinates in 2D.
Reimplemented from concepts::Cell.
| virtual concepts::Real3d concepts::Edge2d::elemMap | ( | const Real3d & | coord_local | ) | const [virtual] |
Element map from point local coordinates in 3D.
Reimplemented from concepts::Cell.
| bool concepts::Cell::hasChildren | ( | ) | const [inline, inherited] |
Returns true if there is a least one child.
Reimplemented in concepts::Quad2d, and concepts::InfiniteRect2d.
Definition at line 48 of file cell.hh.

| virtual std::ostream& concepts::Edge2d::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::EdgeNd.
Returns the determinant of the Jacobian.
Implements concepts::EdgeNd.
Definition at line 184 of file cell1D.hh.

| uchar concepts::Edge2d::level | ( | ) | const [inline] |
| const MappingEdge2d* concepts::Edge2d::map | ( | ) | const [inline] |
| void concepts::Edge2d::swapdir | ( | ) | [inline] |
| virtual Real3d concepts::EdgeNd::vertex | ( | const uint | i | ) | const [virtual, inherited] |
Returns the coordinates of the ith vertex.
Implements concepts::Cell1.
Edge2d* concepts::Edge2d::chld_ [private] |
Edge& concepts::EdgeNd::cntr_ [protected, inherited] |
Z2 concepts::Edge2d::dir_ [protected] |
uint concepts::Edge2d::i_ [protected] |
uint concepts::Edge2d::l_ [protected] |
Edge2d* concepts::Edge2d::lnk_ [private] |
MappingEdge2d* concepts::Edge2d::map_ [protected] |