v0.14.0
elasticity_atom_test_sheer_force.jou
Go to the documentation of this file.
1 #!python
2 cubit.cmd('reset')
3 
4 cubit.cmd('brick x 1 y 1 z 1')
5 cubit.cmd('set duplicate block elements off')
6 cubit.cmd('block 1 volume 1 ')
7 cubit.cmd('block 1 attribute count 2')
8 
9 #!Young's Modulus
10 cubit.cmd('block 1 name "MAT_ELASTIC1"')
11 cubit.cmd('block 1 attribute index 1 2.')
12 #!Poisson ratio
13 cubit.cmd('block 1 attribute index 2 0.0')
14 
15 #!Displacement bcs
16 cubit.cmd('create Displacement on surface 3 dof 2 fix 0')
17 cubit.cmd('create Displacement on surface 1 dof 3 fix 0')
18 #cubit.cmd('create Displacement on surface 2 dof 3 fix 0')
19 cubit.cmd('create Displacement on curve 9 dof 1 fix 0')
20 
21 #!Force
22 cubit.cmd('create force on surface 3 vector -0.01 0 0 0 0 0')
23 cubit.cmd('create force on surface 4 vector 0 -0.01 0 0 0 0')
24 cubit.cmd('create force on surface 5 vector 0.01 0 0 0 0 0')
25 cubit.cmd('create force on surface 6 vector 0 0.01 0 0 0 0')
26 
27 #!Mesh
28 cubit.cmd('volume 1 size 1')
29 cubit.cmd('volume 1 scheme Tetmesh')
30 cubit.cmd('mesh volume 1')
31 
32 
33 cubit.cmd('save as "/Users/likask/MyBuild/mofem-bitbucket/mofem/meshes/elasticity_atom_test_sheer_force.cub" overwrite')
34