Debian Codegraph @

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

raw
1 reset
2 reset aprepro
3
4 #{Nrefine = 4} # number of refinements
5 #{height = 1} # domain height
6 #{width = 2} # domain width
7 #{tSize = height/8} # traction size
8
9 create vertex 0 0 0
10 create vertex {width} 0 0
11 create vertex {width} {(height-tSize)/2} 0
12 create vertex {width} {(height-tSize)/2+tSize} 0
13 create vertex {width} {height} 0
14 create vertex 0 {height} 0
15
16 create curve 1 2
17 create curve 2 3
18 create curve 3 4
19 create curve 4 5
20 create curve 5 6
21 create curve 6 1
22
23 create surface curve all
24
25 surface 1 scheme sweep
26 mesh surface 1
27 #{Loop(Nrefine)}
28 refine surface all numsplit 1 bias 1.0 depth 1
29 #{EndLoop}
30
31 sideset 1 add curve 6
32 sideset 2 add curve 1 2 4 5
33 sideset 3 add curve 3
34
35 block 1 surface all
36 block 1 element type QUAD4
37
38 export mesh "truss2d.exo" overwrite