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