A Beginner's Guide to simulating with OpenFOAM

Get to know how to simulate various flow configurations in OpenFOAM.
4.3 (6 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
514 students enrolled
Instructed by Andrej Lerch IT & Software / Other
$19
$30
37% off
Take This Course
  • Lectures 28
  • Length 1.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 4/2016 English

Course Description

In this course you are going to learn how to simulate various flow configurations in the Computational Fluid Dynamics software OpenFOAM. This includes the simulation of laminar and turbulent, stationary and transient flows. Furthermore, you are going to see how to work with multiphase flows. We will cover how to choose correct initial and boundary conditions for the calculation. Moreover I will explain how to define a spatial domain and mesh it with a structured or unstructured grid. You are going to learn how to edit runtime controls and how to run a job including how to check convergence of the solution and visualize it graphically.

What are the requirements?

  • Install OpenFOAM, GMSH and Paraview
  • Alternatively you can just install CAE Linux on your machine. It has all the required software preinstalled and configured.

What am I going to get from this course?

  • Simulate flows in OpenFOAM
  • Laminar and turbulent
  • Stationary and instationary
  • Multiphase
  • Set correct boundary conditions
  • Create meshes
  • Regular and unstructured meshes
  • Analyze residuals
  • Extract force and moment coefficients
  • Visualize solutions
  • Extract solution data

What is the target audience?

  • For Engineers, Scientists, Beginners in CFD and OpenFOAM
  • For Engineers
  • For Scientists
  • For Beginners in CFD
  • For Beginners in OpenFOAM
  • For Experts in other CFD Software

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Introduction
00:43

Short introduction of who I am and what you are going to learn in this OpenFOAM course.

Section 2: Laminar flow through a pipe
05:07

We will set up the case and create the geometry of our domain in order to create a simulation mesh.

03:45

We will create a regular mesh from a block and define boundary surfaces.

02:53

We will edit the boundary conditions for pressure and velocity on inlet, outlet and walls and define initial distributions for our field values.

03:19

We will edit runtime controls such as time step, how often results will be saved etc.

01:38

I will show you how to create a mesh, check it for errors and start the job.

03:06

We will analyze the log file, plot the residuals and check the convergence of our solution.

03:23

We will visualize the converged solution for pressure and velocity.

Section 3: Turbulent flow over a backward facing step
03:10

First of all we will set up the case and create the geometry and mesh from three blocks.

04:19

Then we will edit the boundary and initial conditions.

03:39

I will show you how to choose the turbulence model and configure the physical properties for the fluid.

00:34

We will execute the mesh creation and run the job with log file output.

01:55

We will plot the results in Paraview.

02:01

We will plot the velocity profile for a certain axial position.

01:40

I will show you how to add streamlines to the plot.

Section 4: Transient flow around cylinder
03:06

Creating the case folder.

09:51

Well will create the geometry in gmsh in order to make a unstructured mesh.

05:06

Creating the actual mesh and refining the cylinder surface and wake.

05:30

We will edit the boundary conditions, change runtime settings and set up the simulation for calculating force coefficients for drag and lift.

Converting the mesh and running the job
01:22
02:37

Plotting the residuals over time and have a look at the force coefficients.

01:30

We will visualize the transient solution in Paraview.

Section 5: Container with two phase fluid
03:15

Creating the container geometry.

01:38

We will activate the gravitational force and select fluid properties suchs as density and viscosity.

02:01

Changing the boundary conditions and initial values.

01:57

Adjusting the runtime and choosing a variable time step according to a maximum Courant number.

00:41

Running the job and logging the progress in a file.

03:52

Analyzing the transient solution und visualizing the filling of the container over time with two phase fluid.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Andrej Lerch, Engineer for Numerical Simulation

Hi everyone,
my name is Andrew and I am an engineer from Germany. I have got a M. sc. in Physical Science and many years of experience in quite a lot of programming languages such as C, C++, Java, Python, Matlab etc. My main field of work is numerical simulations e.g. strucutral mechanics, thermo dynamics and electro dynamics.

Ready to start learning?
Take This Course