This article discusses the hydrodynamic force on a square cylinder and its effects on displacement, velocity, and power. It explains the derivation of the equation of motion and the numerical method used for solving the problem. A MATLAB program is provided for simulation. The results and discussions cover the variation of power with the Keulegan-Carpenter number and the impact of the damping coefficient.