! ----------------------------------------------------------------------
! M02 - English course download: 02_start.mac
! Follow the matching English lesson for explanations and task details.
! Commands, parameter names, file names, CSV keys, and result tokens are preserved.
! ----------------------------------------------------------------------

/CLEAR,START
/FILNAME,m02_start,1
/TITLE,M02 - Starting point
/UNITS,SI

beam_l=1.0
beam_h=0.10
beam_b=0.05
young=210E9
nu=0.30
mesh_h=0.025
select_tol=MIN(beam_h,beam_b)*1E-5

/PREP7
ET,1,SOLID185
MP,EX,1,young
MP,PRXY,1,nu
TYPE,1
MAT,1

BLOCK,0,beam_l,0,beam_h,0,beam_b
ESIZE,mesh_h
VMESH,ALL

ALLSEL,ALL
*GET,n_nodes,NODE,0,COUNT
*GET,n_elements,ELEM,0,COUNT

! TODO 1: activate select_tol with SELTOL.
! TODO 2: create fixed_nodes without using node numbers.
! TODO 3: define local system 11 at the tip.
! TODO 4: create tip_nodes and immediately restore CSYS,0.
! TODO 5: create top_nodes, mid_elems, and tip_top_nodes.
! TODO 6: check that fixed_nodes and tip_nodes do not overlap.
! TODO 7: recover the complete model and restore SELTOL.

/COM,M02 START READY - complete the TODO blocks
FINISH
