Flow123d  build_with_4.0.3-24aa4ef
Public Types | Static Public Member Functions | List of all members
MappingP1< dim, spacedim > Class Template Reference

Affine mapping between reference and actual cell. More...

#include <mapping_p1.hh>

Public Types

typedef arma::vec::fixed< dim+1 > BaryPoint
 
typedef arma::vec::fixed< spacedim > RealPoint
 
typedef arma::mat::fixed< spacedim, dim+1 > ElementMap
 

Static Public Member Functions

static UpdateFlags update_each (UpdateFlags flags)
 Determines which additional quantities have to be computed. More...
 
static ElementMap element_map (ElementAccessor< 3 > elm)
 
static arma::mat::fixed< spacedim, dim > jacobian (const ElementMap &coords)
 
static BaryPoint project_real_to_unit (const RealPoint &point, const ElementMap &map)
 
static RealPoint project_unit_to_real (const BaryPoint &point, const ElementMap &map)
 
static BaryPoint clip_to_element (BaryPoint &barycentric)
 
static bool contains_point (arma::vec point, ElementAccessor< 3 > elm)
 Test if element contains given point. More...
 

Detailed Description

template<unsigned int dim, unsigned int spacedim = 3>
class MappingP1< dim, spacedim >

Affine mapping between reference and actual cell.

Class MappingP1 implements the affine transformation of the reference cell onto the actual cell.

Parameters
dimDimension of the cells.
spacedimDimension of the Euclidean space.

Definition at line 58 of file mapping_p1.hh.

Member Typedef Documentation

◆ BaryPoint

template<unsigned int dim, unsigned int spacedim = 3>
typedef arma::vec::fixed<dim+1> MappingP1< dim, spacedim >::BaryPoint

Definition at line 62 of file mapping_p1.hh.

◆ ElementMap

template<unsigned int dim, unsigned int spacedim = 3>
typedef arma::mat::fixed<spacedim, dim+1> MappingP1< dim, spacedim >::ElementMap

Definition at line 64 of file mapping_p1.hh.

◆ RealPoint

template<unsigned int dim, unsigned int spacedim = 3>
typedef arma::vec::fixed<spacedim> MappingP1< dim, spacedim >::RealPoint

Definition at line 63 of file mapping_p1.hh.

Member Function Documentation

◆ clip_to_element()

template<unsigned int dim, unsigned int spacedim>
auto MappingP1< dim, spacedim >::clip_to_element ( BaryPoint barycentric)
static

Clip a point given by barycentric cocordinates to the element. If the point is out of the element the closest point projection to the element surface is used.

Definition at line 91 of file mapping_p1.cc.

Here is the caller graph for this function:

◆ contains_point()

template<unsigned int dim, unsigned int spacedim>
bool MappingP1< dim, spacedim >::contains_point ( arma::vec  point,
ElementAccessor< 3 >  elm 
)
static

Test if element contains given point.

Definition at line 96 of file mapping_p1.cc.

Here is the caller graph for this function:

◆ element_map()

template<unsigned int dim, unsigned int spacedim>
auto MappingP1< dim, spacedim >::element_map ( ElementAccessor< 3 >  elm)
static

Map from reference element (barycentric coords) to global coord system. Matrix(3, dim+1) M: x_real = M * x_bary; M columns are real coordinates of nodes.

Definition at line 48 of file mapping_p1.cc.

Here is the caller graph for this function:

◆ jacobian()

template<unsigned int dim, unsigned int spacedim>
auto MappingP1< dim, spacedim >::jacobian ( const ElementMap coords)
static

Compute jacobian matrix for an element given by the coords element map.

Definition at line 58 of file mapping_p1.cc.

Here is the caller graph for this function:

◆ project_real_to_unit()

template<unsigned int dim, unsigned int spacedim>
auto MappingP1< dim, spacedim >::project_real_to_unit ( const RealPoint point,
const ElementMap map 
)
static

Project given point in real coordinates to reference element (barycentic coordinates). Result vector have dimension dim()+1. Use RefElement<dim>::bary_to_local() to get local coordinates.

Definition at line 69 of file mapping_p1.cc.

Here is the caller graph for this function:

◆ project_unit_to_real()

template<unsigned int dim, unsigned int spacedim>
auto MappingP1< dim, spacedim >::project_unit_to_real ( const BaryPoint point,
const ElementMap map 
)
static

Project given point from reference element (barycentic coordinates) to real coordinates. Use RefElement<dim>::local_to_bary() to get barycentric coordinates in input.

Definition at line 85 of file mapping_p1.cc.

Here is the caller graph for this function:

◆ update_each()

template<unsigned int dim, unsigned int spacedim>
UpdateFlags MappingP1< dim, spacedim >::update_each ( UpdateFlags  flags)
static

Determines which additional quantities have to be computed.

Parameters
flagsUpdate flags for required quantities.
Returns
All necessary flags.

Definition at line 30 of file mapping_p1.cc.

Here is the caller graph for this function:

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