pendulum with fields