This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:openfoam [2026/02/24 13:00] ccrosby [Latest version: OpenFOAM-v2512] |
howto:openfoam [2026/02/24 13:03] (current) ccrosby [Latest version: OpenFOAM-v2512] |
||
|---|---|---|---|
| Line 33: | Line 33: | ||
| nproc=`cat $PBS_NODEFILE | wc -l ` | nproc=`cat $PBS_NODEFILE | wc -l ` | ||
| #### These next statements build an appropriate decomposeParDict file | #### These next statements build an appropriate decomposeParDict file | ||
| - | #### based on the requested nunber of nodes | + | #### based on the requested nunber of processors |
| echo " | echo " | ||
| echo " | echo " | ||
| Line 44: | Line 44: | ||
| echo " | echo " | ||
| #### End of decomposeParDict file | #### End of decomposeParDict file | ||
| + | # Decompose the case into processor directories | ||
| decomposePar -force > decompose.out | decomposePar -force > decompose.out | ||
| - | mpirun -np $nproc simpleFoam -parallel > oneapi.out | + | # Run the solver, simpleFoam in this case |
| + | mpirun -np $nproc simpleFoam -parallel > simpleFoam.out | ||
| + | # Reconstruct the time directories from the processor directories | ||
| + | reconstructPar > reconstruct.out | ||
| + | # Clean up the processor directories | ||
| rm -r processor* | rm -r processor* | ||
| </ | </ | ||