Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn OpenFOAM CFD (Level 3)
Highest Rated
Rating: 4.7 out of 5(21 ratings)
216 students

Learn OpenFOAM CFD (Level 3)

Learn Neat Techniques to Setup CFD Cases in OpenFOAM!
Created byCfd Baba
Last updated 4/2024
English
English [Auto],

What you'll learn

  • Single phase and multiphase simulation of backward facing step CFD problem
  • Lion External Aerodynamics Simulation using snappyHexMesh
  • Dynamic rotating mesh simulation of simple stirred tank
  • Geometry Preparation Using FreeCAD
  • Geometry Preparation Using Salome
  • Meshing Using Salome
  • Meshing Using snappyHexMesh
  • Setting Correct Boundary Conditions in OpenFOAM
  • Post-processing Using Paraview

Course content

3 sections30 lectures4h 59m total length
  • Background and problem statement4:55

    Study mixing layer growth, entrainment, and reattachment length through open-source CAD-to-post-processing: simulate single-phase and multiphase turbulent flow over a backward-facing step with FreeCAD, Salome, OpenFOAM, and Paraview.

  • 2D CAD creation in FreeCAD10:01

    Learn to create a 2D CAD sketch in FreeCAD 0.21.2 using the part design workbench, with polyline construction, dimensional constraints, and exporting a step file for Salomé mesh generation.

  • Creating 2D tet mesh in Salome14:13

    Import a step CAD into Salome, define inlet, outlet, and wall boundaries, create a 2d mesh with Net Gen, then extrude to 3d for Openfoam.

  • Steps to solve CFD in OpenFOAM3:08

    Export the mesh, set up the OpenFOAM case by importing the mesh and configuring boundaries, material, turbulence, and solver settings, then run the simple form command and repeat for multiphase.

  • Importing 2D mesh to OpenFOAM8:09

    Import a 2D mesh into OpenFOAM by navigating the Ubuntu terminal, then set boundary types in the constant/polymesh boundary file and visualize in Paraview.

  • Setting files in constant and 0 folder5:56

    Set transport properties with kinematic viscosity 1.4e-5, apply the k-epsilon turbulence model, and define boundary conditions in the zero folder (zero gradient, no-slip, default faces).

  • Calculating k and epsilon for OpenFOAM2:02

    Compute k and epsilon in OpenFOAM using turbulent intensity and reference speed, with mu and L; derive k = 0.375 and epsilon = C_mu^0.75 k^1.5 / L.

  • Setting files in 0 folder1:39

    Configure k inlet 0.375. Then apply k q r wall function type for walls and epsilon, rename to default faces, compute T from k and epsilon, outlet zero gradient, save.

  • Setting files in system folder4:04

    Configure Openfoam with DDT and Laplacian schemes for steady state, set tolerances and relaxation factors, adjust residuals, and update control dict to run 2000 iterations with a 50 write interval.

  • Launching single phase simulation in OpenFOAM2:08

    Launch a single phase OpenFOAM simulation from the terminal, monitor convergence and iterations, then post-process in Paraview with velocity contours, vectors, and streamlines to identify recirculation zones.

  • Postprocessing results for single phase simulation in Paraview6:53

    Postprocess Paraview results from a single-phase simulation by importing the case, displaying velocity magnitude contours and vectors, and visualizing streamlines.

  • Setting up case folder for multiphase simulation5:37

    Set up a multiphase OpenFOAM simulation using a vof solver with water and air, using coarser Salome mesh, create two_multiphase, copy files, and add alpha.water, p_rgh, gravity, and system controls.

  • Creating 2D hex mesh in Salome6:49

    Create a 2D hexahedral mesh in Salome from CAD, then extrude to a 3D mesh for multiphase OpenFOAM. Export as unv, import, and set inlet, outlet, and boundary conditions.

  • Setting files in constant and 0 folder10:59

    Set gravity in the negative y direction, apply k-epsilon turbulence, define water and air properties in constant, and configure fixed inlet velocity 10 and atmospheric upper-wall boundaries in zero.

  • Setting files in system folder and launching multiphase simulation4:59

    Learn to set up a multiphase OpenFOAM simulation by configuring interFoam and schemes, enabling automatic time-step control to keep the Courant number near 0.95.

  • Postprocessing results for multiphase simulation in Paraview5:46

    Postprocess multiphase OpenFOAM simulations in ParaView by loading cases, animating velocity and alpha water fields, and identifying steady-state flow and recirculation after the step.

Requirements

  • Enthusiasm to learn OpenFOAM
  • OpenFOAM installed on your system

Description

Note - CFD results always need to be validated with experimental data before blindly relying on them.


This course will take you through all the basics required in order to simulate simple CFD problems using OpenFOAM.

  • Geometry preparation will be covered using FreeCAD and Salome.

  • Meshing will be covered using Salome and snappyHexMesh.

  • Solving will be covered using OpenFOAM solvers.

  • Post-processing of results will be covered using Paraview.

  • All these software are available for free without any license costs.

CFD helps to reduce the cost of products by saving time and money in prototype testing phase. Rapid prototype testings can be done by using CFD technology to predict the future behavior of the product. It enables us to foresee any shortcomings in the product and rectify them before the actual manufacturing phase of the product. This is a young technology and can grow substantially in near future.


You will be able to draw CAD models using the dimensions of any given geometry. Then you will understand how to draw CAD model in FreeCAD and mesh the geometry in Salome to get appropriate results. You will also learn to setup snappyHexMesh. Mesh size plays an important role in deciding the accuracy of your results. Assumption of boundary conditions is another important aspect in any CFD simulation. Replication of real-life conditions must be correctly implemented in the CFD boundary conditions. Finally good post-processing of the results helps you to deliver your results successfully to the non-technical.

Who this course is for:

  • Bachelors Students
  • Masters Students
  • Professionals