Programming boundary conditions by Gavin Tabor
- contributor: Gavin Tabor
- affiliation: College of Engineering, Mathematics and Physical Sciences, University of Exeter
- contact: G.R.Tabor@exeter.ac.uk
- OpenFOAM version: 3.0.1
- Published under: CC BY-NC-SA license (creative commons licenses)
Go back to Day 12.
Writing new boundary conditions in OpenFOAM
This tutorial gives you an extensive walkthough of the implementation of a custom boundary condition. You will see the main steps and compile the code in order to run a case, where you utilize the boundary condition. The topics covered are:
- classes in OpenFOAM
- polymorphism
- runtime selection
- boundary conditions
- testing
You can download the code and case files here.