Difference between revisions of "Programming archive"

From OpenFOAM Wiki
Jump to navigation Jump to search
 
Line 24: Line 24:
 
* [https://wiki.openfoam.com/Programming3 Guerrero] describes how to implement a basic solver from scratch.
 
* [https://wiki.openfoam.com/Programming3 Guerrero] describes how to implement a basic solver from scratch.
 
* [https://wiki.openfoam.com/Programming4 Guerrero] describes how to add a passive scalar (or the convection-diffusion equation) to a basic solver.
 
* [https://wiki.openfoam.com/Programming4 Guerrero] describes how to add a passive scalar (or the convection-diffusion equation) to a basic solver.
 +
 +
'''Complete model implementation'''
 +
* [https://wiki.openfoam.com/Coupling_a_membrane_with_pretension_to_point_displacement_Michael_Alletto 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'''
 
'''Customizing solvers'''

Latest revision as of 09:09, 20 March 2024

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