You are on page 1of 3

1) How to Modify a solver

Example PisoFoam :

Copy the desired solver :

Solver modification :

Add 2 includes

Add 2 command line


Use the VolVectorField forceIB and div_kernel_force in your solver equation to
take in account the Immersed boundaries.

Make file modification (to load the IBM library) :

modify the option file to load the libraries needed (2 lines needed)
Modify the file to compile your new solver (here pisoFoam → IBM_pisoFoam)

The new Solver folder is now ready to compile with the command wmake :

You might also like