v0.14.0
spring_LShape.jou
Go to the documentation of this file.
1 reset
2 set duplicate block elements on
3 
4 brick x 1 y 2 z 0.5
5 brick x 2 y 1 z 0.5
6 
7 move Curve 23 midpoint location curve 11 include_merged
8 unite volume all
9 
10 #rotate volume 1 angle 90 about z include_merged
11 
12 {young_modulus = 10}
13 {poisson_ratio = 0}
14 block 1 volume all
15 block 1 name 'MAT_ELASTIC'
16 block 1 attribute count 2
17 block 1 attribute index 1 {young_modulus}
18 block 1 attribute index 2 {poisson_ratio}
19 
20 # Spring
21 block 2 surface 3
22 block 2 name 'SPRING_BC'
23 block 2 attribute count 2
24 {spring_stiffness_normal = 5}
25 {spring_stiffness_tangent = 1}
26 block 2 attribute index 1 {spring_stiffness_normal}
27 block 2 attribute index 2 {spring_stiffness_tangent}
28 
29 create pressure on surface 12 magnitude 0.2
30 
31 volume all scheme Tetmesh
32 volume all size auto factor 8
33 mesh volume all
34 
35 save as "/Users/hoangnguyen/mofem_install/mofem-cephas/mofem/users_modules/basic_finite_elements/elasticity/spring_LShape.cub" overwrite