Grid refinement 3D Grid Density Function

Dear community,
I am simulating the show case example of “Grid refinement 3D” which comes with the Palabos setup. I was wondering if you know where does the “gridDensityFunction” come from and how it is generated so I can create my own grid density function.


It is likely to be created by other codes. l also work on this recently.