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