Difference between revisions of "BGQ OpenFOAM"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
cd $SCRATCH/ | cd $SCRATCH/ | ||
− | # Launch BGQ jobs using runjob | + | # Launch BGQ jobs using runjob (simple example setup to be decomposed to run on 16 cores) |
# | # | ||
runjob --np 1 --ranks-per-node=1 --env-all : $FOAM_APPBIN/blockMesh | runjob --np 1 --ranks-per-node=1 --env-all : $FOAM_APPBIN/blockMesh |
Revision as of 20:50, 22 September 2013
Sample script for running OpenFOAM on BGQ
#!/bin/sh # @ job_name = bgqopenfoam # @ job_type = bluegene # @ comment = "BGQ Job By Size" # @ error = $(job_name).$(Host).$(jobid).err # @ output = $(job_name).$(Host).$(jobid).out # @ bg_size = 64 # @ wall_clock_limit = 30:00 # @ bg_connectivity = Torus # @ queue # Load OpenFOAM modules module load binutils/2.23 bgqgcc/4.8.1 mpich2/gcc-4.8.1 OpenFOAM # Setup OpenFOAM environment source $FOAM_DOT_FILE # Run from scratch space cd $SCRATCH/ # Launch BGQ jobs using runjob (simple example setup to be decomposed to run on 16 cores) # runjob --np 1 --ranks-per-node=1 --env-all : $FOAM_APPBIN/blockMesh runjob --np 1 --ranks-per-node=1 --env-all : $FOAM_APPBIN/decomposePar -force runjob --np 16 --ranks-per-node=16 --env-all : $FOAM_APPBIN/icoFoam -parallel runjob --np 1 --ranks-per-node=1 --env-all : $FOAM_APPBIN/reconstructPar
Post-Processing
https://support.scinet.utoronto.ca/wiki/index.php/Using_Paraview