Skip to content

A computational fluid dynamics (CFD) application implementing multiple fluid simulation methods for the Imcompressible Navier-Stokes equations with real-time visualization and real time analysis tools I made during holidays.

Notifications You must be signed in to change notification settings

katyushapolye/FLUID_LAB

Repository files navigation

FLUID_LAB V0.1

A computational fluid dynamics (CFD) application implementing multiple fluid simulation methods for the Imcompressible Navier-Stokes equations with real-time visualization and real time analysis tools I made during holidays for research and testing different methods and finding their strenghts and weaknesses. This project provides three distinct fluid simulation approaches, each optimized for different physical scenarios:

Navier-Stokes FLIP SPH

ADI (Eulerian) | FLIP (Hybrid Eulerian-Lagrangian) | SPH (Lagrangian)

Validation Test Cases

ADI(3D/2D) Eulerian Solver:

  • Lid-Driven Cavity Flow [1]
  • Flow Past Obstacle (Wind tunnel with sphere/circle) [2]
  • Backward-Facing Step [3]

FLIP(3D/2D)[4] & SPH(2D)[5] Solvers:

  • Dam Break scenario
image

Currently, the implementation is powered with:

  • OpenMP-accelerated CPU computation with Eigen library for small systems and ADI solutions (With TDMA Algorithm)
  • GPU Acceleration: NVIDIA AMGX library for sparse matrix operations in pressure solving in heavy Poisson Systems.
  • Custom made MAC (Marker-and-Cell) grid layout for optimal memory access patterns with linearized storage and indexing.

Interface:

  • ImGUI-based control panel
  • Real-time plotting with ImPlot (2D graphs)
  • 3D visualization with ImPlot3D
  • ParaView-compatible grid format export (.vtk)
Screenshot from 2025-12-28 14-29-59

References:

[1] - Ghia, U. K. N. G., Ghia, K. N., & Shin, C. T. "High-Re solutions for incompressible flow using the Navier-Stokes equations and a multigrid method" (1982.).

[2] - Schäfer, Michael, et al. "Benchmark computations of laminar flow around a cylinder." (1996.).

[3] - Armaly, Bassem F., et al. "Experimental and theoretical investigation of backward-facing step flow." (1983.).

[4] - Brackbill, Jeremiah U., Douglas B. Kothe, and Hans M. Ruppel. "FLIP: a low-dissipation, particle-in-cell method for fluid flow." (1988.).

[5] - Müller, Matthias, David Charypar, and Markus Gross. "Particle-based fluid simulation for interactive applications." (2003.).

About

A computational fluid dynamics (CFD) application implementing multiple fluid simulation methods for the Imcompressible Navier-Stokes equations with real-time visualization and real time analysis tools I made during holidays.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published