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