Follow SedFOAM on Twitter SedFOAM on github

First go to the official SedFoam page to get the latest distribution, if you have not downloaded SedFoam already.

Compiling from source with OpenFOAM-5.0

You need at least OpenFOAM-5.0 (or OpenFOAM-v1806) to build the executable:

To take full advantage of SedFoam the following additional tools should be installed.

  • swak4Foam extension combines many fonctionalities and is needed for the tutorials
  • the python package fluidfoam is needed for postprocessing of the tutorials.

Compilation is now done by performing the following steps:

  1. Download the official SedFoam package:

    git clone

  2. Compile the program by running Allwmake:

    cd sedfoam
    source $FOAM_ETC/bashrc # load the openfoam environment

    The program should compile without problems and the binary sedFoam_rbgh and associated libraries should be available in the $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN directories.

  3. Optional: Generate the user manual.

    cd doc
    make html

    To let doxygen generate the HTML documentation.

    The HTML directory within the build directory will now contain the html documentation (just point a HTML browser to the file index.html in the html directory).

Compiling from source with FOAM-extend release 4.0

First we need to add a tailored fixedFluxPressureFvPatchScalarField class : myfixedFluxPressureFvPatchScalarField. The source files are available in foam_ext_add directory.

Finally some modifications of the sources are necessary :

  • '''constant::mathematical::pi''' must be replace by '''mathematicalConstant::pi''' in all source directories:

    find solver -type f -print0 | xargs -0 sed -i 's/constant::mathematical::pi/mathematicalConstant::pi/g'
    find turbulenceModels -type f -print0 | xargs -0 sed -i 's/constant::mathematical::pi/mathematicalConstant::pi/g'

  • In solver/sedFoam.C : readTimeControls.H must be replace by createTimeControls.H
  • In solver/sedFoam.C : rasModelb->kMin() and rasModelb->omegaMin() must be replace by rasModelb->k0() and rasModelb->omega0()
  • In solver/sedFoam.C : uncomment foam_ext part (around fixedFluxPressureFvPatchScalarField call) and update Make/options file of solver directory (add myfiniteVolume include directory)
  • In solver/pEqn.H : the ddtCorr calls must be replace by ddtphiCorr as suggested in the file pEqn.H

Next compile the program by running make:

    cd SedFoam-master
    source $FOAM_ETC/bashrc # load the openfoam environment
The cyclic boundary condition is similar but not identical in foam-extend. So tutorials must be modified for foam-extend support.

Go to the next section or return to the index.