This project implements a numerical solver for the incompressible Navier–Stokes equations coupled with the heat (advection–diffusion) equation, enabling realistic simulation of fluid flow with thermal transport, using the pytorch library.
The solver iteratively applies the given differential equations while maintaining the incompressibility constraint
- Time integration: Semi-implicit scheme with explicit advection
- Pressure solve: Poisson equation solved via iterative methods
- Advection: Upwind / semi-Lagrangian hybrid
- Diffusion: Central finite differences
- Boundary conditions: No-slip walls, inflow/outflow, and thermal Dirichlet or Neumann conditions
More information about the implementation can be found on the github page.
