partial code for blackbody radiator