phase pendulum dynamics