This paper describes the 1-dimensional mathematical code Gandalf, uses the code to simulate the quench and the recovery status of ITER SCC CICC, discusses the dependence of the stability margin on various operating parameters including operating current, operating temperature and mass flow rate, and analyzes the differences between the simulated values and the calculated values.