How to add temperature to icoFoam

From OpenFOAMWiki
Revision as of 05:37, 22 February 2008 by Mike Jaworski (Talk | contribs)

1 How to add temperature transport to icoFoam

This HOWTO will cover rudimentary methods for altering an existing solver (icoFoam) to solve thermal transport. The main items to be accomplished are first, to copy and test that your installation of OpenFOAM can compile the existing solver correctly. Once that is accomplished, various small changes are necessary to the solver files themselves and these will be detailed below. Finally, new fields have to be added to the initial and boundary conditions and alterations to the fvSchemes file.

2 Copy and recompile icoFoam

This will go through the steps of creating a personal version of icoFoam in the user's subdirectory.


3 Adding the temperature field

This will show the steps to add another field variable to a solver. Also, add a new dimensioned constant.


4 Adding a new equation to solve

This will show the steps to adding a new equation.


5 Add a new file for initial and boundary conditions

This will show the steps to modifying the t=0 files.

6 What to add in fvSchemes

How to modify fvSchemes for your new solver.

7 Benchmarking your new solver

This may end up being a different page, but it will show a case study of the Blasius flat-plate flow problem.