v0.14.0
elasticity_atom_test_01X.jou
Go to the documentation of this file.
1 #!python
2 cubit.cmd('brick x 1 y 1 z 1')
3 cubit.cmd('volume 1 size 1')
4 cubit.cmd('volume 1 scheme Tetmesh')
5 cubit.cmd('mesh volume 1')
6 cubit.cmd('set duplicate block elements off')
7 cubit.cmd('block 1 volume 1 ')
8 cubit.cmd('block 1 attribute count 2')
9 
10 #!Young's Modulus
11 cubit.cmd('block 1 attribute index 1 1')
12 #!Poisson ratio
13 cubit.cmd('block 1 attribute index 2 0')
14 
15 #!Displacement bcs
16 cubit.cmd('create Displacement on surface 4 dof 1 fix ')
17 cubit.cmd('create Displacement on node 4 dof 2 dof 3 fix ')
18 cubit.cmd('create displacement on node 7 dof 2 dof 3 fix')
19 
20 #!Force
21 cubit.cmd('create force on surface 6 force value 1 direction x ')
22 
23