Step 2 — Sweep with *DO and no residual state
*DO,case_id,1,n_cases
! set beam_h and mesh_h = h/2
/INPUT,09_build,mac,,,,1
/INPUT,09_solve,mac,,,,1
/INPUT,09_extract,mac,,,,1
! store results in arrays
*ENDDOEach iteration must rebuild the geometry and mesh. In 09_build.mac, clear the previous mesh with VCLEAR and VDELE before creating a new BLOCK. Without that cleanup, the second case fails with “Volume is meshed and cannot be changed.”