! ============================================================
! M10 - Bug hunt
! ============================================================
/CLEAR,START                        ! Five typical failures in nonlinear static analysis.
/FILNAME,m10_bug_hunt,1
/UNITS,SI

! ERROR 1: NLGEOM off in a large-displacement case.
! NLGEOM,OFF prevents capturing large displacements and rotations.
! NLGEOM,OFF
! Symptom: the curve matches the linear one; geom_dev_ratio ~ 0.

! ERROR 2: plasticity without a material table.
! MP,EX,1,210E9
! TB,BISO and TBDATA define the yield limit; without them there is no plasticity.
! ! TB,BISO and TBDATA are missing
! Symptom: the plastic case replicates the elastic geometric case.

! ERROR 3: a single substep with NLGEOM,ON and the full load.
! NSUBST,1 applies the entire load at once; with NLGEOM a gradual ramp is preferred.
! NSUBST,1
! KBC,1
! Symptom: it does not converge or underestimates the response; n_sets < n_substeps.

! ERROR 4: OUTRES,ALL,LAST with a load ramp.
! OUTRES,ALL,LAST discards intermediate substeps needed for the load-displacement curve.
! OUTRES,ALL,LAST
! Symptom: only one set exists; impossible to plot the load-displacement curve.

/COM,DIAGNOSE: NLGEOM, TB,BISO, NSUBST, OUTRES, n_sets vs .out     ! Symptom: passes=1 even though the solver aborted intermediate substeps.
/COM,Table: symptom -> check (.out, n_sets) -> cause -> fix
FINISH



