-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from carlos-encs/openFoam
Openfoam example
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/encs/bin/tcsh | ||
#SBATCH --job-name=OpenFOAM-test | ||
#SBATCH --nodes=4 | ||
#SBATCH --ntasks=10 | ||
#SBATCH --time=00:10:00 | ||
|
||
module load OpenFOAM/v2306/default | ||
setenv PATH /encs/pkg/openmpi-4.1.6/root/bin\:$PATH | ||
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH\:/encs/pkg/openmpi-4.1.6/root/lib64 | ||
setenv CORES $SLURM_NTASKS | ||
setenv OMP_NUM_THREADS $CORES | ||
|
||
blockMesh | ||
mpirun -np $CORES redistributePar -decompose -overwrite -parallel | ||
mpirun -np $CORES icoFoam -parallel | ||
mpirun -np $CORES redistributePar -reconstruct -overwrite -parallel |