concepts::MapTriangle2d Class Reference
A 2D element map for a triangle. More...
#include <elementMaps.hh>
Public Member Functions | |
virtual MapTriangle2d * | 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... | |
MapTriangle2d (char *map, const Real scX, const Real scY) | |
Constructor. More... | |
MapTriangle2d (const MapTriangle2d &map) | |
Copy constructor. More... | |
Real2d | operator() (const Real x, const Real y) const |
Application operator. More... | |
virtual bool | straight () const |
virtual | ~MapTriangle2d () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
uchar * | map_ |
Parsed formula for the map. More... | |
const Real | scx_ |
Right border of the x parameter domain. More... | |
const Real | scy_ |
Right border of the y parameter domain. More... | |
uint | sz_ |
Length of the parsed formula. More... | |
Detailed Description
A 2D element map for a triangle.
The map is specified by a formula. For easier construction of the element map, the parameter domain for the formula is a rectangle . The left side of the rectangle is degenerated into a point using a Duffy transformation.
Definition at line 615 of file elementMaps.hh.
Constructor & Destructor Documentation
◆ MapTriangle2d() [1/2]
Constructor.
The values of scX and scY are only for the map, they are not needed by the user for mapping a point from the reference element onto the real element.
- Parameters
-
map The element map for this triangle as a string, x and y are the allowed variables, the first and the second component are separated by a comma. scX The range of x is [0, scX]. scY The range of y is [0, scY].
◆ MapTriangle2d() [2/2]
concepts::MapTriangle2d::MapTriangle2d | ( | const MapTriangle2d & | map | ) |
Copy constructor.
◆ ~MapTriangle2d()
|
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()
Returns the Jacobian in a 2D linear map.
Implements concepts::MappingTriangle2d.
◆ 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 637 of file elementMaps.hh.
◆ straight()
|
inlinevirtualinherited |
Reimplemented in concepts::VertexQuad2d, and concepts::VertexTriangle2d.
Definition at line 37 of file elementMaps.hh.
Member Data Documentation
◆ map_
|
private |
Parsed formula for the map.
Definition at line 648 of file elementMaps.hh.
◆ scx_
|
private |
Right border of the x parameter domain.
Definition at line 654 of file elementMaps.hh.
◆ scy_
|
private |
Right border of the y parameter domain.
Definition at line 657 of file elementMaps.hh.
◆ sz_
|
private |
Length of the parsed formula.
Definition at line 651 of file elementMaps.hh.
The documentation for this class was generated from the following file:
- geometry/elementMaps.hh