Changing the number of Dummy boundary Layer

Hi,

I see that the default number of the boundary layers for the “Dummy” is 3. I want to increase the number of the boundary layers to 4 but I couldn’t find the function. For the “Dynamic” boundary, there is “setDynamicBoundariesLayers()”. Is there any similar function for the “Dummy” boundary?

Regards,
Alireza

Hello @AlirezaZarei,

the setDynamicBoundariesLayers() function actually applies to all multi-layer boundary models (both DUMMY and DYNAMIC) since the DUMMY model was introduced. Because of this, it’s now considered deprecated, and setNumBoundaryLayers() can be used instead. (They are equivalent, but the latter has a more generic name.)

By the way, the number of boundary layers is autocomputed from the smoothing length and kernel radius, so the last layer of particles shouldn’t interact with the fluid already. If you have a particular setup where more layers are needed, it would be interesting to see if this can be incorporated to improve the auto-computation logic.