Massless particles in tube


I have built my own LBM code based on Palabos as a library in Windows VS 2013 environment and managed to make most of the examples work.
However, this example gives some headache and I want to see if the developer or anybody can help me out:
It produces Average energy: -1.#QNAN


Dear Jinstone,

thanks for your post! It is very nice to hear that Palabos works with Windows VS 2013. About massless particles, the only thing I can say, is that I just tried the code:


and is stable for 100 000 iterations at Linux. A small bug that will be corrected in the next Palabos release is that at the end of the main function the line:

delete particleTemplate;

must be removed.