|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Pere
Join Date: Mar 2022
Location: Mallorca
Posts: 16
Rep Power: 5 ![]() |
Dear foamers,
I am currently struggling to run a parallel simulation (with OpenFOAM v2012) on a cluster (Cent OS 7.9.2009). I rely on the openmpi versions already installed on the cluster. Until now, I ran the simulations using a version called ‘mpi/openmpi-x86_64’. However, only ‘mpi/openmpi-4.1.2’ is allowed for multi-node simulations (which is something I need for nProcessors > 48). When I changed to this other version, the simulation produced an empty log file (and I had to stop the job manually). In the bashrc file, I have Code:
WM_MPLIB=SYSTEMOPENMPI Code:
module load mpi/openmpi-4.1.2
source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc
export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)
cd $PBS_O_WORKDIR
# Host name
cat $PBS_NODEFILE
(
for host in `cat $PBS_NODEFILE | sort -u -V`
do
count=`grep $host $PBS_NODEFILE | wc -l`
echo $host cpu=$count
done
) > host_file
cat host_file
######## Start the solver ###############
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set solver name
solver="mpirun -np $PBS_NP --hostfile host_file pimpleFoam -parallel"
# Run the solver
runApplication $solver
mv log.mpirun log.pimpleFoam
|
|
|
|
|
|
![]() |
| Tags |
| mpi, parallel, pbs, version |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 4 | December 16, 2025 09:40 |
| Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
| different results form openfoam 3.0.1 to 1912 | yuno | OpenFOAM Running, Solving & CFD | 0 | September 28, 2020 04:09 |
| OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 07:15 |
| Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |