Skip to content

Reply To: Problems of Resolved Particles with Periodic Boundary

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Problems of Resolved Particles with Periodic Boundary Reply To: Problems of Resolved Particles with Periodic Boundary

#9765
Christoph
Participant

Hello Rookie,

You can put the top and bottom boundaries by defining an Indicator for each of them and then assigning the wall material number to them. For the bottom this could be implemented like this:

Vector<T,3> originBottom (0,0,0); //change if the origin is not the bottom point in your domain
Vector<T,3> extendBottom (lengthX, 1.5*converter.getPhysDeltaX, lengthZ);
IndicatorCuboid3D<T> bottomWall( extendBottom,originBottom );
superGeometry.rename( 0,2,bottomWall);

and similar for the top, only the origin has to be modified.

Best regards,
Christoph