! ----------------------------------------------------------------------
! M03 - English course download: 03_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
/FILNAME,m03_challenge,1
/TITLE,M03 - Bimaterial challenge
/UNITS,SI

case_id=1
beam_l=1.0
beam_h=0.10
beam_b=0.05
mesh_h=0.025
young_steel=210E9
nu_steel=0.30
young_aluminum=70E9
nu_aluminum=0.33

/PREP7
ET,1,SOLID185
KEYOPT,1,2,0
MP,EX,1,young_steel
MP,PRXY,1,nu_steel
! TODO 1: define EX and PRXY of material 2.

TYPE,1
MAT,1
BLOCK,0,beam_l,0,beam_h,0,beam_b
ESIZE,mesh_h
VMESH,ALL

ESEL,S,CENT,X,0.4*beam_l,0.6*beam_l
CM,mid_elems,ELEM
*GET,n_mid_elems,ELEM,0,COUNT

/COM,M03 CHALLENGE READY - inspect element attributes, not active pointers
FINISH
