3 KOKKOS_FUNCTION
typename HexahedralElement<T>::vertex_points_t
8 {0.0, 0.0, 0.0}, {1.0, 0.0, 0.0}, {1.0, 1.0, 0.0}, {0.0, 1.0, 0.0},
9 {0.0, 0.0, 1.0}, {1.0, 0.0, 1.0}, {1.0, 1.0, 1.0}, {0.0, 1.0, 1.0}};
20 jacobian[0] = (global_vertices[1][0] - global_vertices[0][0]);
21 jacobian[1] = (global_vertices[2][1] - global_vertices[0][1]);
22 jacobian[2] = (global_vertices[4][2] - global_vertices[0][2]);
33 inv_jacobian[0] = 1.0 / (global_vertices[1][0] - global_vertices[0][0]);
34 inv_jacobian[1] = 1.0 / (global_vertices[2][1] - global_vertices[0][1]);
35 inv_jacobian[2] = 1.0 / (global_vertices[4][2] - global_vertices[0][2]);
46 getInverseTransformationJacobian(global_vertices);
49 glob2loc_matrix * (global_point - global_vertices[0]);
60 getTransformationJacobian(global_vertices);
63 (loc2glob_matrix * local_point) + global_vertices[0];
75 for (
const T& jacobian_val : getTransformationJacobian(global_vertices)) {
76 determinant *= jacobian_val;
87 return getInverseTransformationJacobian(global_vertices);
95 for (
size_t d = 0; d < 3; d++) {
96 if (point[d] > 1.0 || point[d] < 0.0) {
KOKKOS_FUNCTION point_t getTransformationJacobian(const vertex_points_t &global_vertices) const
Returns the Jacobian of the transformation matrix.
Definition HexahedralElement.hpp:16
KOKKOS_FUNCTION point_t getInverseTransposeTransformationJacobian(const vertex_points_t &global_vertices) const
Returns the inverse of the transpose of the transformation Jacobian.
Definition HexahedralElement.hpp:84
KOKKOS_FUNCTION vertex_points_t getLocalVertices() const
Returns the coordinates of the vertices of the reference element.
Definition HexahedralElement.hpp:4
KOKKOS_FUNCTION T getDeterminantOfTransformationJacobian(const vertex_points_t &global_vertices) const
Returns the determinant of the transformation Jacobian.
Definition HexahedralElement.hpp:69
KOKKOS_FUNCTION bool isPointInRefElement(const Vector< T, 3 > &point) const
Returns whether a point in local coordinates ([0, 1]^3) is inside the reference element.
Definition HexahedralElement.hpp:91
KOKKOS_FUNCTION point_t getInverseTransformationJacobian(const vertex_points_t &global_vertices) const
Returns the inverse of the Jacobian of the transformation matrix.
Definition HexahedralElement.hpp:29
KOKKOS_FUNCTION point_t localToGlobal(const vertex_points_t &global_vertices, const point_t &point) const
Transforms a point from local to global coordinates.
Definition HexahedralElement.hpp:55
KOKKOS_FUNCTION point_t globalToLocal(const vertex_points_t &global_vertices, const point_t &point) const
Transforms a point from global to local coordinates.
Definition HexahedralElement.hpp:41