Computer simulation of a voltage cell using a Josephson junction