To study the foam stability problem in the gas injection metal foaming process,the change of the foam structure during the foam growth progress of aluminum foams and Al alloy foam by gas injection foaming was described and simulated by phase-field method with the long range order parameter as field variable.By the analysis of the simulation,all kinds of complex geometrical figures,including the foam geometrical figures,the foam spatial distribution and the foam volume fraction and so on,were clearly described through field variable,and the result of simulation was in accord with the result of experimental observations.