Flow123d
JS_before_hm-984-g3a19f2f
|
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... | |
Affine mapping between reference and actual cell.
Class MappingP1 implements the affine transformation of the reference cell onto the actual cell.
dim | Dimension of the cells. |
spacedim | Dimension of the Euclidean space. |
Definition at line 58 of file mapping_p1.hh.
typedef arma::vec::fixed<dim+1> MappingP1< dim, spacedim >::BaryPoint |
Definition at line 62 of file mapping_p1.hh.
typedef arma::mat::fixed<spacedim, dim+1> MappingP1< dim, spacedim >::ElementMap |
Definition at line 64 of file mapping_p1.hh.
typedef arma::vec::fixed<spacedim> MappingP1< dim, spacedim >::RealPoint |
Definition at line 63 of file mapping_p1.hh.
|
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.
|
static |
Test if element contains given point.
Definition at line 96 of file mapping_p1.cc.
|
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.
|
static |
Compute jacobian matrix for an element given by the coords
element map.
Definition at line 58 of file mapping_p1.cc.
|
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.
|
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.
|
static |
Determines which additional quantities have to be computed.
flags | Update flags for required quantities. |
Definition at line 30 of file mapping_p1.cc.