This course is a follow-up to my Introduction to Computational Fluid Dynamics course. In this course we extend the capabilities of the two-dimensional, incompressible Navier-Stokes solver developed in the first course to include enhancements such as unsteady flow capabilities, second-order and blended interpolations for the convection terms, pressure, symmetry, and periodic boundary conditions, mesh clustering, the energy equation, and perhaps other topics as deemed appropriate.
All codes are written in Fortran90 and are available for download, as are the course notes. Upon successful completion of the course students should be able to develop their own codes or modify the available codes to solve problems of varying complexity. To get the maximum benefit from this course, I recommend that students complete the first course, or have an equivalent background.
Recently added the description of a finite-difference-based Poisson solver using red/black iteration scheme with OpenMP for parallelization.
Recently added a collocated grid approach to the finite volume formulation of the incompressible Navier-Stokes equations. In the collocated variable approach, the velocity control volumes are not staggered, but are coincident with the scalar control volumes. Although we limit our approach to structured Cartesian meshes, most commercial CFD solvers utilize a collocated variable approach using Cartesian velocity components on unstructured grids.
A new section on two-equation k-epsilon turbulence modelling using wall functions has been added.
The course is such that one can generally pick and choose which sections/lectures to watch.
BASE_CODE.f90 is the base level code all others are derived from.
BASE_CODE_OMP.f90 is a very simple implementation of OpenMP into the pressure solver.
The pressure correction solver loop is changed from SOR to Jacobi to accommodate the parallel operations.
Need fine meshes to see significant speedup.
Some questions regarding the base-level code.
Download the Poisson solver and experiment with speedups as a function of number of threads and number of unknowns (i.e., mesh size).
We will formulate the problem using collocated variables on a Cartesian mesh.
A look into the collocated variable finite volume code set up for the driven cavity problem. The code may be downloaded (next lecture).
Running the code for the driven cavity problem and observing the mass imbalance dropping to machine zero.
Code is included in "downloadable materials." A version for a channel flow is also downloadable.
Using ParaView to plot velocity vectors for driven cavity flow. Data file (.csv) as formatted in the downloadable collocated grid CFD code used to solve the driven cavity problem.
A brief review of the momentum equations and a description of some necessary statistical quantities.
A complete copy of the Section notes may be downloaded from this lecture.
We briefly go over the code set up for channel flow. This code may be downloaded.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.