Solar wind-magnetosphere energy input functions