reset # all dimensions in mm, scaled to m before export ${ t_wood = 25 } ${ t_plexi = 100 } ${ W = 400 } ${ H = 700 } ${ L = 850 } ${ t_patch = 30 } ${ l_patch = 100 } ${ w_patch = 70 } ${ x_patch = W/4 } # the plate brick x { W } y { H } z { t_plexi } move Volume 1 z { t_plexi/2 } include_merged volume 1 size 50 curve 11 9 12 10 interval 3 curve 11 9 12 10 scheme equal # the acoustic domain brick x { W } y { H } z { L } move Volume 2 z { -L/2 } include_merged volume 2 size 100 # the piezo patch brick x { l_patch } y { w_patch } z { t_patch } move Volume 3 x {x_patch} z { t_patch/2+t_plexi } include_merged # merge plate & piezo for conforming mesh imprint volume 1 3 merge volume 1 3 volume 3 size 30 curve 33 34 35 36 interval 2 curve 33 34 35 36 scheme equal mesh volume all # region names block 2 add volume 2 block 2 name "V_air" nodeset 4 add surface 7 nodeset 4 name "S_NC-air" mesh volume all block 1 add volume 1 block 1 name "V_plate" nodeset 1 add surface 2 nodeset 1 name "S_NC-plate" nodeset 2 add surface 3 5 nodeset 2 name "S_side-y" nodeset 3 add surface 4 6 nodeset 3 name "S_side-x" block 3 add volume 3 block 3 name "V_piezo" # scale to m before export Volume all scale 1e-3 export ansys cdb "coupled.cdb" overwrite