OpenFOAM
Description
OpenFOAM® (Open Field Operation and Manipulation) CFD Toolbox can simulate anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics, electromagnetics and the pricing of financial options.
License
Usage
Upcoming modulesystem change alert!
Due to large number of applications and their versions it is not practical to keep them explicitly listed at our wiki pages. Therefore an upgrade of modulefiles is underway. A feature of this upgrade will be the existence of default module for every application. This default choice does not need version number and it will load some (usually latest) version.
You can test the new version now by adding a line
source /cvmfs/software.metacentrum.cz/modulefiles/5.1.0/loadmodules
to your script before loading a module. Then, you can list all versions of openfoam and load default version of openfoam as
module avail openfoam/ # list available modules module load openfoam # load (default) module
If you wish to keep up to the current system, it is still possible. Simply list all modules by
module avail openfoam
and choose explicit version you want to use.
Since version 8, OpenFoam is alternatively available as Singularity image placed in the path /cvmfs/singularity.metacentrum.cz/OpenFOAM/
. Users should check tutorial how to use Singularity images on MetaCentrum nodes.
openfoam-8.0 #module version, is necessary to source two files - source /software/openfoam/8.0/OpenFOAM-8/etc/bashrc; source /software/openfoam/8.0/OpenFOAM-dev/etc/bashrc openfoam/openfoam-2006-intel-19.0.4-eoo23my #Debian10 version openfoam-6.0 # specify os=debian9 in qsub openfoam-5.0 – MPI and MKL support
Load module
module add openfoam/openfoam-2006-intel-19.0.4-eoo23my
If you want to use the job monitoring, you must set the variable FOAM_JOB_DIR so that it points to your directory, which must contain two subdirectories named "runningJobs" and "finishedJobs". OpenFOAM uses these directories to store the data about jobs. You can get this information about your job via "foamCheckJobs" or "foamPrintJobs" command.
Notice: This application supports parallel computing (MPI, OpenMP) which can have weird consequences. For more details about parallel computing visit the page Parallelization.