! ----------------------------------------------------------------------
! M07 - English course download: 07_challenge.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                        ! Double the length and contrast two beam-theory laws.
/FILNAME,m07_challenge,1
/UNITS,SI

mesh_h=0.05
beam_h=0.10
beam_b=0.05
young=210E9
nu=0.30
tip_force=-1000

! Case 1: beam_l=1.0 m
! Case 2: beam_l=2.0 m
!
! TODO 1: run both cases with the same section, material,
!         total force, and physical element size.
! TODO 2: measure mean UY on the tip face.
!         Use /POST1 + SET,LAST and *GET,NODE,...,U,Y on tip_nodes.
! TODO 3: measure S,X at x_section=0.2*beam_l.
!         *GET,NODE,...,S,X with RSYS,0 before comparing with sigma_ref.
! TODO 4: check force and moment in both cases.
! TODO 5: generate m07_scaling_audit.csv with two rows.
!
! Expected topology:
! L=1 m: 40 elements, 126 nodes
! L=2 m: 80 elements, 246 nodes
!
! References:
! uy_ref_1=-3.80952381E-4 m
! uy_ref_2=-3.04761905E-3 m
! sigma_ref_1=9.60000000E6 Pa
! sigma_ref_2=1.92000000E7 Pa
! uy_ratio must differ by less than 5% from 8
! sigma_ratio must differ by less than 5% from 2

FINISH
