| 1 |
reset |
| 2 |
reset aprepro |
| 3 |
|
| 4 |
#{H=5.0} # height |
| 5 |
#{W=5.0} # width |
| 6 |
#{D=0.05} # depth |
| 7 |
#{C=2.0} # cut out |
| 8 |
#{T=0.15} # traction percent |
| 9 |
#{R=0} # number of refinements |
| 10 |
#{Zint=1} # extrusion intervals |
| 11 |
|
| 12 |
create vertex 0 0 0 |
| 13 |
create vertex {C} 0 0 |
| 14 |
create vertex {W} 0 0 |
| 15 |
create vertex {W} {(1-T)*C} 0 |
| 16 |
create vertex {W} {C} 0 |
| 17 |
create vertex {C} {C} 0 |
| 18 |
create vertex {C} {H} 0 |
| 19 |
create vertex 0 {H} 0 |
| 20 |
create vertex 0 {C} 0 |
| 21 |
create vertex 0 {(1-T)*C} 0 |
| 22 |
|
| 23 |
create curve 1 2 |
| 24 |
create curve 2 3 |
| 25 |
create curve 3 4 |
| 26 |
create curve 4 5 |
| 27 |
create curve 5 6 |
| 28 |
create curve 6 7 |
| 29 |
create curve 7 8 |
| 30 |
create curve 8 9 |
| 31 |
create curve 9 10 |
| 32 |
create curve 10 1 |
| 33 |
|
| 34 |
create surface curve all |
| 35 |
|
| 36 |
surface 1 size {D} |
| 37 |
surface 1 scheme sweep |
| 38 |
mesh surface 1 |
| 39 |
#{Loop(R)} |
| 40 |
refine surface 1 |
| 41 |
#{EndLoop} |
| 42 |
|
| 43 |
surface 1 copy move z {D} |
| 44 |
create volume loft surface 1,2 |
| 45 |
merge all |
| 46 |
delete body is_sheet |
| 47 |
vol 3 size {D/Zint} |
| 48 |
mesh vol 3 |
| 49 |
|
| 50 |
sideset 1 add surface 10 |
| 51 |
sideset 2 add surface 7 |
| 52 |
sideset 3 add surface 1 to 6, 8 to 9, 11 to 13 |
| 53 |
|
| 54 |
block 1 vol 3 |
| 55 |
block 1 element type HEX8 |
| 56 |
|
| 57 |
export mesh "/scratch/dpkouri/ROL-v2.0/ROL-Trilinos/build/gcc_mpi_release/packages/rol/example/PDE-OPT/topo-opt/elasticity/meshfiles/Lbeam.e" overwrite |