Programming archive

From OpenFOAM Wiki
Jump to navigation Jump to search

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

C++


Intro: Compilation and Testing

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

Debugging