Debian Codegraph @

packages/rol/example/PDE-OPT/published/TRSPG_Kouri2021/elasticity/meshfiles/truss3d.jou

raw
1 reset
2 reset aprepro
3
4 #{Nrefine = 6} # number of refinements
5 #{height = 1} # domain height
6 #{width = 2} # domain width
7 #{depth = 1} # domain depth
8 #{tHeight = height/8} # traction height
9 #{tWidth = depth/8} # traction width
10
11 create brick width {width} depth {depth} height {height}
12 #{Domain = Id("volume")}
13 move vol {Domain} x {width/2} y {height/2} z {depth/2}
14
15 create vertex {width} {(height-tHeight)/2} {(depth-tWidth)/2}
16 #{v00 = Id("vertex")}
17 create vertex {width} {(height-tHeight)/2+tHeight} {(depth-tWidth)/2}
18 #{v01 = Id("vertex")}
19 create vertex {width} {(height-tHeight)/2+tHeight} {(depth-tWidth)/2+tWidth}
20 #{v02 = Id("vertex")}
21 create vertex {width} {(height-tHeight)/2} {(depth-tWidth)/2+tWidth}
22 #{v03 = Id("vertex")}
23
24 create surface vertex {v00} {v01} {v02} {v03}
25
26 imprint body all
27
28 volume 1 size {0.5*(tHeight+tWidth)/Nrefine}
29 volume 1 scheme submap
30 mesh volume 1
31
32 sideset 1 add surface 4
33 sideset 2 add surface 1 2 3 5 6 8
34 sideset 3 add surface 9
35
36 block 1 volume all
37 block 1 element type HEX8
38
39 export mesh "truss3d.exo" overwrite