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