
This module will cover:
Where to download OpenFOAM and Paraview
How to install OpenFOAM on a Windows computer
How to install OpenFOAM on a Linux computer (Ubuntu)
Installing Paraview - the software to process the CFD data to get nice animations and pictures of the flow
Configuring OpenFOAM to run on multiple cores at once, so the simulation runs quicker
How to configure to be able to run OpenFOAM directly from the command line
Checking to make sure that OpenFOAM is installed correctly
Make a directory that OpenFOAM accesses directly, and to store your simulations in
Running an example simulation including, meshing, simulating, and postprocessing the results to get flowfield images and videos
This module covers the basics of how OpenFOAM works and its format.
In this module, we'll go through:
How OpenFOAM works
The file structures
How to use these files
Introduction to the OpenFOAM tutorials included
Where the tutorials are located
How to copy the tutorials to your working folder
How to use the tutorials
Run your first simulations with OpenFOAM
How to use the Allrun file
Where the boundary conditions file is located and how to use it (including the velocity, pressure, K, Omega, and Epsilon values)
Where to tell OpenFOAM that you're using a RANS, DES, LES, or DNS simulation
Where to specify which turbulence model you are using
Where to specify the viscosity of the fluid used in the simulation
Where your geometry will be located in the OpenFOAM structure
What the meshing commands are including the "blockMesh", "surfaceFeatures", and "snappyHexMesh" commands do
How to change how refined the mesh is in different regions
How to open ParaView - the software used to visualize the results
How to visualize your mesh and simulation results in ParaView
How to change the views in ParaView and the information you're viewing
How to setup your domain geometry
How to specify the boundaries in your domain
How to set the solving conditions and the stop time (convergence)
How to specify the convergence criteria for your simulation
How to change the relaxation factors to make it easier for your simulation to converge
How to break up your simulation to run in chunks so you can stop and restart at a later date
How to change how often OpenFOAM will save the data during simulating, so you can reduce the amount of space the simulation will take up on your hard disk
In this module, we cover how to find different tutorials with different solver conditions, including steady state, transient, RANS, and URANS simulation, and how to run them. We use these tutorials to become familiar with the settings required for different flow conditions, and we can then use that understanding in later modules.
We cover tutorials on:
Steady State simulations
Transient simulations
RANS simulations
URANS simulations
Incompressible simulations
Compressible simulations
As well as:
How to read the output text to check what the residuals of the velocity, continuity, pressure, and turbulence model (such as the K and Omega values) equations are and check if the settings you want are being run
Where to put your geometry for OpenFOAM to access it and mesh
How to visualize your mesh in ParaView to check that it's what you want
How to check your mesh refinement stages in OpenFOAM
How to check the simulation results at different timesteps during your simulation
In this module, we'll use what we've learned so far, as well as learn a few more things to use and run our own Steady State RANS simulations.
We'll cover:
How to prepare your geometry so it is the correct dimensions and in the right orientation
Saving your geometry in the right format for OpenFOAM to read and use
Changing the domain size to fit your geometry - this ensures that you have enough room for the flow to develop accurately, but not so big as to have more cells than you need - this reduces computational time
Telling OpenFOAM where to mesh in the domain and where not to mesh in the domain
How to set the general mesh fineness in your domain
How to refine certain regions in your domain, for example the wake - this increases the accuracy of your simulations
How to refine the surface mesh of your object to get more details in the simulation and get more accurate results
Set an upper limit to the maximum number of cells OpenFOAM will create locally in any region - this ensures that you keep the number of cells within the limits of your computational resources, so meshing and solving times are reduced - it also reduces how much wasted time there is when meshing due to inappropriate meshes
Limiting the maximum number of cells in your overall domain - this allows you to select the most cells you are happy to have in your mesh, and then how long it will take to solve the simulation
Creating the boundary layer mesh over your object - this dramatically increases the accuracy of your simulation because the flow over your object is better calculated
Specifying which surfaces the boundary layer mesh should be added to
Controlling how many layers in the boundary layer mesh you want
Specifying the first layer height and the growth rate of your boundary layer mesh - these are VERY important to ensure an accurate simulation. The first layer height determines the y plus value, and the resulting accuracy of your simulation
Toggling off the boundary layer mesh, if you want (not usually recommended, but another option you have)
How to specify which turbulence model you want to use - for example, K Epsilon, K Omega, K Omega SST, K Epsilon Realizable, SST, v2f, Spalart Allmaras, Shi Quadratic KE, Lien Cubic KE
Setting the convergence criteria you want - and how to use the one OpenFOAM uses by default, if you prefer
Setting the freestream (inlet) velocity of the flow
How to change the turbulent kinetic energy in the freestream flow
How to get OpenFOAM to calculate the lift coefficient, drag coefficient, and side force coefficient of you object (We also cover how to get OpenFOAM to give you the rolling, pitching, and yawing moment coefficients of your object)
This module covers how to run your own URANS (transient) simulations with the geometry and flow conditions of your choice. It builds upon what we learned in the previous module, but we go through how to change the various settings we need to, in order to make this a transient, URANS simulation now.
We also cover some more details about meshing so you can build a more robust mesh. This is because transient simulations are more accurate, but also more delicate than steady state simulations. So, a higher quality mesh is required. We cover how to do that in this module too.
We cover:
Changing the simulation to transient
How to set different grades of surface refinement depending on how sharp various features are. For example, a sharp, detailed region will be refined more than a less detailed region - this increases the accuracy of your simulation
Setting how quickly or slowly you want your mesh to change between a coarser and finer zone. A quicker change reduces the number of cells needed. A slower change increases the stability of your simulation. You have the options to choose what you need based on the situation
How to set the timestep you would like the transient simulation to run at
Setting the end time of your simulation
How to change the inner loops OpenFOAM solves before marching to the next timestep - these inner loops increases the robustness of the simulation and makes it more stable so it won't crash as easily once you get to more complex simulations
How to restart a simulation once it has ended, if you want to increase how long it runs for after it has already finished
In this module, we'll go through how to run your own DES (and DDES and IDDES) simulations now. This is the next step up from URANS simulations, and the accuracy of your simulations will now be much greater.
We will cover:
How to tell OpenFOAM that your simulation is now DES
Setting the turbulence model you want to use in your DES simulation. For example, K Omega SST
If you want to, you can also change the mathematical scheme used to solve the equations - or you can use the OpenFOAM default. We go through both ways, so you have the choice, if you want
A more detailed explanation of the exact process OpenFOAM goes through to refine your mesh, and how to understand what it's doing - understanding this is not a requirement for running a simulation, but it increases your understanding of what is happening, so you can give OpenFOAM better inputs to give better results
How to find boundary condition errors and how to fix them
How to change from running DES to DDES and even IDDES simulations
How to tell what timestep you should run with for convergence
Up to now, we've learned how to use OpenFOAM. In this module, we'll go through how to make using OpenFOAM easier. We also cover how to postprocess your results to get the information in your simulations, and nice animations and graphs.
We cover:
How to automatically control the timestep OpenFOAM uses. This means you don't need to change anything yourself and OpenFOAM will change it each timestep for you. This reduces the solving time, without compromising accuracy. AND with no extra effort required by you. OpenFOAM does it for you!
How to structure your simulation so you can reset it easily - this process is called "cleaning" and that reduces the overall size of your simulation so once you have your results, you can store the simulation and reduce how much space it takes up on your computer
How to see the velocity field at different planes through your domain. We also cover how to see any other variable included in your simulation, for example, the pressure
How to calculate the vorticity in your flow field, and how to visualize it. This includes the total vorticity, as well as the vorticity in the x, y, and z directions
How to calculate the Q Criterion in your flow field to see where the vortices are
Changing the colormap used to visualize your data
How to change the background color to make the colors easier to see and look truer relative to each other
Adding streamlines to visualize where the flow is going around your object
How to change how many streamlines there are to visualize the flow more clearly
How to color the streamlines to show various quantities - for example, coloring the streamlines in the velocity so you can see how fast the flow is at each point along each streamline
Changing whether the streamlines show where the flow is going, or where it is coming from, or both - this is extremely helpful for determining how flow is entering somewhere critical, and then how it is exiting
How to select a subregion of your domain to visualize the flow there - this can be used to make the visualizations clearer, or also to speed up processing time when working with many cells
How to isolate regions in your domain that are above or below a certain level in a parameter you want - for example, isolating everywhere in your domain where the pressure is above 1,000 pascals. You can choose the level
In this module, we tie everything we've learned up with a final simulation. We give a geometry, and then instructions on how it needs to be simulated. You can then try it, and then once you have done that, we go through it step-by-step as a check. This simulates what it's like in industry and research, where you'll get a simulation to do and are given requirements. You then need to go ahead and simulate it.
We also go through more postprocessing to see your results.
We cover:
How to run a simulation based on requirements and a geometry given to you
We cover some difficulties that might occur and how to overcome them
Checking the Y Plus values are what you want
How to use postprocessing to tell if the mesh needs to be refined in certain regions
OpenFOAM is a free and VERY powerful CFD software, rivalling Ansys, Star-CCM+ and the other paid CFD giants.
Using OpenFOAM's highly structured approach to Computational Fluid Dynamics, you can solve your engineering problems, from incompressible, compressible, air, water, and any other fluids, to steady state and transient, to supersonic, OpenFOAM can simulate it.
This course gives you a simple and straightforward guide to how to use OpenFOAM CFD as a complete beginner. It teaches you from the very start how to even install OpenFOAM, through to importing your geometry, meshing it, simulating it, and postprocessing your results to get amazing videos and pictures of the flow in your simulation.
We cover all the aspects you need to run your own simulation, including:
How to change your mesh and get a high quality one
How to choose RANS, URANS, DES, DDES, and IDDES for your simulation
Setting the right boundary conditions
Choosing the turbulence model you want
Increasing the stability of your simulation, so it converges and solves quicker!
Get OpenFOAM to give you the force and moment coefficients of your object, including the drag, lift, side force, pitching moment, rolling moment, and yawing moment coefficients
How to make cut planes to visualize the flow, streamlines, and isolate regions based on various criteria.