How to define Periodic boundaries on Y Directions?

How to define Periodic boundaries on Y Directions?
I want to simulation a poiseuille on which the Y direction Periodic,so what can i do?
Thank you!

1 Like

Hello,

To define periodic BCs you have to “toggle” the direction in the lattice object (true is for periodic and false for non periodic).

lattice.periodicity().toggle(0,true); (0 is for X, 1 for Y, 2 for Z).

To toggle all the directions you can also do :

lattice.periodicity().toggleAll(true);

By default all the directions are “false”.

I hope it helps.

Orestis