Course syllabus

MTF073 Computational Fluid Dynamics (CFD) Sp2 ht20 (7.5 hp)

The course is offered by the Department of Mechanics and Maritime Sciences

Course purpose and contents

The course gives a thorough knowledge and understanding of the finite volume method for computational fluid dynamics (CFD).

The governing equations of fluid flow are recalled, and written in a general convection-diffusion form that is useful for the understanding of how the equations are solved in a CFD code. The equations must be discretized and reorganized to linear equation systems, that can be solved using boundary conditions and source terms. We start by discretizing steady-state diffusion equations (e.g. steady-state heat conduction), applying boundary conditions and source terms, and solving the equations using linear solvers. We then add the convection term and study how the discretization must be adapted to the behaviour of convection. In fluid flow problems, several equations are coupled. We study the coupling between pressure and velocity, which requires a special treatment to give stable results. We learn how to discretize the time derivative in different ways for unsteady problems. We finally see how turbulence is modelled by turbulence models that fit nicely into the concept of the finite volume method.

Course schedule and organization

The schedule is found at the schedule page.

• Theory:
Lectures are given each week (normally two lectures of two hours each). A reading guide and detailed learning outcomes help the students work through the theory. The students are encouraged to formulate their own exam-type questions based on the learning outcomes, and these are considered as questions for the written exam. Active students may thus have an explicit benefit, in addition to learning more just by being active.
Three computer tasks form a large part of the course. The computer tasks should be carried out in groups of two students. The computer task reports should be handed in through the course homepage and must be passed by the teacher/assistants. If they are failed they need to be improved and handed in again. The knowledge gained in the computer tasks will be assessed in the written exam, by special task-related questions. Completely correct reports give up to 2 bonus points per computer task in the original written exam (not re-exams or future exams). This is provided that the report is not handed in late and that no resubmission is requested.
• Examination:
The final assessment and grade is by a written examination. The examination includes both fundamental theoretical understanding, derivations, and CFD code implementations (that should be possible to answer by students who have actively worked in the computer tasks). As mentioned above, the exam questions may be inspired by proposed exam questions from the students, and bonus points may be given through the tasks.

Course literature

The course material consists of detailed lecture notes and the following textbook:

H.K. Versteeg and W. Malalasekera. An Introduction to Computational Fluid Dynamics – The Finite Volume Method. Second edition. Prentice Hall, US (2007), ISBN: 9780131274983 (e.g. available at Cremona and Internet http://www.bokus.com/, but also available for free as on-line e-book through Chalmers' library - search for "versteeg malalasekera" at the top of lib.chalmers.se).

No course material can be used at the written examination (under pandemics, special rules may apply).

Changes for the 2020 course

• The course is given completely on-line, due to the Corona pandemic.
• The students are encouraged to formulate their own exam-type questions based on the learning outcomes, and these are considered as questions for the written exam. Active students may thus have an explicit benefit, in addition to learning more just by being active.
• Student presentation of task 2 has been removed (i.e. no presentations, and only reports).
• Live-demos have been added also for task 2 and 3, as was previously done only for task 1.
• Completely correct reports give up to 2 bonus points per computer task in the original written exam (not re-exams or future exams). This is provided that the report is not handed in late and that no resubmission is requested.
• Passing of tasks are reported separately in Ladok, 1.5 points per task. This is the reason why the course code has changed to MTF073. This may be useful when applying for CSN, but the points can only be counted in the education when the entire course has been passed (3x1.5 + 3, where the last 3 points is for the passed written exam).

Learning outcomes

Learning outcomes for the entire course:

- Use the finite volume method to discretize, and in the form of a computer code implement, steady diffusion and convection-diffusion equations.
- Apply boundary conditions and source terms for specific problems, and understand different kinds of boundary conditions.
- Implement and use solvers for the linear equation system that results from the discretization and the use of boundary conditions and source terms.
- Evaluate convergence of the solution of the linear equation system, and verify that the equations are fulfilled.
- Understand and evaluate the plausibility of the results, and validate them.
- Derive the order of accuracy of numerical schemes, and understand why, and how, particular treatment is to be used for convection and time schemes.
- Understand, describe and implement what is necessary to get stable results when calculating both pressure and velocity, both using 'staggered grids' and 'collocated grids'.
- Understand, describe and implement an algorithm for the coupling of pressure and velocity (SIMPLE).
- Understand fundamental concepts of turbulence.
- Understand how turbulence models based on the Boussinesq hypothesis align with the finite volume method.

Link to the syllabus on Studieportalen

Detailed learning outcomes are given for each chapter, to be used by the students to actively work through the theory. The students are encouraged to formulate their own exam-type questions based on the learning outcomes, and these are considered as questions for the written exam. Active students may thus have an explicit benefit, in addition to learning more just by being active.

Examination form

To pass the course it is required that:

1. All three computer tasks are successfully presented in the form of written reports. All tasks must be “passed” by the teacher/assistants, shortly after the submission deadline. The third computer task must be passed at the time of the original written examination - otherwise the student has to come back next year.
2. The written examination is passed. Bonus points for the computer tasks may be given, as stated above. Grade U/3/4/5: 40%: grade 3, 60%: grade 4, 80%: grade 5. No aids can be used at the written exam. One original exam, and two re-exams, are provided each year. No additional opportunities are provided.  (under pandemics, special rules may apply)

The written examination consists of questions related to:

• Physical understanding (from lecture notes/book and computer tasks)
• Theoretical knowledge (from lecture notes/book)
• Derivations (from lecture notes/book)
• Implementations and common implementation mistakes (computer tasks)

Only two old exams are handed out, to show what an exam may look like. It is highly encouraged that the students use the course material to learn instead of just looking at old exams. We promise to do our best to design completely new questions for each exam, to test knowledge and understanding rather than memorization.

Prerequisites

The student should have taken one basic course in fluid mechanics. For students from Chalmers this means one of the following courses:

• Fluid Mechanics M1 and, preferably, Fluid Mechanics M3
• Continuum Mechanics and Fluid Dynamics F3
• Transport Processes K

Date Details Due