Day 11
Welcome to Day 11. By now you should be able to run simulations of real life problems with OpenFOAM. In some cases models might not be implemented in the source code. OpenFOAM offers through an open source code the possibility to add models to the existing code. This might be a challenging task, but with the following tutorials, you will get a basic understanding of the work flow. Today we will focus on:
- taking exiting code as a starting point
- required changes
- compiling custom solvers
Go back to "3 weeks" series.
Contents
Programming - Introduction
This short introduction and example is an excellent start into programming in OpenFOAM. You will quickly learn the steps and the idea behind compiling your own code. Here the focus is on:
- commands required
- compilation
- output
- using exiting code as a starting point
Developing an OpenFOAM solver
This tutorial gives a compact introduction to developing a solver with not only an additional model but actually an additional partial differential equation, which is being solved during run time. Here the focus is on:
- solver structure
- compiling
- existing solvers
- adding an energy equation
- modifying and running a case
Programming in OpenFOAM
This video lets all the gained information sink in. With it you will be able to understand the simulations you ran up until now and you will implement this knowledge in upcoming cases. You will learn about
- organizing your work
- creating your own application
- adding a boundary condition
- programming guidelines
- consistent styling
- debugging
Scalar Transport: Swirl Test
With your gained experience you will create a new solver here for a different application and test it with a modified case setup. The focus is on:
- types of source files
- applications
- utilities
- build system
- modifying a case setup
Programming in OpenFOAM - Summary
This tutorial gives an extensive summary on programming in OpenFOAM. You will create your own boundary conditions as well as a new solver and test your new code with modified case setups. The focus is on:
- building blocks
- implementation of boundary conditions
- testing the boundary conditions with two case setups
- modification of an existing solver
- testing of the solver
End of Day 11
This is the end of Day 11. Today you got a basic introduction into programming in OpenFOAM. We hope, that you had fun and you will still come back tomorrow for more programming. See you tomorrow!