User Tools

Site Tools


howto:palabos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:palabos [2022/05/13 13:41]
ccrosby [Instructions]
howto:palabos [2022/05/13 14:59] (current)
ccrosby [Instructions]
Line 39: Line 39:
   - Source the OpenFOAM environment   - Source the OpenFOAM environment
   - Load the cmake module   - Load the cmake module
-  - Run cmake +  - Run ''cmake ../'' 
-  - Run make+  - Run ''make''
  
 === Compile script === === Compile script ===
Line 69: Line 69:
 To run the example you must change back one directory level to this directory: <code> /mnt/lustre/users/username/palabos/examples/showCases/aneurysm/ </code> To run the example you must change back one directory level to this directory: <code> /mnt/lustre/users/username/palabos/examples/showCases/aneurysm/ </code>
  
 +If you have not run this example before, first uncompress the geometry file:
 +<code> tar xzf aneurysm.tgz </code>
 If your OpenFOAM environment is still valid, you can run your aneurysm example on a single node with the following instruction: If your OpenFOAM environment is still valid, you can run your aneurysm example on a single node with the following instruction:
  
-<code>  mpirun -np 24 ./aneurysm param.xml -ssh -parallel </code>+<code>  mpirun -np 24 ./aneurysm param.xml  </code>
  
 To run the code as a PBS batch job over several nodes, you can use this script: To run the code as a PBS batch job over several nodes, you can use this script:
Line 78: Line 80:
 #!/bin/bash  #!/bin/bash 
 #PBS -P projectcode  #PBS -P projectcode 
-#PBS -l select=5:ncpus=24:mpiprocs=24+#PBS -l select=5:ncpus=24:mpiprocs=24
 #PBS -q normal  #PBS -q normal 
 #PBS -l walltime=4:00:00  #PBS -l walltime=4:00:00 
Line 97: Line 99:
 ###Run the code using MPI  ###Run the code using MPI 
 exe=aneurysm  exe=aneurysm 
-mpirun -iface ib0 -np $nproc $exe param.xml -pinfiniband -ssh -parallel > run.out+mpirun -iface ib0 -np $nproc $exe param.xml > run.out
 </file> </file>
 +
 +=== Post-processing ===
 +Palabos does not come with built-in post-processing tools.  However, it makes use of some [[https://imagemagick.org/index.php|ImageMagick]] utilities and can also produce output files in VTK format.  On Lengau there are two ImageMagick modules available:
 +<code>
 +chpc/compmech/ImageMagick/7.0.5
 +chpc/compmech/ImageMagick/image-magick-7.0.5-9-gcc-8.3.0-fvnxz3q
 +</code>
 +
 +Load one of these modules if you need ImageMagick.
 +
 +VTK files can be displayed with [[https://paraview.org/|Paraview]].  This Wiki has a dedicated page for [[howto:paraview|running Paraview]] on the cluster.
/app/dokuwiki/data/attic/howto/palabos.1652442093.txt.gz · Last modified: 2022/05/13 13:41 by ccrosby