Intermittent heating: Heat load calculation and optimization