Skip to content

A simple investigation into various CFD methods (like SF-Vorticity approach, primitive variable FDM, FVM etc.) by using the Lid-Driven Cavity problem as an example

Notifications You must be signed in to change notification settings

vahadruya/Investigation_of_CFD_methods_on_the_Lid-Driven_Cavity_Problem

Repository files navigation

Investigation of CFD methods on the Lid-Driven Cavity Problem

The Lid-Driven Cavity problem is studied for investigation of different basic CFD methods, namely the

  1. Stream-Function Vorticity approach
  2. Primitive Variable FDM
  3. Finite Volume approach

Observations

  1. The SFV approach is quite easy to apply in 2D and steady incompressible constant-density flows. But it becomes tedious in 3 dimensions, and moreover, the boundary conditions are not easily derivable or intuitive as well. Hence resorting to the primitive variable approach generally is better
  2. The FDM approach while much easier to implement and understand, suffers from non-divergence-free issue. Particularly because of its natural discretization of the pressure laplacian term, it creates mass imbalance and does not satisfy the continuity inherently. Furthermore, it also leads to the pressure/velocity checkerboarding problem. Hence a staggered grid for x/y momemntum with respect to the scalar grids is better suited for the primitive variable approach.
  3. Since the control volumes are defined with fluxes in their surfaces, and the governing differential equations are integrated over the cell, mass conservation is inherent within each cell and the staggered grid also comes naturally in it. The divergence error which arises is of the order of the set tolerance limit for iterative schemes used to solve the pressure-poisson equation.
  4. The discretization and nomenclature for FVM can get a bit complicated on implementation. Also, it takes significantly more time to obtain solutions compared to the FDM. Utilisation of sparse matrices and storage can significantly bring the order of the count of calculations and thus reduce the simulation time.

Libraries Used

Pandas Numpy Matplotlib Seaborn SciPy

Contact

Linkedin Gmail

About

A simple investigation into various CFD methods (like SF-Vorticity approach, primitive variable FDM, FVM etc.) by using the Lid-Driven Cavity problem as an example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published