|
[Sponsors] |
Launching multiple CFD simulations in parallel on cluster |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
John Thornton
Join Date: Mar 2016
Posts: 1
Rep Power: 0 ![]() |
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? |
|
![]() |
![]() |
![]() |
Tags |
cluster computing, mpi, parallel code |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 06:09 |
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 |