
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
Postprocess Paraview results from a single-phase simulation by importing the case, displaying velocity magnitude contours and vectors, and visualizing streamlines.
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.
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.
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.
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.
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.
Learn to compute lift and drag in external aerodynamics using open source tools. Mesh a line with snappy hex mesh, and post-process results in Paraview.
Set up a fluid domain around a lion STL by adjusting blockMesh dict and using snappyHexMesh to subtract the CAD, following the motorbike tutorial for a steady case.
Edit the blockMeshDict to define eight vertices and bounds, set inlet, outlet and wall boundaries, then generate and refine a snappy hex mesh near the STL, visualizing in paraview.
Learn to generate a 3D snappyHexMesh in OpenFOAM by placing the STL in constant/triSurface, configuring the snappyHexMesh dict and refinement, and running blockMesh, surfaceFeatureExtract, and snappyHexMesh.
Learn to prepare an OpenFOAM case by configuring material and turbulence in constant, setting boundary conditions in zero, and checking system schemes and controlDict before launching with simple form.
Configure the system folder and control dict in OpenFOAM, define force coefficients for a line patch to compute lift and drag, and run simpleFoam to 1000 iterations with logging.
Postprocess OpenFOAM results in paraview with pressure and velocity contours, vectors, and streamlines to analyze flow around the body. Retrieve CL and CD values to evaluate lift and drag.
Simulate a simple stirred tank with a Rushton impeller using OpenFOAM for transient turbulent flow in batch mode, and use Salomé, snappy hex mesh, and Paraview to compute torque.
Export stl files from Salomé, assemble cad parts into separate stl files, and use snappy hex mesh in OpenFOAM to create a computational fluid dynamics domain for a propeller case.
Configure an OpenFOAM CFD case by placing STL files in the Dry Surface folder, building a block mesh around the cylinder with blockMeshDict, and setting boundary and turbulence properties.
Create a snappy hex mesh from STL files in OpenFOAM by configuring surface feature extract dicts and edge refinement, building the block mesh, and validating the mesh with check mesh.
Set up OpenFOAM CFD in a rotating inner cylinder mesh: define constant, zero and system folders, water properties, k-epsilon turbulence, and dynamic mesh rotation with origin, axis and angular speed.
Configure the system folder, verify fv schemes and solutions, set pimple form transient solver with Euler, adjust time stepping, define forces for the propeller tip, and run to 0.1 s.
Learn to compute torque on impeller blades from Paraview post-processing, visualize velocity fields, contours, and streamlines, and use clips, slices, and glyphs to interpret rotating flow.
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.