Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Private Attributes
concepts::VertexTriangle2d Class Reference

A 2D element map for a triangle. More...

#include <elementMaps.hh>

Inheritance diagram for concepts::VertexTriangle2d:
Inheritance graph
[legend]
Collaboration diagram for concepts::VertexTriangle2d:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual VertexTriangle2dclone () 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_

Detailed Description

A 2D element map for a triangle.

The map is specified by the three vertices.

Author:
Philipp Frauenfelder, 2001.
Examples:

meshes.cc.

Definition at line 552 of file elementMaps.hh.


Constructor & Destructor Documentation

concepts::VertexTriangle2d::VertexTriangle2d ( Real2d  vtx0,
Real2d  vtx1,
Real2d  vtx2 
)

Constructor.

Takes the three physical corners of the triangle and computes the element map: $F_K : S \rightarrow K$ with $\vec x = F_K(\xi) = B \cdot \vec \xi + \vec b$, where $\vec b = \mbox{vtx0}$ and $B = [ (\mbox{vtx1} - \vec b) (\mbox{vtx2} - \mbox{vtx1}) ]$.

concepts::VertexTriangle2d::VertexTriangle2d ( const VertexTriangle2d map)

Copy constructor.

virtual concepts::VertexTriangle2d::~VertexTriangle2d ( ) [virtual]

Member Function Documentation

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 $\{(\xi,\eta) : 0 \leq \eta \leq \xi \leq 1\}$ 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.


Member Data Documentation

Jacobian.

Definition at line 598 of file elementMaps.hh.

Vertices of the triangle.

Definition at line 596 of file elementMaps.hh.

Definition at line 596 of file elementMaps.hh.

Definition at line 596 of file elementMaps.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)