Difference between revisions of "Programming archive"

From OpenFOAM Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
* [https://wiki.openfoam.com/Programming_by_Kenneth_Hoste_and_Hrvoje_Jasak Hoste and Jasak video series] on programming.
 
* [https://wiki.openfoam.com/Programming_by_Kenneth_Hoste_and_Hrvoje_Jasak Hoste and Jasak video series] on programming.
 
* [https://wiki.openfoam.com/Tips_by_Gerhard_Holzinger Tips by Gerhard Holzinger] Source Code and Programming (Chapter IX).
 
* [https://wiki.openfoam.com/Tips_by_Gerhard_Holzinger Tips by Gerhard Holzinger] Source Code and Programming (Chapter IX).
 +
* [https://wiki.openfoam.com/Basic_programming_by_Hakan_Nilsson Nilsson's introduction] to programming in OpenFOAM.
  
 
'''C++'''
 
'''C++'''
 +
* [https://wiki.openfoam.com/Basics_of_C%2B%2B_by_Hakan_Nilsson Basics of C++] by Hakan Nilsson.
  
  
 
'''Intro: Compilation and Testing'''
 
'''Intro: Compilation and Testing'''
 +
* The [https://wiki.openfoam.com/Programming_by_Stefan_Radl screencast tutorials by Stefan Radl] provide details on compilation and basic testing of new code.
 
* [https://wiki.openfoam.com/Programming_by_Robert_Lee Lee's compact introduction] to compilation using existing code.
 
* [https://wiki.openfoam.com/Programming_by_Robert_Lee Lee's compact introduction] to compilation using existing code.
  
 
'''Implementation of Initial and Boundary Conditions'''
 
'''Implementation of Initial and Boundary Conditions'''
 
* This [https://wiki.openfoam.com/Programming_boundary_conditions_by_Gavin_Tabor tutorial by Gavin Tabor] covers the implementation of custom boundary conditions.  
 
* This [https://wiki.openfoam.com/Programming_boundary_conditions_by_Gavin_Tabor tutorial by Gavin Tabor] covers the implementation of custom boundary conditions.  
 +
* [https://wiki.openfoam.com/Programming1 Guerrero] describes how to implement and test BCs using codeStream.
 +
* [https://wiki.openfoam.com/Programming2 Guerrero] describes field initialization using codeStream.
 +
* [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.
 +
 +
'''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'''
 
* Gavin Tabor describes in [https://wiki.openfoam.com/Simulating_chocolate_by_Gavin_Tabor this tutorial] how to customize solver and implement a new constitutive model.
 
* Gavin Tabor describes in [https://wiki.openfoam.com/Simulating_chocolate_by_Gavin_Tabor this tutorial] how to customize solver and implement a new constitutive model.
 
* [https://wiki.openfoam.com/Thermodynamic_class_by_Isabelle_Choquet Isabelle Choquet and Håkan Nilsson] teaches how to implement new thermophysical model and additional transport equation.
 
* [https://wiki.openfoam.com/Thermodynamic_class_by_Isabelle_Choquet Isabelle Choquet and Håkan Nilsson] teaches how to implement new thermophysical model and additional transport equation.
 +
* [https://wiki.openfoam.com/Programming_by_Alexander_Vakhrushev Vakhrushev's slides] illustrate how to modify a solver.
 +
* [https://wiki.openfoam.com/Code_development_by_Tobias_Holzmann Code Development] describes now you can implement your own souce code in OpenFOAM.
  
 
'''Debugging'''
 
'''Debugging'''

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