In this study, expanded polystyrene (EPS) geofoam is placed between first lining and second lining of tunnels, serving as isolation buffer in earthquake. In order to investigate isolation effect of elastic modulus and thickness of EPS layer, ABAQUS script interface based on Python language is employed. The technological process of this parameterized analysis is elaborately designed. Parameterized modeling is realized by secondary development which controls the preprocessing process. Some technology such as infinite element boundary, definition of initial ground stress field, modification of input file and stress report in preprocessing is described. Python language is also used for secondary development of ABAQUS post-processing. Then the simulation results of different models under earthquake can be effectively computed from huge result data. The isolation effect with the change of elastic modulus and thickness of EPS can be presented clearly. That is, with the decreasing elastic modulus and increasing EPS layer thickness, the isolation effect is more obvious.