Programming archive
Revision as of 09:09, 20 March 2024 by Jozsef Nagy (talk | contribs)
One of the most relevant capabilities of OpenFOAM the possibility of creating new solvers and features, required for specific needs, which are done with Programming. You can find below a list of tutorials that covers Programming in OpenFOAM.
Go back to Archive section.
Programming
Complete Programming Courses
- Hoste and Jasak video series on programming.
- Tips by Gerhard Holzinger Source Code and Programming (Chapter IX).
- Nilsson's introduction to programming in OpenFOAM.
C++
- Basics of C++ by Hakan Nilsson.
Intro: Compilation and Testing
- The screencast tutorials by Stefan Radl provide details on compilation and basic testing of new code.
- Lee's compact introduction to compilation using existing code.
Implementation of Initial and Boundary Conditions
- This tutorial by Gavin Tabor covers the implementation of custom boundary conditions.
- Guerrero describes how to implement and test BCs using codeStream.
- Guerrero describes field initialization using codeStream.
- Guerrero describes how to implement a basic solver from scratch.
- Guerrero describes how to add a passive scalar (or the convection-diffusion equation) to a basic solver.
Complete model implementation
- Alletto describes how to couple two different physical problems in OpenFoam. In this specific case you will use the equation of motion of a membrane with pretension to impose the movement of the mesh at a given boundary.
Customizing solvers
- Gavin Tabor describes in this tutorial how to customize solver and implement a new constitutive model.
- Isabelle Choquet and Håkan Nilsson teaches how to implement new thermophysical model and additional transport equation.
- Vakhrushev's slides illustrate how to modify a solver.
- Code Development describes now you can implement your own souce code in OpenFOAM.
Debugging