Running snappyHexMesh in parallel creates new time directories
I want to run snappyHexMesh in parallel and then pimpleFoam in parallel also. I'm using the following script for mesh preparation:
Code:
blockMesh > log.blockMesh Code:
decomposePar > log.decomposePar.2 Thanks. |
Try using "mpirun -np $nProc snappyHexMesh -latestTime -parallel -overwrite> log.snappyHexMesh", I use the "-overwrite" option and I don't get new time directories.
What I use to run my cases is a Allrun file: Code:
#!/bin/sh |
Hi Luis,
I do not have runParallel and runApplication commands, I guess they come with another application you have. Also, qsub and pbs scripts does not accept them I guess. Is there a way to do it with mpirun? |
Hi,
These commands will be available when you execute the line ". $WM_PROJECT_DIR/bin/tools/RunFunctions", but you can probably use the mpi as well (I never used it, so I can't give you more information about it, sorry!) When I run "runApplication blockMesh" I get the same result as your "blockMesh > log.blockMesh" command, so probably you can keep it. I guess you could replace "runParallel" by "mpirun -np $nProc". For example, runParallel topoSet may have the same result as mpirun -np $nProc topoSet > log.topoSet Also, I don't need to reconstruct my case before running the solver, because topoSet can be run in parallel. It seems to be the same case as yours, you just reconstruct it to run topoSet, and after decompose it again, correct? Best Regards, Luis |
Hi,
Thanks to you, sourcing that file allowed me to use runApplication and runParallel commands in pbs script job submissions! My idea was to successfully generate the mesh in parallel first error free, then continue on solving without intermediate reconstruction steps. I'm still not sure how to do it with mpirun commands, but runParallel function has taken care of everything smoothly! I'll post the final script when I get on my pc. |
Can you post your script?
do you mind posting your script?
|
All times are GMT -4. The time now is 14:46. |