An LCR circuit is equivalent to a damped pendulum. In an LCR circuit the capacitor is charged to Q0 and then connected to the L and R as shown below :