Determination of the steel casting cross-section with prescribed average temperature