35 [
X,
Y,Z] = ndgrid(xr,yr,zr);
36 pts = [
X(:)
Y(:) Z(:)]^
t;
38 cubes =
double.empty(0,8);
42 hx =
X([i i+1],[j j+1],[
k k+1]);
43 hy =
Y([i i+1],[j j+1],[
k k+1]);
44 hz = Z([i i+1],[j j+1],[
k k+1]);
53 s = RandStream(
" mt19937ar ",
" Seed ",1);
54 pts = pts + s.rand(size(pts))*devperc;
56 geo = fem.geometry.Cube8Node(pts, cubes);
Collection of generally useful functions.
static function idx = findVecInMatrix(A, b)
Finds column vectors inside a matrix.
function geo = RegularHex8Grid(xr, yr, zr, devperc)
RegularHex8Grid: