Introduction to CFD using MATLAB and OpenFOAM

Learn CFD by writing code from scratch in Matlab or Octave

  • 0% EMI Option Available
  • Pre-requisites : For Mechanical, Aerospace, Automotive, Material & Civil Engineers with basic understanding of Fluid Dynamics, Mathematics and Programming.
Enroll Now View demo


Fluids are an essential part of our existence. From breathing air to drinking water, from Cricket to Football, from F1 racing to air travel, our interaction with Fluids is inevitable for our living and survival. Therefore it is essential for us to understand how these fluids work and to be able to predict/simulate how they behave under concerning circumstances so that we can make them work to our advantage. That is where CFD comes into the picture. CFD is a tool that can help us simulate a fluid’s behaviour by solving its governing equations numerically with the help of modern computation capabilities.
In this course, you will be working on MATLAB and OpenFOAM. MATLAB is an interactive programming tool for scientific computing. OpenFOAM is a prominent open-source software for Computational Fluid Dynamics. This course falls under the CFD domain. The students/professionals who want to establish a career in simulating/studying how a fluid interacts with different mechanical systems and finding ways to optimize the system can take up this course. The key application areas of CFD include Aerospace, Automotive, Construction, Power and Energy, Turbo-machinery and Biomedical.
This course will provide the much-needed foundation on the basic aspects of CFD and how it can be used to optimize a mechanical system. You will also develop a working knowledge of the software by solving various CFD problems. 
As our machines are getting more advanced day by day, our reliance on computers is only increasing. And this is leading to the adoption of CFD by many industries. The problems that seemed impossible to solve are being solved using advanced computing capabilities. In the future, as technology becomes cheaper, CFD will surely be the most preferred testing method and will witness a big surge in its use. Thus, the job prospects for CFD in the near and far future look bright.



Get a 1-on-1 demo to understand what is included in the course and how it can benefit you from an experienced sales consultant. The demo session will help you enroll in this course with a clear vision and confidence.

Request a Demo Session

Download syllabus

Our courses have been designed by industry experts to help students achieve their dream careers

Download Syllabus


1What is Computational Fluid Dynamics?

In this module, you will understand what CFD is and its significance. You’ll also learn what the Navier-Stokes equations are and how they’re derived.

  • CFD - An introduction, Necessity, Advantages, CFD Modeling Process

  • Deriving and understanding the Navier Stokes equations

    • Substantial derivative

    • Continuity Equation

    • Momentum Equation

    • Energy Equation

  • Significance of Reynold’s number in the NS equations

2Mathemathics and Fluid Dynamics Essentials

In this course, you will be writing solvers and getting your hands dirty with different numerical methods. Before we do this, it is very important to understand the essential mathematical and fluid dynamics concepts that you will encounter.

  • Basic Vector Calculus

    • Divergence, Gradient and Curl

  • Taylor’s Series

  • Initial and Boundary Conditions

  • Classification of PDEs and their characteristics

  • Learning essential Fluid Dynamics quantities and their Dimensional Analysis

3Introduction to MATLAB and Basic CFD Concepts

It is essential to establish a rigid foundation before plunging into the farther depths of CFD. This is where you get introduced to MATLAB and learn the basic concepts of CFD by writing MATLAB scripts. Here are some topics that we would cover:

  • Getting acclimated to the MATLAB interface

  • Numerical discretization and its types

  • FDM - Understanding different schemes with worked examples in MATLAB

  • Deriving own FD schemes using Taylor’s table

  • Solving ODEs in MATLAB using the ‘ode45’ solver

4Exploring CFD by Solving Standard CFD Problems using FDM

In this section, you would venture into the Finite Difference Approach to discretization and solving various benchmark CFD problems in MATLAB. You’ll also be working on two major and two minor projects here. The list of projects are as follows;

  • Solving the 1D linear convection equation and performing stability analysis

  • Major Project: Simulating 2D unsteady/steady heat conduction equation and studying implicit vs explicit approaches

  • Solving coupled linear systems using iterative solvers

    • Jacobi

    • Gauss-Seidel

    • SOR

  • Major Project: Simulating Quasi 1D subsonic-supersonic nozzle in FDM and studying conservation vs non-conservation forms of governing equations

5Introduction to FVM and OpenFOAM

OpenFOAM is an open-source toolbox with in-built Numerical Solver and pre/post processors for solving CFD Problems. It is based on the Finite Volume Method of discretization. In this section, you will learn how to run a simulation on OpenFOAM and the significance of using an FVM approach. These are the topics you would learn:

  • Finite Volume Method and Gauss divergence theorem

  • Understanding the Linux environment

  • OpenFOAM code organization and case setup

  • Detailed blockMeshDict tutorial

6Solving standard CFD Problems in OpenFOAM

It is important to get a real feel of problem-solving using the OpenFOAM software so that you can explore and simulate a wide variety of problems. This is where we create a platform that will enable you to start any simulation from scratch and establish confidence in your result. You will be working on the following major projects.

  • Flow over Backward Facing Step

    • Code the geometric mesh information inside the C file ‘blockMeshDict.’

    • Implement mesh grading factor

  • Laminar flow through the pipe and Validate results

    • Automate the ‘blockMeshDict’ generation on MATLAB

    • Characterization of fully developed flow

    • Explore different boundary conditions

Projects Overview

2D Simulation


In this project, you will learn how to discretize and solve an unsteady and steady diffusion phenomenon using a Finite Difference Method in MATLAB/Octave. You will

also learn to use both implicit and explicit time integration approaches to solving an unsteady problem. We will work on how to use 3 different iterative methods to solve implicit equations and compare their effectiveness. Finally, you will perform a stability study and understand the criteria to obtain a stable and reliable solution.


  • Solve 2D Steady and Transient heat conduction problem

  • Implement Jacobi, Gauss-Seidel and Successive Over-Relaxation solvers

  • Implement Implicit and Explicit methods to solve the transient part

  • Implement Diffusion CFL number-based time step control

MacCormack Method


In this project, you will simulate the conditions for an inviscid flow inside a Subsonic-Supersonic Convergent-Divergent Isentropic Nozzle. You will perform a quasi-1D simulation using the FDM approach in MATLAB/Octave. The student will then investigate the conservation and non-conservation forms of the governing equations and learn their characteristics and applications. 


  • 1D supersonic nozzle flow using MacCormack Method

  • Implement Conservative and Non-Conservative form

  • Implement Courant Number based time step control

  • Solve Normalized Governing equations

Laminar Flow


In this project, you will simulate a laminar viscous flow across a sudden steep expansion in area and study the boundary layer separation phenomena. You will learn how to set up and run a case in OpenFOAM in the Linux environment. You will also learn how to customize the course code to suit this problem. And finally, implement different mesh grading factors and compare the results.

  • Simulate this classical CFD benchmarking problem

  • Run grid dependency test

  • Implement mesh grading

  • Study the boundary layer separation phenomenon

BlockMesh Generation


In this project, you will simulate the laminar viscous flow through a regular pipe using symmetry and wedge boundary conditions and compare the simulation result with the analytical one obtained using the Hagen-Poiseuille formula. You will to then write a program to automate the generation of the Mesh file. The simulation will be run in OpenFOAM and post-processed in Paraview. 

  • Automate mesh generation process using MATLAB/Octave

  • Perform Wedge Vs. Symmetry BC study

  • Understand fully-developed flow and Hydro-dynamic entrance length

  • Compare the results with the analytical result from Hagen-Poiseuille formula


  • For Students seeking a hands-on approach to setting up and solving CFD problems.
  • For Freshers seeking job opportunities as a CFD Developer or CFD Applicaton Engineer.
  • For Professionals looking to upskill and learn how to use a CFD solver on complex CFD problems that might be hard to program manually.



Numerical Simulation: MATLAB/Octave, a cross-disciplinary Numerical Solver to perform Advanced Numerical Simulations.


CFD Solver: OpenFOAM is an Open-Source CFD Solver used for the development of customized numerical solvers.


Operating System: Know your way around the most versatile open-source operating system suitable for running scientific computations.

Flexible Course Fees

Choose the plan that’s right for you


2 Months Access


Per month for 3 months

  • Access Duration : 2 months
  • Mode of Delivery : Online
  • Project Portfolio : Available
  • Certification : Available
  • Email Support : Available
  • Forum Support : Available

Lifetime Access


Per month for 3 months

  • Access Duration : Lifetime
  • Mode of Delivery : Online
  • Project Portfolio : Available
  • Certification : Available
  • Individual Video Support : 12/month
  • Group Video Support : 12/month
  • Email Support : Available
  • Forum Support : Available
  • Telephone Support : Available
  • Dedicated Support Engineer : Available

You Might Also Be Interested In

Related Courses

See all


Companies hire from us

See all


  • Top 5% of the class will get a merit certificate
  • Course completion certificates will be provided to all students
  • Build a professional portfolio
  • Automatically link your technical projects
  • E-verified profile that can be shared on LinkedIn


See all

Frequently Asked Questions

1Who are the instructors and what is the learning process?

Our instructors are industry experts working in Fortune 500 companies. We partner with them to deliver the lectures online. You will be given access to recorded content and assignments each week.

2Are there any prerequisites for this course?

You should be pursuing or have graduated with a B.E/B.Tech in Mechanical or Automotive Engineering.

3What kind of support I can expect? What if I have doubts?

Our support system is amazing!. You can read our reviews on Google to see this. We focus on one-on-one support which no one else does. We will communicate with you through videoconferencing, WhatsApp messages/calls, individual online sessions and also in person. Doubts and queries are addressed by a dedicated support engineer who is assigned to you to walk you through your problem areas and clarify any queries that you may have.

4How is this different from what I learnt in college?

Our courses are crafted after consultation with industry experts. This gives you the opportunity to apply what you have learned only as theory and work on projects that will give you a leg up in your career aspirations - be it an MS admit, a new job or growth within your organization. This course will help you bridge the gap between academia and industry and get you market-ready.

5What advantages will I gain by taking this course?

You will have an edge over your peers by working extensively on industry-relevant projects, practice on tools and software that will set you apart and help you in getting ahead of the competition. Our course will strengthen your portfolio to get better grants and scholarship opportunities for MS Admits, explore options in Research & Development, and land that much-coveted job in top core companies. 

6Will software be provided?

OpenFOAM is an Open-Source CFD Solver used for the development of customized numerical solvers. 

The Skill-Lync Advantage

See all