ALIs
kommt nochOpenFOAM: The Open Source CFD Toolbox
OpenFOAM is a set of libraries and solvers for the solution of a wide range of problems in Fluid Dynamics and Continuum Mechanics from laminar simple regimes to DNS or LES including reactive turbulent flows. Many solvers have multiphysics features, where structural mechanics domains are coupled with CFD domains or new featrure available is a module for Molecular Dynamics (MD).
OpeanFOAM uses the finite volume method (FVM) on unstructured grids. Thus adapting easily to complex geometries and wide spectra of configurations.
Moreover, the package is automatically parallelized and it has a large set of useful utilities that allow importing and exporting meshes, configuration, etc. from and to Fluent, CFX, Paraview, Ensight, etc.
Starting and running OpenFOAM on SuperMUC
OpenFOAM (2.1 and 2.0)
To access Openfoam just load the module
% module add openfoam
This sets all the environment variables for compiling, linking or running the standard solvers. If called for first time, it will also create suitable folders in your account with examples and templates.
So you are ready to start. You might run:
% foamInstallationTest
to see whether the configuration is all right and getting more information. For stop using OpenFOAM, simply:
% module unload openfoam
Please visit the module page for more information about modules.
For running OpenFOAM, just submit a script for the IBM loadleveler:
|
OpenFOAM-2.0 : batch Job example for IBM Loadleveller |
|---|
|
#!/bin/bash #@ wall_clock_limit = 1:00:00 #@ job_name = [mytest] #@ job_type = parallel #@ class = general #@ network.MPI = sn_all,not_shared,us #@ node = 1 #@ tasks_per_node = 40 #@ initialdir = [My/Initial/dirrectory/../edit/this/line/accordingly] #@ output = [/directory/file_ourput.out] #@ error = [/directory/file_error.err] #@ queue . /etc/profile . /etc/profile.d/modules.sh
anyFoamSOLVER -case [dir_case] -parallel |
NOTES:
- There are 40 cores for each node, and you will be charged for each node you request. Therefore, it is advisable that the total number of tasks you specifiy is a multiple of 40.
- However, you can still specify something like "tasks_per_node = 32" and "node=2" to request 64 MPI tasks.
- Alternatively, you can use "total_tasks=137" and "node=3"; where total_tasks is less or equal than "node x 40". Keep in mind that tasks_per_node and total_tasks keywords can not be used together.
Starting and running OpenFOAM on Linux Cluster MPP
OpenFOAM (2.0)
To access this system use the front end system
% ssh [user]@lx64ia2.lrz.de
% ssh lxia4-1 (or lxia4-2)
% module add openfoam
The MPP cluster uses the SLURM job scheduler, to send a job script to SLURM you have to login into this system first.
|
OpenFOAM-2.0 : batch Job example for MPP |
|---|
|
#!/bin/bash #SBATCH -o [/directory/file_ourput.out] #SBATCH -D [/my/initial/directory/] #SBATCH -J [job_name] #SBATCH --partition mpp1_batch #SBATCH --ntasks=64 #SBATCH --mail-type=end #SBATCH --mail-user=[email_address]@[domain] #SBATCH --export=NONE #SBATCH --time=08:00:00 source /etc/profile srun_ps anyFoamSOLVER -case [dir_case] -parallel |
Documentation
Once the module is added you will find the user's and programmer's guide in :
$HOME/OpenFOAM/[username]-[OF version]/doc
A good starting point is copying the content of the tutorials folder ($FOAM_TUTORIALS) in your local OpenFOAM folder ($WM_PROJECT_USER_DIR)
% cp -r $FOAM_TUTORIALS $WM_PROJECT_USER_DIR
Getting more Information
For detailed information about latest changes, new tutorials, new features, etc. refers to the OpenFOAM home Page or the OpenCFD site
Also, for getting out of troubles visit the OpenFOAM forum
Old Versions
Old versions of OpenFOAM will not be installed on the new systems. You must port to version 2.1 or 2.0.
