If there was a DC circuit powered by a battery that outputs 2ah being switched on/off at 1khz consisting of a loop of wire with a resistance of 50 ohms yielding 2500 dc volts and dissipating through a resistor of 1 Ohm wouldn't that mean the current of the circuit would be 49 Amps because according to ohms law current is resistance/ voltage and if the battery can only output a max of 20 amps would that mean energy is being generated? I'm confused.