reset # Define the mesh size #{size = } # create points (vertex) create vertex 0 -0.015 0 create vertex 0 -0.004 0 create vertex 0 0.004 0 create vertex 0 0.007 0 create vertex 0 0.015 0 create vertex 0.005 0.015 0 create vertex 0.005 0.007 0 create vertex 0.005 0.004 0 create vertex 0.005 -0.004 0 create vertex 0.005 -0.015 0 create vertex 0.01 -0.015 0 create vertex 0.01 -0.004 0 create vertex 0.01 0.004 0 create vertex 0.01 0.007 0 create vertex 0.01 0.015 0 create vertex 0.025 0.015 0 create vertex 0.025 0.007 0 create vertex 0.025 0.004 0 create vertex 0.025 -0.004 0 create vertex 0.025 -0.015 0 # create lines from points create curve vertex 8 9 create curve vertex 9 12 create curve vertex 12 13 create curve vertex 13 8 create curve vertex 3 24 create curve vertex 3 4 create curve vertex 4 7 create curve vertex 7 14 create curve vertex 14 17 create curve vertex 17 18 create curve vertex 18 23 create curve vertex 27 5 create curve vertex 5 6 create curve vertex 6 15 create curve vertex 15 16 create curve vertex 16 30 create curve vertex 3 2 create curve vertex 2 1 create curve vertex 1 10 create curve vertex 10 11 create curve vertex 11 20 create curve vertex 20 19 create curve vertex 19 31 # create surfaces from lines create surface curve 2 1 4 3 create surface curve 5 6 7 8 9 10 11 4 create surface curve 12 13 14 15 16 9 8 7 create surface curve 23 11 3 2 1 5 17 18 20 19 21 22 # define the regions block 1 add surface 4 3 block 1 name "air" block 2 add surface 1 block 2 name "coil" block 3 add surface 2 block 3 name "material" nodeset 1 add curve 12 6 17 18 16 10 23 22 nodeset 1 name "vertical" nodeset 2 add curve 13 14 15 19 20 21 nodeset 2 name "horizontal" # merging to prevent double lines, nodes, ... merge tolerance {1e-6} imprint tolerant volume all merge surface all merge curve all # mesh surface all size {size} mesh surface all # export export ansys cdb "geometry-ue.cdb" overwrite