OpenFOAM (Open-source Field Operation And Manipulation) is well-known software in computational fluid mechanics (CFD). It contains several standard solvers for simulating a broad range of continuum flows. Using the OpenFOAM toolbox, users can build their own solver to solve specific problems. OpenFOAM is open-source software under the GNU General Public License Version 3.
Official website: https://www.openfoam.com/ and https://openfoam.org/
Updated: July 2023Sep 2024
...
Table of Contents | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Modules
Module name | Description | Note |
---|---|---|
OpenFOAM/v2212-cpeCray-23.03 | MPI only, more tools | |
OpenFOAM/10-cpeCray-23.03 | MPI only, slightly faster |
Info |
---|
In addition to OpenFOAM,
are also available on LANTA. |
1. Case directory
A case directory is needed to run OpenFOAM. For new users, visit https://www.openfoam.com/documentation/tutorial-guide or https://doc.cfd.direct/openfoam/user-guide-v10/index.
...
Below is an example of OpenFOAM submission script (submitFoam.sh
) using $WM_PROJECT_DIR/bin/tools/RunFunctions
. It can be created using vi submitFoam.sh
.
...
Another example of OpenFOAM submission script (submitFoam.sh
) is shown below.
Note |
---|
|
...
Info |
---|
The main log will be recorded in ‘slurm-xxxxxx.out’. |
4. Additional note
Note |
---|
(As of July 2023) Due to some issues that degrade HPE Slingshot interconnect performance, we advise users to not request whole full node when running a large case across two or more nodes. In other words, we recommend using ntasks-per-node < 128 when nodes >2. For instance, |
note
...
(As of June 2023)
...
Out of memory
If users encounterslurmstepd: error: Detected ... oom-kill event(s) ... killed by the cgroup out-of-memory handler
in any log file, try increasing RAM per CPU core by adding#SBATCH --mem-per-cpu=3800M
– while having ntasks-per-node <= 64 or#SBATCH --mem-per-cpu=7600M
– while having ntasks-per-node <= 32
to your
submitFoam.sh
.Floating-point exception trapping
By default, the floating-point exception trapping is disabled. To enable, addexport FOAM_SIGFPE=true
to your script.Building custom executable
Please useFOAM_USER_APPBIN
in place ofFOAM_APPBIN
andFOAM_SITE_APPBIN
FOAM_USER_LIBBIN
in place ofFOAM_LIBBIN
andFOAM_SITE_LIBBIN
to avoid permission denied.
[v2212] To manually specify those paths, see $WM_PROJECT_DIR/bin/tools/change-userdir.sh
5. Post-processing
PareView is recommended for visualizing software outputs directly on LANTA (see ParaView-on-LANTA). The following are our notes when opening an OpenFOAM case.
For ParaView to read an OpenFOAM case directory, an empty file (
.foam
) representing the directory is required to be presented inside.Please pay attention when selecting
Labal Size
andScalar Size
. If your case was run on LANTA, then theLabel Size
is 32 bits while theScalar Size
is 64 bits. If inconsistent numbers were chosen, you could get a black layout screen.When opening a large case, especially a deconstructed case, it is common that a “Not responding“ message window would appear. Before clicking any button, please monitor the progress bar at the bottom for a while, if it increases little by little, then let the warnings be.
...
Contact Us
ThaiSC support service : thaisc-support@nstda.or.th