Autodesk / XLB

XLB: Accelerated Lattice Boltzmann (XLB) for Physics-based ML
Other
238 stars 25 forks source link

Added external force and fixed dtype issues #63

Closed hsalehipour closed 2 months ago

hsalehipour commented 2 months ago

This PR:

  1. adds external force due to exact difference method as new operator
  2. adds ForcedCollision as a new way of defining the collision operator (either BGK or KBC)
  3. adds a turbulent 3d benchmakr example with reference DNS and theory data for testing 1 and 2 above.
  4. fixes a bug in my PR #61 where interior boundaries that touched the domain bounds would not be properly handled.
  5. added a flag to boundary condition to indicate where "index padding" is needed for BCs that required missing directions.
  6. fixes all previous pytest issues
  7. fixes all issues (caught so far) related to dtype other than fp32 in Warp kernels
hsalehipour commented 2 months ago

Results obtained by running the recently added benchmark example on turbulent channel flow with fp32/fp32. Comparisons are made with DNS data of Moser and Kim (1999) (solid line), as well as the log-law of wall (dashed line)

turbulent_channel_3d_3300000 uplus_00330