Nonlinear dynamic analysis of frame structures