Install OpenFOAM® in Box

OpenFOAM® in Box Description

Download OpenFOAM® in Box

OpenFOAM® in Box is independent on other software. This page describes just one of many ways of installing and using it. OpenFOAM® in Box can be located anywhere in your computer. For example if your name is "username" a typical local installation path may be e.g.: /home/username/OpenFOAM-in-Box. Other typical installation path may be /opt/OpenFOAM-in-Box/ or /usr/OpenFOAM-in-Box/. After downloaded OpenFOAM® in Box it is recommended following.

Copy and Install the package using bash:

  1. Copy the installation package in your installation path. You can do that either manually or use following linux commands:

  2.  >> mkdir  -p  /home/username/OpenFOAM/OpenFOAM-in-Box 

     >> cp   /home/username/OpenFOAM/OpenFOAM-in-Box/ 

  3. Install the package, e.g.:

  4.  >> cd   /home/username/OpenFOAM/OpenFOAM-in-Box/ 

     >> bash    -install 

Sourcing OpenFOAM environment variables (optional)

  1. When start working with OpenFOAM, with each new terminal window the OpenFOAM environment (system) variables need to be loaded:

     >> source  /home/username/OpenFOAM/OpenFOAM-in-Box/OpenFOAM-in-Box-XX.XX/OpenFOAM-dev/etc/bashrc
  2. Alternatively, you can do that automatically adding a new line in your /home/username/.bashrc file:

    source   /home/username/OpenFOAM/OpenFOAM-in-Box/OpenFOAM-in-Box-XX.XX/OpenFOAM-dev/etc/bashrc
  3. Or you can even create a new alias adding a new line in your /home/username/.bashrc file e.g.:

    alias ofInBox17.02='source   /home/username/OpenFOAM/OpenFOAM-in-Box/OpenFOAM-in-Box-XX.XX/OpenFOAM-dev/etc/bashrc

Install test & first case run (optional)

  1. new terminal
  2.   >> source   /home/username/OpenFOAM/OpenFOAM-in-Box/OpenFOAM-in-Box-XX.XX/OpenFOAM-dev/etc/bashrc
  3.   >> mkdir -p /home/username/OpenFOAM/username-dev-XX.XX-cfdsupport/run
  4.   >> cd /home/username/OpenFOAM/username-dev-XX.XX-cfdsupport/run
  5.   >> cp -r /home/username/OpenFOAM/OpenFOAM-in-Box/OpenFOAM-in-Box-XX.XX/OpenFOAM-dev/tutorials/incompressible/icoFoam/cavity ./
  6.   >> cd cavity/
  7.   >> blockMesh
  8.   >> icoFoam
  9.   >> paraFoam

Please contact us for further information.

Stay Informed about news in CFD and our company. We do not like Spam. You can unsubscribe anytime.

   Yes, I have read the Privacy & Cookie Policy
and agree to receive occasional email updates from CFD SUPPORT.


This offering is not approved or endorsed by OpenCFD Limited, producer and distributor of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.