12#ifndef __MapHexahedron_H
13#define __MapHexahedron_H
32 static inline Eigen::MatrixXd Psi(
const Eigen::MatrixXd &
points)
34 const Eigen::ArrayXd
x =
points.row(0);
35 const Eigen::ArrayXd
y =
points.row(1);
36 const Eigen::ArrayXd
z =
points.row(2);
38 Eigen::MatrixXd
evalPsi = Eigen::MatrixXd::Zero(8,
points.cols());
39 evalPsi.row(0) = (1.0 -
x) * (1.0 -
y) * (1.0 -
z);
51 static inline std::vector<Eigen::MatrixXd> dPsi(
const Eigen::MatrixXd &
points)
53 const Eigen::ArrayXd
x =
points.row(0);
54 const Eigen::ArrayXd
y =
points.row(1);
55 const Eigen::ArrayXd
z =
points.row(2);
57 std::vector<Eigen::MatrixXd>
evaldPsi(3, Eigen::MatrixXd(8,
points.cols()));
97 static MapHexahedronData
Compute(
const Eigen::MatrixXd &vertices,
const std::vector<Eigen::MatrixXi> &faces);
Eigen column vector.
Definition Eigen_Array.hpp:23
Definition MapHexahedron.hpp:20
static Eigen::MatrixXd J(const MapHexahedron::MapHexahedronData &mapData, const Eigen::MatrixXd &referencePoints)
Definition MapHexahedron.cpp:75
~MapHexahedron()
Definition MapHexahedron.hpp:93
static MapHexahedronData Compute(const Eigen::MatrixXd &vertices, const std::vector< Eigen::MatrixXi > &faces)
Definition MapHexahedron.cpp:21
static Eigen::MatrixXd F(const MapHexahedron::MapHexahedronData &mapData, const Eigen::MatrixXd &referencePoints)
Definition MapHexahedron.cpp:69
MapHexahedron()
Definition MapHexahedron.hpp:90
static Eigen::MatrixXd FInv(const MapHexahedron::MapHexahedronData &mapData, const Eigen::MatrixXd &points)
Definition MapHexahedron.cpp:95
static Eigen::MatrixXd JInv(const MapHexahedron::MapHexahedronData &mapData, const Eigen::MatrixXd &referencePoints)
Definition MapHexahedron.cpp:103
static Eigen::VectorXd DetJ(const MapHexahedron::MapHexahedronData &mapData, const Eigen::MatrixXd &referencePoints)
Definition MapHexahedron.cpp:115
Definition Eigen_Array.cpp:22
Definition MapHexahedron.hpp:23
Eigen::MatrixXd Coefficients
Definition MapHexahedron.hpp:26
Eigen::MatrixXd ReferenceVertices
Definition MapHexahedron.hpp:24
Eigen::MatrixXd A
Definition MapHexahedron.hpp:25
Eigen::MatrixXd Vertices
Definition MapHexahedron.hpp:27
std::map< unsigned int, unsigned int > VertexOrder
Definition MapHexahedron.hpp:28