Physics-Informed Machine Learning for LBM Simulation
This project aims to develop a machine learning approach for the 2D-Q9 Lattice Boltzmann Method (LBM) using four different modeling strategies. The models are validated using the Taylor-Green Vortex and lid-driven cavity tests.
- Naive BGK model
- Symmetric lattice fetching
- Mass & momentum conservation
- Combined symmetry and conservation
The pipeline consists of the following steps:
- Data generation
- Collision operator construction
- Dataset building
- Model training and validation
Each model version reflects a different level of physical constraint:
- Enforces only mass conservation (continuity equation).
- Computationally expensive and does not guarantee physical constraints.
- Enforces D8 symmetry by averaging over group operations to ensure
φ_NNis equivariant. - Fails to conserve mass & momentum (violates Postulate 3).
-
Enforces conservation in x and y directions.
-
Fails to ensure equivariance (violates Postulate 2).
- 3.1: Algebraic Reconstruction (biased for rows 2, 5, 8)
- 3.2: Symmetric Algebraic Reconstruction using group averaging
- 3.3: Soft constraint in the loss function to penalize mass and momentum mismatches
- Satisfies all 4 physical postulates.
- Reduces degrees of freedom from 90 → 18 for D2Q9, improving efficiency.
- Taylor-Green Vortex for flow validation
- Lid-driven cavity to assess physical accuracy
Feel free to clone, explore, and adapt the models for more complex LBM simulations or different lattice types.