Simulation of Voltage Across a Resistor