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

#include <elementMaps.hh>

Inheritance diagram for concepts::MapTriangle3d:
concepts::Map2d concepts::OutputOperator

Public Member Functions

MapTriangle3dclone () const
 Returns a copy of the map. More...
 
std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 
 MapTriangle3d (const char *map, Real scX, Real scY)
 Constructor. More...
 
 MapTriangle3d (const MapTriangle3d &map)
 Copy constructor. More...
 
 MapTriangle3d (Real3d vtx0, Real3d vtx1, Real3d vtx2)
 Constructor. More...
 
Real3d operator() (Real x, Real y) const
 Returns a point in 3D mapped from the unit square $[0,1]^2$ onto the element in the original mesh. More...
 
virtual bool straight () const
 
 ~MapTriangle3d ()
 

Private Member Functions

void operator= (const MapTriangle3d &)
 Private assignement operator. More...
 

Private Attributes

Real3d B1_
 Computed map. More...
 
Real3d B2_
 
Real3d b_
 
ucharmap_
 Parsed formula for the map. More...
 
Real scx_
 Right border of the x parameter domain. More...
 
Real scy_
 Right border of the y parameter domain. More...
 
uint sz_
 Length of the parsed formula. More...
 

Detailed Description

A 3D element map for a triangle.

Definition at line 1023 of file elementMaps.hh.

Constructor & Destructor Documentation

◆ MapTriangle3d() [1/3]

concepts::MapTriangle3d::MapTriangle3d ( const char *  map,
Real  scX,
Real  scY 
)

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
mapThe 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.
scXThe range of x is [0, scX].
scYThe range of y is [0, scY].

◆ MapTriangle3d() [2/3]

concepts::MapTriangle3d::MapTriangle3d ( Real3d  vtx0,
Real3d  vtx1,
Real3d  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}) ]$.

◆ MapTriangle3d() [3/3]

concepts::MapTriangle3d::MapTriangle3d ( const MapTriangle3d map)

Copy constructor.

◆ ~MapTriangle3d()

concepts::MapTriangle3d::~MapTriangle3d ( )
inline

Definition at line 1047 of file elementMaps.hh.

Member Function Documentation

◆ clone()

MapTriangle3d* concepts::MapTriangle3d::clone ( ) const
inline

Returns a copy of the map.

Definition at line 1068 of file elementMaps.hh.

◆ info()

std::ostream& concepts::Map2d::info ( std::ostream &  os) const
inlinevirtualinherited

◆ operator()()

Real3d concepts::MapTriangle3d::operator() ( Real  x,
Real  y 
) const
inline

Returns a point in 3D mapped from the unit square $[0,1]^2$ onto the element in the original mesh.

Returns
$F_K(x,y)$
Parameters
x$\in [0, 1]$
y$\in [0, 1]$

Definition at line 1056 of file elementMaps.hh.

◆ operator=()

void concepts::MapTriangle3d::operator= ( const MapTriangle3d )
private

Private assignement operator.

◆ straight()

virtual bool concepts::Map2d::straight ( ) const
inlinevirtualinherited

Reimplemented in concepts::VertexQuad2d, and concepts::VertexTriangle2d.

Definition at line 37 of file elementMaps.hh.

Member Data Documentation

◆ B1_

Real3d concepts::MapTriangle3d::B1_
private

Computed map.

Definition at line 1083 of file elementMaps.hh.

◆ B2_

Real3d concepts::MapTriangle3d::B2_
private

Definition at line 1083 of file elementMaps.hh.

◆ b_

Real3d concepts::MapTriangle3d::b_
private

Definition at line 1083 of file elementMaps.hh.

◆ map_

uchar* concepts::MapTriangle3d::map_
private

Parsed formula for the map.

Definition at line 1071 of file elementMaps.hh.

◆ scx_

Real concepts::MapTriangle3d::scx_
private

Right border of the x parameter domain.

Definition at line 1077 of file elementMaps.hh.

◆ scy_

Real concepts::MapTriangle3d::scy_
private

Right border of the y parameter domain.

Definition at line 1080 of file elementMaps.hh.

◆ sz_

uint concepts::MapTriangle3d::sz_
private

Length of the parsed formula.

Definition at line 1074 of file elementMaps.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich