diff --git a/docs.it4i/lumi/openfoam.md b/docs.it4i/lumi/openfoam.md new file mode 100644 index 0000000000000000000000000000000000000000..f7576bca49337ef71aebc49582145f240a718576 --- /dev/null +++ b/docs.it4i/lumi/openfoam.md @@ -0,0 +1,80 @@ +# OpenFoam + +OpenFOAM is a free, open source CFD software package. +OpenFOAM has an extensive range of features to solve anything +from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electromagnetics. + +## Install 32bit/64bit + +!!! warning + + There is a very small quota for maximum number of files on LUMI: + projappl (100K), scratch (2.0M), flash (1.0M) - check: `lumi-quota`. + +``` +#!/bin/bash + +SCRATCH="/pfs/lustre..." + +cd $SCRATCH +mkdir -p openfoam +cd openfoam + +export EBU_USER_PREFIX=$PWD/easybuild/lumi-c-23.09 +module load LUMI/23.09 partition/container EasyBuild-user + +#32bit - use eb file from this repository +#eb OpenFOAM-v2312-cpeGNU-23.09.eb -r + +#64bit - use eb file from this repository +eb eb/OpenFOAM-v2312-64bit-cpeGNU-23.09.eb -r +``` + +## Run 32bit/64bit + +``` +#!/bin/bash + +SCRATCH="/pfs/lustre..." + +cd $SCRATCH/openfoam + +export EBU_USER_PREFIX=$PWD/easybuild/lumi-c-23.09 +module load LUMI/23.09 partition/container EasyBuild-user +ml OpenFOAM/v2312-cpeGNU-23.09-64bit + +#32bit +#source $EBROOTOPENFOAM/etc/bashrc WM_COMPILER=Cray WM_MPLIB=CRAY-MPICH + +#64bit +source $EBROOTOPENFOAM/etc/bashrc WM_COMPILER=Cray WM_MPLIB=CRAY-MPICH WM_LABEL_SIZE=64 + +OPENFOAM_PROJECT="/pfs/lustre..." +cd $OPENFOAM_PROJECT + +srun -n 1 blockMesh +srun -n 1 decomposePar + +srun -n $SLURM_NTASKS snappyHexMesh -overwrite -parallel | tee log.snappy +srun -n $SLURM_NTASKS createPatch -overwrite -parallel | tee log.createPatch +srun -n $SLURM_NTASKS transformPoints -scale '(0.01 0.01 0.01)' -parallel | tee log.transformPoint +srun -n $SLURM_NTASKS renumberMesh -overwrite -parallel | tee log.renum +srun -n $SLURM_NTASKS pimpleFoam -parallel | tee log.pimpleFoam1 +``` + +## License + +OpenFOAM is the free, open source CFD software developed primarily by OpenCFD Ltd since 2004. +OpenCFD Ltd, owner of the OpenFOAM Trademark, is a wholly owned subsidiary of ESI Group. + +ESI-OpenCFD produces the OpenFOAMĀ® open source CFD toolbox and distributes freely +via [https://www.openfoam.com/][a]. OpenCFD Ltd was established in 2004 to coincide with +the release of its OpenFOAM software under general public license. + +OpenFOAM is distributed under the GPL v3 license. + +## References + +- Homepage: [http://www.openfoam.com/][a] + +[a]: https://www.openfoam.com/ diff --git a/mkdocs.yml b/mkdocs.yml index 9ed42908f3b81b34a856cc4630c1699418f64ec9..a7b0ae5590acaff15ec7d4dc03caebc9df36cf93 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -304,6 +304,7 @@ nav: - About LUMI: lumi/about.md - LUMI Software: - General: lumi/software.md + - OpenFoam: lumi/openfoam.md - PyTorch: lumi/pytorch.md - LUMI Support: lumi/support.md - Clouds: