This document presents an algorithm for dynamically analyzing a plane rectangular rigid frame subjected to ground motion. The algorithm involves:
1) Using a matrix stiffness method and static condensation to reduce the global stiffness matrix size.
2) Deriving a characteristic polynomial equation from the condensed matrix and mass matrix.
3) Solving the polynomial equation using Newton-Raphson iteration to obtain eigenvalues and eigenvectors.
4) Calculating modal responses like shear force and overturning moment, which provide dynamic responses of the frame.
The algorithm aims to simplify dynamic analysis calculations that typically require software. It was applied to a three-story frame example.