#include <edge.hh>


Public Member Functions | |
| template<class F > | |
| std::pair< hp1D::Element< F > *, concepts::Edge2d * > | edge (const Quad< F > &elm, const ushort k, bool emptyElm=true, hp1D::Element< F > *edge=0) |
Returns the element and the geometrical cell as pair belonging to the k th edge in the quadrilateral element elm. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Member Functions | |
| virtual Real | weight_ (bool first, bool rho) const |
| Returns the weight of the contribution of this cell to the edge. | |
| std::pair<hp1D::Element<F>*,concepts::Edge2d*> hp2D::QuadEdgeBase::edge | ( | const Quad< F > & | elm, |
| const ushort | k, | ||
| bool | emptyElm = true, |
||
| hp1D::Element< F > * | edge = 0 |
||
| ) | [inherited] |
Returns the element and the geometrical cell as pair belonging to the k th edge in the quadrilateral element elm.
The polynomial degree and the T matrix are set properly.
The geometrical cell is included in the element as reference, so it has to be deleted after deletion of the element.
If edge is given than degrees of freedom are added by adapting the T-matrix. This is the case when taking trace from both sides of an edge (e.g., mean or jump). In that case the cell is not returned in the pair, i.e., the returned pointer to the cell (Edge2d) is 0.
| emptyElm | Incorporate also empty elements (no dof). |
| edge | Element to which dof are added (adaptation of T-matrix) |
| virtual std::ostream& hp2D::QuadEdgeMean::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from hp2D::QuadEdgeBase.
| virtual Real hp2D::QuadEdgeMean::weight_ | ( | bool | first, |
| bool | rho | ||
| ) | const [private, virtual] |
Returns the weight of the contribution of this cell to the edge.
| first | flag if this is first contribution for this edge |
| rho | orientation of the edge inside the quad (rho=1: clockwise) |
Note, that in neighbouring cells the orientation of the edge is opposite.
Implements hp2D::QuadEdgeBase.