I am currently trying to understand palabos. I did the tutorials and now i am trying to extract information about macroscopic variables. I can get information about the velocity of a specific cell by using
as described in the tutorial. How can I get information about the density in the same way? When I try the equivalent form
my compiler complains (no matching function for … computeDensity). But on the other hand i can use “computeDensity(lattice)” to compute the average density.
Does someone know how to calculate density for a specific lattice cell or do you know any examples where this is done?
thanks in advance,