Physics of a solar flare
The energy for a solar flare is stored in the magnetic field of a current sheet and released in the corona above an active region. Solar cosmic rays are accelerated at the current sheet decay.