Skip to content

Reply To: Step-by-step Tutorials?


There is additional documentation on the geometry setup in chapter 3. You may also find Doxygen convenient for looking up specific methods.

The conditionals in the lattice setup of the 2D Poiseuille case are only to realize the different supported boundary conditions for illustration (you control this via the definitions at the top of the file).

The basic approach followed in many OpenLB cases is to:

1. Separate the spatial domain into blocks (CuboidGeometry)
2. Assign material numbers to the cells of the discretized domain (SuperGeometry) to group them into e.g. bulk and boundary cells
3. Assign local cell models (Dynamics) and boundary conditions to cells using material indicators as a proxy
4. Define initial and boundary values
5. Start the core simulation loop with periodic output of results

Do you have specific questions? Otherwise there really is no way around reading the code alongside the documentation if you want to further familiarize you with the code. One thing I want to highlight is that the specific way that the example cases are set up are only a convention that we found useful over the years – nothing is stopping you from structuring things differently using the core OpenLB classes.

If you want hands-on instruction with practical exercises you may find our upcoming Spring School interesting. Of course you can also ask questions in this forum.