v0.15.0
Loading...
Searching...
No Matches
tri_axial_cube_atom.jou
Go to the documentation of this file.
1#!python
2cubit.cmd('reset')
3cubit.cmd('brick x 10 y 10 z 10')
4cubit.cmd('volume all size 10')
5cubit.cmd('volume all scheme tetmesh')
6cubit.cmd('mesh volume all')
7cubit.cmd('set duplicate block elements off')
8cubit.cmd('block 1 volume 1')
9cubit.cmd('block 1 attribute count 2')
10cubit.cmd('block 1 name "MAT_ELASTIC1"')
11cubit.cmd('block 1 attribute index 1 1')
12cubit.cmd('block 1 attribute index 2 0')
13cubit.cmd('create displacement on surface 4 dof 1 fix 1')
14cubit.cmd('create displacement on surface 3 dof 2 fix 1')
15cubit.cmd('create displacement on surface 2 dof 3 fix 1')
16cubit.cmd('create displacement on surface 1 dof 3 fix -1')
17cubit.cmd('create displacement on surface 5 dof 2 fix -1')
18cubit.cmd('create displacement on surface 6 dof 1 fix -1')
19cubit.cmd('save as "/Users/michaelcortis/Documents/PhD/moFEM/mofem/meshes/tri_axial_cube_atom.cub" ')