A 2D element map for a triangle. More...
#include <elementMaps.hh>


Public Member Functions | |
| virtual VertexTriangle2d * | clone () const |
| Creates a clone of itself and returns it. | |
| virtual MapReal2d | jacobian (const Real x, const Real y) const |
| Returns the Jacobian in a 2D linear map. | |
| virtual Real | jacobianDeterminant (const Real x, const Real y) const |
| Returns true if the resulting triangle has curved edges. | |
| virtual MapReal2d | jacobianInverse (const Real x, const Real y) const |
| Returns the inverse of the Jacobian in a 2D linear map. | |
| Real2d | operator() (const Real x, const Real y) const |
| Application operator. | |
| virtual bool | straight () const |
| Returns true if the resulting triangle has straight edges. | |
| VertexTriangle2d (const VertexTriangle2d &map) | |
| Copy constructor. | |
| VertexTriangle2d (Real2d vtx0, Real2d vtx1, Real2d vtx2) | |
| Constructor. | |
| virtual | ~VertexTriangle2d () |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| MapReal2d | jacobian_ |
| Jacobian. | |
| Real2d | vtx0_ |
| Vertices of the triangle. | |
| Real2d | vtx1_ |
| Real2d | vtx2_ |
A 2D element map for a triangle.
The map is specified by the three vertices.
Definition at line 552 of file elementMaps.hh.
Constructor.
Takes the three physical corners of the triangle and computes the element map:
with
, where
and
.
| concepts::VertexTriangle2d::VertexTriangle2d | ( | const VertexTriangle2d & | map | ) |
Copy constructor.
| virtual concepts::VertexTriangle2d::~VertexTriangle2d | ( | ) | [virtual] |
| virtual VertexTriangle2d* concepts::VertexTriangle2d::clone | ( | ) | const [virtual] |
Creates a clone of itself and returns it.
This clone function implements a virtual constructor (cf. Stroustrup p. 424).
Implements concepts::MappingTriangle2d.
| virtual std::ostream& concepts::VertexTriangle2d::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::Map2d.
| virtual MapReal2d concepts::VertexTriangle2d::jacobian | ( | const Real | x, |
| const Real | y | ||
| ) | const [inline, virtual] |
Returns the Jacobian in a 2D linear map.
Implements concepts::MappingTriangle2d.
Definition at line 575 of file elementMaps.hh.
| virtual Real concepts::MappingTriangle2d::jacobianDeterminant | ( | const Real | x, |
| const Real | y | ||
| ) | const [virtual, inherited] |
Returns true if the resulting triangle has curved edges.
In this case the integration routines have to take into account that the Jacobian is changing. Otherwise, the Jacobian is a constant. Returns determinant of the Jacobian
| virtual MapReal2d concepts::MappingTriangle2d::jacobianInverse | ( | const Real | x, |
| const Real | y | ||
| ) | const [virtual, inherited] |
Returns the inverse of the Jacobian in a 2D linear map.
| Real2d concepts::VertexTriangle2d::operator() | ( | const Real | x, |
| const Real | y | ||
| ) | const [inline, virtual] |
Application operator.
Maps the point from the parameter domain
onto a triangle in the 2D physical space.
Implements concepts::MappingTriangle2d.
Definition at line 579 of file elementMaps.hh.
| virtual bool concepts::VertexTriangle2d::straight | ( | ) | const [inline, virtual] |
Returns true if the resulting triangle has straight edges.
In this case the integration routines simplify since the Jacobian is constant.
Reimplemented from concepts::Map2d.
Definition at line 573 of file elementMaps.hh.
Jacobian.
Definition at line 598 of file elementMaps.hh.
Real2d concepts::VertexTriangle2d::vtx0_ [private] |
Vertices of the triangle.
Definition at line 596 of file elementMaps.hh.
Real2d concepts::VertexTriangle2d::vtx1_ [private] |
Definition at line 596 of file elementMaps.hh.
Real2d concepts::VertexTriangle2d::vtx2_ [private] |
Definition at line 596 of file elementMaps.hh.