reset reset aprepro #{Nrefine = 4} # number of refinements #{height = 1} # domain height #{width = 2} # domain width #{tSize = height/8} # traction size create vertex 0 0 0 create vertex {width} 0 0 create vertex {width} {(height-tSize)/2} 0 create vertex {width} {(height-tSize)/2+tSize} 0 create vertex {width} {height} 0 create vertex 0 {height} 0 create curve 1 2 create curve 2 3 create curve 3 4 create curve 4 5 create curve 5 6 create curve 6 1 create surface curve all surface 1 scheme sweep mesh surface 1 #{Loop(Nrefine)} refine surface all numsplit 1 bias 1.0 depth 1 #{EndLoop} sideset 1 add curve 6 sideset 2 add curve 1 2 4 5 sideset 3 add curve 3 block 1 surface all block 1 element type QUAD4 export mesh "truss2d.exo" overwrite