Forum Moderator

Yes, but you can assign a source term directly without needing a UDF or expression. For energy absorbion by the media you want DO or Monte Carlo radiation models. 

If you just want to add energy into those cells (heat source) I'd split them out (register and separate option) and then use a fixed source term.