Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Compile functionObjects

Once you are in possess of the source files (.c and .h) of the objectFunction. A new directory must be added at $FOAM_SRC/functionObject/…/.

i.g. a Reynolds number custom functionObject files should be added in this plausible directory

  • $FOAM_SRC/functionObject/field/ReynoldsNo

Then compiler instruction must be added in this case in:

echo "ReynoldsNo/ReynodsNo.c" >>  $FOAM_SRC/functionObjects/field/Make/files

Then run from parent directory of the application you have changed (i.e. $FOAM_SRC/functionObject/field in this case) the command

wmake