concepts::VertexTriangle2d Class Reference
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. More... | |
virtual MapReal2d | jacobian (const Real x, const Real y) const |
Returns the Jacobian in a 2D linear map. More... | |
virtual Real | jacobianDeterminant (const Real x, const Real y) const |
Returns true if the resulting triangle has curved edges. More... | |
virtual MapReal2d | jacobianInverse (const Real x, const Real y) const |
Returns the inverse of the Jacobian in a 2D linear map. More... | |
Real2d | operator() (const Real x, const Real y) const |
Application operator. More... | |
virtual bool | straight () const |
Returns true if the resulting triangle has straight edges. More... | |
VertexTriangle2d (const VertexTriangle2d &map) | |
Copy constructor. More... | |
VertexTriangle2d (Real2d vtx0, Real2d vtx1, Real2d vtx2) | |
Constructor. More... | |
virtual | ~VertexTriangle2d () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
MapReal2d | jacobian_ |
Jacobian. More... | |
Real2d | vtx0_ |
Vertices of the triangle. More... | |
Real2d | vtx1_ |
Real2d | vtx2_ |
Detailed Description
A 2D element map for a triangle.
The map is specified by the three vertices.
- Examples
- meshes.cc.
Definition at line 557 of file elementMaps.hh.
Constructor & Destructor Documentation
◆ VertexTriangle2d() [1/2]
Constructor.
Takes the three physical corners of the triangle and computes the element map: with , where and .
◆ VertexTriangle2d() [2/2]
concepts::VertexTriangle2d::VertexTriangle2d | ( | const VertexTriangle2d & | map | ) |
Copy constructor.
◆ ~VertexTriangle2d()
|
virtual |
Member Function Documentation
◆ clone()
|
virtual |
Creates a clone of itself and returns it.
This clone function implements a virtual constructor (cf. Stroustrup p. 424).
Implements concepts::MappingTriangle2d.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Map2d.
◆ jacobian()
|
inlinevirtual |
Returns the Jacobian in a 2D linear map.
Implements concepts::MappingTriangle2d.
Definition at line 580 of file elementMaps.hh.
◆ jacobianDeterminant()
|
virtualinherited |
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
◆ jacobianInverse()
|
virtualinherited |
Returns the inverse of the Jacobian in a 2D linear map.
◆ operator()()
Application operator.
Maps the point from the parameter domain onto a triangle in the 2D physical space.
Implements concepts::MappingTriangle2d.
Definition at line 584 of file elementMaps.hh.
◆ straight()
|
inlinevirtual |
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 578 of file elementMaps.hh.
Member Data Documentation
◆ jacobian_
|
private |
Jacobian.
Definition at line 603 of file elementMaps.hh.
◆ vtx0_
|
private |
Vertices of the triangle.
Definition at line 601 of file elementMaps.hh.
◆ vtx1_
|
private |
Definition at line 601 of file elementMaps.hh.
◆ vtx2_
|
private |
Definition at line 601 of file elementMaps.hh.
The documentation for this class was generated from the following file:
- geometry/elementMaps.hh