! ----------------------------------------------------------------------
! M00 - English course download: 00_session_template.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                        ! /CLEAR must precede the new database metadata.
/FILNAME,m00_cantilever,1           ! /FILNAME sets the file prefix (.rst, etc.).
/OUTPUT,m00_session,out              ! Name distinct from the job: m00_cantilever.out is reserved by /FILNAME.
/TITLE,M00 - Cantilever beam
/UNITS,SI                           ! /UNITS,SI imposes a consistent system: m, kg, s, N, Pa.

/PREP7                              ! --- PREP7: BUILD THE MODEL ---

ET,1,SOLID185
MP,EX,1,210E9
MP,PRXY,1,0.30
TYPE,1
MAT,1

BLOCK,0,1.0,0,0.10,0,0.05           ! Global geometry: L=1.0 m, H=0.10 m, B=0.05 m
ESIZE,0.025
VMESH,ALL

NSEL,S,LOC,X,0                      ! Fixed support at x=0
D,ALL,ALL,0
ALLSEL,ALL

NSEL,S,LOC,X,1.0                    ! Total force of -1000 N, distributed among the nodes at the x=1 m end
*GET,n_tip,NODE,0,COUNT
F,ALL,FY,-1000/n_tip
ALLSEL,ALL

FINISH

/SOLU                               ! --- /SOLU: SOLVE ---
ANTYPE,STATIC
SOLVE
FINISH

/POST1                              ! --- POST1: check results ---
SET,LAST
PLNSOL,U,SUM
PLNSOL,S,EQV
FINISH

/OUTPUT                               ! No arguments: output returns to the Output Window in real time.

! Reference result from beam theory:
! |uy_tip| = P*L^3/(3*E*I) = 3.81E-4 m, with I=B*H^3/12.
! The 3D result will not be identical; M04 and M07 explain convergence and validation.
