Generic model for magnetic explosions applied to solar flares