82 this = fem.geometry.RegularHex20Grid;
84 elseif size(unique(pts
" , "rows^
t),1) ~= size(pts,2);
85 error(
" Please provide unique points! ");
95 hlp = cubes(i,[1 2 1 4 1 9 2 3 3 5 3 10 4 6 5 8 6 7 ...
96 6 11 7 8 8 12 9 13 10 15 11 18 12 20 13 14 13 16 ...
97 14 15 15 17 16 18 17 20 18 19 19 20]);
98 e(end+1:end+24,:) =
reshape(hlp
" ,2,[]) ";
100 e = unique(e,
" rows ",
" stable ");
115 13 14 15 17 20 19 18 16];
121 6:8 4 5 1:3 11 12 9 10 18:20 16 17 13:15
132 nodes20 = this.
Nodes;
133 elems8 = elems20(:,[1 3 6 8 13 15 18 20]);
134 usednodes = unique(elems8(:),
" stable ");
135 nodes8 = nodes20(:,usednodes);
136 invidx(usednodes) = 1:length(usednodes);
137 elems8 = invidx(elems8);
138 cube8 = fem.geometry.Cube8Node(nodes8,elems8);
function checkOrientation()
Elements
m x p index vector for all p nodes of m elements
function cube8 = toCube8Node()
Creates a 8 node cube geometry from this 20 node cube geometry by simply leaving out the on-edge node...
Nodes
n x 3 position vector of nodes
PatchFacesIdx
The indices of the nodes suitable for creating a patch surface object.
reshape
hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape ...
Edges
2 x k index vector for edges between two points
Hexahedral geometry with 20 position nodes on each basic hexahedron/cube.
function faces = computeFaces()
Computes the outward faces of this fem.geometry.
Faces
A 2 x N_F vector containing the element number in the first row and the face number on that element i...