So I am in the process of building various solenoids for some projects I have. But the issue I have is that the battery I use is over heating. From my understanding, when I connect a circuit to a battery, the energy gets dumped very quickly and overheats the cell. Is there a way to calculate how much amps is being delivered through the circuit? and also a way to calculate if a certain battery will tolerate that current without it getting extremely hot? I am not sure if what I said made sense, but any help will be appreciated.