Hello everybody,
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
Array<T,2> velocity;
lattice.get(x, y).computeVelocity(velocity);
as described in the tutorial. How can I get information about the density in the same way? When I try the equivalent form
Array<T,1>density;
lattice.get(x,y).computeDensity(density)
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,
Moritz