In this paper,we use the rod-power distribution obtained by the nuclear design and the 202 tables and 205 cards of RELAP5/MOD3 to realize the change of the relative power share of each axial node in the heat of the RELAP5/MOD3.The "variable power distribution" analysis method is successfully realized in RELAP5/MOD3,and the method is used to analyze the rod withdrawal accident of a reactor.The maximum fuel temperature obtained by this method is significantly lower than the fixed power distribution method.