Source term in energy equation


I want to add the following source term to the energy equation


However, I am confused to which file should I add it? What is the difference between using “solve_energy_equation.f”, " user_src_mod " and “usr_sources.f” in writing the source term?

usr_sources.f is intended for you to add source terms. It is the “Hook for user defined source terms”, as the comment at the top of the file states.

solve_energy_eq.f is part of the MFiX solver. Of course, you can modify this code if you want, but it is not really intended for users to modify.

usr_src_mod.f is the link between the above, you don’t need to edit this file either.