Hi Lookang:

Energy2D is open-source. I don't know where the source code is at our GIT hub yet, because no one has requested it and all I did was just committing to it.

If you are interested in the algorithms, perhaps these are more readable:

http://energy.concord.org/heat_solver.pdf
http://energy.concord.org/fluid_solver.pdf


Charles