![]() |
OptFEM3DP1 Toolbox
V1.0
Matlab/Octave Optimized P1-Lagrange Finite Element Method in 3D
|
Initialization of a minimalist 3D Mesh structure for the cube domain. More...
Go to the source code of this file.
Functions | |
| function Th = | CubeMesh (N) |
| Initialization of a minimalist 3D Mesh structure for the cube domain. | |
Initialization of a minimalist 3D Mesh structure for the cube domain.
Definition in file CubeMesh.m.
| function Th = CubeMesh | ( | N | ) |
Initialization of a minimalist 3D Mesh structure for the cube domain.
Cube domain is
There are
vertices on each edges and
vertices on each boundary faces.
| N | integer, number, minus one, of vertices on a edge |
| Th | minimalist mesh structure |
nq — total number of vertices, also denoted by
. q — Array of vertices coordinates,
array.
is the
-th coordinate of the
-th vertex,
and
nme — total number of elements, also denoted by
. me — Connectivity array,
array.
is the storage index of the
-th vertex of the
-th tetrahedron in the array
of vertices coordinates,
and
. volumes — Array of volumes,
. volumes(k) is the volume of the k-th tetrahedron. Definition at line 17 of file CubeMesh.m.