Day 5

From OpenFOAM Wiki
Revision as of 06:55, 26 September 2016 by Jozsef Nagy (talk | contribs)
Jump to navigation Jump to search

Welcome to Day 5. After some dry topics, today we have some fun simulations for you. You will also get a links to materials, which can help improve the quality of your simulation. If you have some problems in the future with your simulations, you can come back to them. Most probably you will find a solution.

Go back to "3 weeks" series.

Introduction to OpenFOAM

This tutorial is an excellent introduction as well as summary of OpenFOAM in general and will summarize all the information you gained. Also you will try and compile a custom code in order to understand the numerics with a simple 1D case. The focus is on:

  • general introduction
  • solvers
  • versions
  • code structure
  • case structure
  • summery of numerical entries
  • simple 1D problem

Running your first case on your own

Try your gained knowledge about OpenFOAM and set up a case on your own. For this you will need everything you have learned so far. You will cover

  • creating your mesh
  • setting up initial and boundary conditions
  • setting up physical properties
  • setting correct numerical settings
  • running your simulation
  • postprocessing your simulation

Hagen Poiseuille flow

Another fun simulation is the laminar Hagen Poiseuille flow. Follow the set-by-step introductions to utilize and further extend your gained knowledge about

  • a simple case setup
  • function objects
  • laminar flow
  • numerics
  • sampling during postprocessing

Course by Håkan Nilsson

Here you will find a link to the course provided by Håkan Nilsson at Chalmers university as well as some selected pdfs.

Tips and Tricks for OpenFOAM simulations

Below you will find additional material, where you can find tips and tricks for the improvement of your simulation. Feel free to go though them and fall back to them in the future, once you encounter some problems in your simulation.

Tips 1

In this handy summary of OpenFOAM functionalities you can read about e.g.

  • geometry and mesh creation
  • case setup
  • case control
  • field initialization
  • boundary conditions
  • turbulence modeling
  • multiphase modeling (Eulerian and Lagrangian)
  • solvers
  • postprocessing
  • programming in OpenFOAM

Tips 2

In this material you can find information on the small details, which do make the difference between a good simulation and crashing.

  • shell environment
  • looking for information in the source code
  • running cases on a cluster
  • mesh quality check
  • boundary and initial conditions
  • numerics
  • convergence
  • function objects

Tips 3

In this material you will find useful tips on

  • Linux commands
  • running OpenFOAM on a remote computer
  • FAQ
  • Paraview

End of Day 5

We are happy, that you finished Day 5. We hope, that you enjoyed your journey with OpenFOAM so far. By now you should have a good understanding about the basics and the theory. On Day 6 we will continue with a more advanced topic:

  • meshing.

See you on Day 6.