CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Launching multiple CFD simulations in parallel on cluster

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2019, 20:53
Default Launching multiple CFD simulations in parallel on cluster
  #1
New Member
 
John Thornton
Join Date: Mar 2016
Posts: 1
Rep Power: 0
jthornton232 is on a distinguished road
Hello,


I have created a utility for OpenFOAM V4 which allows me to run multiple serial simulations in parallel using MPI. I have this working on my workstation but I want to run it on a cluster at work. However when I submit the job to the cluster I get messages saying "ctrl_connect/connect: Connection refused". I seem to get this problem only when I run OpenFOAM executables (I have run other simple programs in parallel without issue).


The program is below:


#include "fvCFD.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
argList::validArgs.append("folderName");
argList::validArgs.append("runFileName");
argList args(argc, argv);

if (!args.check()) {
FatalError.exit();
}
word folderName = args[1]; // folder name from user
int rank = Pstream::myProcNo(); // processor rank
word folder = folderName+name(rank+1); // folder name with the rank
if (!isDir(folder)){ // check if folder exists
FatalErrorInFunction << folder << " does not exist." << exit(FatalError);
}
word fileName = args[2]; // file name from user
if (!isFile(folder+"/"+fileName)){ // check if file exists
FatalErrorInFunction << folder << "/" << fileName << " does not exist." << exit(FatalError);
}
system(folder+"/"+fileName); // run the given folder
return 0;
}



And here is the output when run:

// ************************************************** *********************** //



/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.x-d214c8dfd5ba
Exec : multiFolderRun -parallel MISP Allrun
Date : Aug 14 2019
Time : 17:22:39
Host : "r585i1n9"
PID : 34800
Case : /nobackupp12/jmthorn4/PATO_Cases/TC1-driver/ALLMISPS/test
nProcs : 7
Slaves :
6
(
"r585i1n9.34801"
"r585i1n9.34802"
"r585i1n9.34803"
"r585i1n9.34804"
"r585i1n9.34805"
"r585i1n9.34806"
)

Pstream initialized with:
floatTransfer : 0
nProcsSimpleSum : 0
commsType : nonBlocking
polling iterations : 0
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
ctrl_connect/connect: Connection refused
Finalising parallel run



Can anyone shed some light on the issue?
jthornton232 is offline   Reply With Quote

Reply

Tags
cluster computing, mpi, parallel code

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 14 November 26, 2018 11:26
Fluent parallel computation using Xeon duo-processor with CFD occupation below 50% zhujj09 FLUENT 1 October 19, 2016 15:02
problem about running parallel on cluster killsecond OpenFOAM Running, Solving & CFD 3 July 23, 2014 21:13
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
Parallel cluster solving with OpenFoam? P2P Cluster? hornig OpenFOAM Programming & Development 8 December 5, 2010 16:06


All times are GMT -4. The time now is 16:29.