PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
Gedim::MapTriangle Class Reference

#include <MapTriangle.hpp>

Classes

struct  MapTriangleData
 

Public Member Functions

 MapTriangle ()
 
 ~MapTriangle ()
 
MapTriangleData Compute (const Eigen::Matrix3d &vertices) const
 

Static Public Member Functions

static Eigen::MatrixXd F (const MapTriangleData &mapData, const Eigen::MatrixXd &x)
 
static Eigen::MatrixXd FInv (const MapTriangleData &mapData, const Eigen::MatrixXd &x)
 
static Eigen::MatrixXd J (const MapTriangleData &mapData, const Eigen::MatrixXd &x)
 
static Eigen::VectorXd DetJ (const MapTriangleData &mapData, const Eigen::MatrixXd &x)
 
static double DetJ (const MapTriangleData &mapData)
 

Constructor & Destructor Documentation

◆ MapTriangle()

Gedim::MapTriangle::MapTriangle ( )
inline

◆ ~MapTriangle()

Gedim::MapTriangle::~MapTriangle ( )
inline

Member Function Documentation

◆ Compute()

MapTriangle::MapTriangleData Gedim::MapTriangle::Compute ( const Eigen::Matrix3d &  vertices) const

Map from the triangle reference element [0,1]x[0,1]/2 to the polygon x = F(x_r) = B * x_r + b

Parameters
verticesthe triangle 2D to map vertices, size 3 x 3
Returns
the map data

◆ DetJ() [1/2]

static double Gedim::MapTriangle::DetJ ( const MapTriangleData mapData)
inlinestatic

Compute the determinant of the jacobian matrix of the trasformation

Parameters
mapDatathe map data
xpoints in reference triangle, size 3 x numPoints
Returns
the determinant of Jacobian matrix

◆ DetJ() [2/2]

static Eigen::VectorXd Gedim::MapTriangle::DetJ ( const MapTriangleData mapData,
const Eigen::MatrixXd &  x 
)
inlinestatic

Compute the determinant of the jacobian matrix of the trasformation

Parameters
mapDatathe map data
xpoints in reference triangle, size 3 x numPoints
Returns
the determinant of Jacobian matrix for each points, size 1 x numPoints

◆ F()

static Eigen::MatrixXd Gedim::MapTriangle::F ( const MapTriangleData mapData,
const Eigen::MatrixXd &  x 
)
inlinestatic

Map from the triangle reference element [0,1]x[0,1] to the polygon x = F(x_r) = BMatrix * x_r + b

Parameters
mapDatathe map data
xpoints in reference triangle, size 3 x numPoints
Returns
the mapped polygon points, size 3 x numPoints

◆ FInv()

static Eigen::MatrixXd Gedim::MapTriangle::FInv ( const MapTriangleData mapData,
const Eigen::MatrixXd &  x 
)
inlinestatic

Map from the polygon x to the triangle reference element [0,1]x[0,1] x_r = F^-1(x_r) = B^-1 * (x - b)

Parameters
mapDatathe map data
xpoints in polygon, size 3 x numPoints
Returns
the mapped reference points, size 3 x numPoints

◆ J()

MatrixXd Gedim::MapTriangle::J ( const MapTriangleData mapData,
const Eigen::MatrixXd &  x 
)
static

Compute the jacobian matrix of the transformation F

Parameters
mapDatathe map data
xpoints in reference triangle, size 3 x numPoints
Returns
the B matrix for each points, size 3 x (3 * numPoints)

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