User Tools

Site Tools


howto:mfix

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
howto:mfix [2020/10/07 16:39]
ccrosby [Setting up and submitting a job]
howto:mfix [2020/10/07 16:42] (current)
ccrosby
Line 67: Line 67:
  
 ====  MFix-20.3.0 ==== ====  MFix-20.3.0 ====
-Please be advised that there is now also a version 20.3.0 in ''/​apps/​chpc/​compmech/​CFD/​MFIX/​20.3.0''​. ​ There is a source script in that directory, setMFix, which will load the correct gcc and MPI modules and append the $PATH to make the executable ''​mfixsolver''​ available. ​ This binary supports both thread-level (OpenMP) and distributed memory (MPI) parallel. ​ It uses mpich, and it is necessary to use the ''​-iface ib0''​ option to ensure the use of the Infiniband network.+Please be advised that there is now also a version 20.3.0 in ''/​apps/​chpc/​compmech/​CFD/​MFIX/​20.3.0''​. ​ There is a source script in that directory, setMFix, which will load the correct gcc and MPI modules and append the $PATH to make the executable ''​mfixsolver''​ available. ​ This binary supports both thread-level (OpenMP) and distributed memory (MPI) parallel. ​ It uses mpich, and it is necessary to use the ''​-iface ib0''​ option to ensure the use of the Infiniband network. ​ A machinefile should not be used.  The following job script should work, but has not been tested: 
 + 
 +<file bash mfix.qsub>​ 
 +  #!/bin/sh 
 +  #PBS -P projectid 
 +  #PBS -l select=3:​ncpus=24:​mpiprocs=24:​mem=12GB:​nodetype=haswell_reg  
 +  #PBS -q normal 
 +  #PBS -l walltime=01:​00:​00 
 +  #PBS -o /​home/​username/​lustre/​job01/​stdout 
 +  #PBS -e /​home/​username/​lustre/​job01/​stderr 
 +  #PBS -m abe 
 +  #PBS -M username@email.co.za 
 +  . /​apps/​chpc/​compmech/​CFD/​MFIX/​20.3.0/​setMFix 
 +  cd ${PBS_O_WORKDIR} 
 +  exe="​mfixsolver.exe"​ 
 +  nproc=`cat $PBS_NODEFILE | wc -l` 
 +  mpirun -iface ib0 -np $nproc $exe -parallel >"​coarse.log"​ 2>&​1 
 +</​file> ​  
 ===== Postprocessing ===== ===== Postprocessing =====
 Mfix outputs a .RES file in the case directory, in addition to optional VTK files representing the solution. Both types of files may be opened using Paraview or a similar VTK viewer. Mfix outputs a .RES file in the case directory, in addition to optional VTK files representing the solution. Both types of files may be opened using Paraview or a similar VTK viewer.
/var/www/wiki/data/pages/howto/mfix.txt · Last modified: 2020/10/07 16:42 by ccrosby