Pendulum simulator considering damping effect