v0.14.0
body_force.jou
Go to the documentation of this file.
1 #!python
2 cubit.cmd('reset')
3 cubit.cmd('brick x 1 y 1 z 1')
4 cubit.cmd('volume 1 size 1')
5 cubit.cmd('volume 1 scheme Tetmesh')
6 cubit.cmd('mesh volume 1')
7 cubit.cmd('set duplicate block elements off')
8 cubit.cmd('block 1 volume 1 ')
9 
10 #!Define block attributes
11 cubit.cmd('block 1 attribute count 10')
12 cubit.cmd('block 1 attribute index 1 1')
13 cubit.cmd('block 1 attribute index 2 1')
14 cubit.cmd('block 1 attribute index 3 1')
15 cubit.cmd('block 1 attribute index 4 1')
16 cubit.cmd('block 1 attribute index 5 0')
17 cubit.cmd('block 1 attribute index 6 0')
18 cubit.cmd('block 1 attribute index 7 0')
19 cubit.cmd('block 1 attribute index 8 0')
20 cubit.cmd('block 1 attribute index 9 0')
21 cubit.cmd('block 1 attribute index 10 0')
22 
23 #!Add material name and description
24 cubit.cmd('block 1 name "BODY_FORCES_1" ')
25 cubit.cmd('block 1 description 'body forces' ')
26