lbmpy.lattice.PeriodicStream#
- class PeriodicStream(lattice, periodic, *, gen_config=None)#
Apply periodic boundary conditions as an extension to the streaming step.
Usage: Apply to a
PatchDatacontainer holding the respective lattice data, directly after theAdvanceoperation:periodic_stream = PeriodicStream(f, (True, False)) # Integration Loop for _ in range(steps): collide(Ω_data) advance_f(Ω_data) periodic_stream(Ω_data)