Example of arbitrary volumic heat term in the equation for enthalpy h.
In the considered example, a uniform volumic source of heating is imposed in the cells with coordinate X in [0;1.2] and Y in [3.1;4].
The global heating power if Pwatt (in ) and the total volume of the selected cells is volf (in ).
This yields:
st_imp[i] = 0
st_exp[i] = volume[i]* pwatt/volf
Body
Warning
It is assumed here that the thermal scalar is an enthalpy. If the scalar is a temperature. PWatt does not need to be divided by because is put outside the diffusion term and multiplied in the temperature equation as follows: