reset reset aprepro #{Nrefine = 6} # number of refinements #{height = 1} # domain height #{width = 2} # domain width #{depth = 1} # domain depth #{tHeight = height/8} # traction height #{tWidth = depth/8} # traction width create brick width {width} depth {depth} height {height} #{Domain = Id("volume")} move vol {Domain} x {width/2} y {height/2} z {depth/2} create vertex {width} {(height-tHeight)/2} {(depth-tWidth)/2} #{v00 = Id("vertex")} create vertex {width} {(height-tHeight)/2+tHeight} {(depth-tWidth)/2} #{v01 = Id("vertex")} create vertex {width} {(height-tHeight)/2+tHeight} {(depth-tWidth)/2+tWidth} #{v02 = Id("vertex")} create vertex {width} {(height-tHeight)/2} {(depth-tWidth)/2+tWidth} #{v03 = Id("vertex")} create surface vertex {v00} {v01} {v02} {v03} imprint body all volume 1 size {0.5*(tHeight+tWidth)/Nrefine} volume 1 scheme submap mesh volume 1 sideset 1 add surface 4 sideset 2 add surface 1 2 3 5 6 8 sideset 3 add surface 9 block 1 volume all block 1 element type HEX8 export mesh "truss3d.exo" overwrite