Debian Codegraph @

packages/rol/example/PDE-OPT/topo-opt/navier-stokes/mesh.jou

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