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

Running a simulation in parallel hangs and never starts

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2022, 13:49
Default Running a simulation in parallel hangs and never starts
  #1
New Member
 
Benjamin Norris
Join Date: Oct 2020
Location: California
Posts: 17
Rep Power: 5
bknorris is on a distinguished road
Hi FOAM-ers,

I have a problem that I have not been able to solve through experimentation or google-searching... perhaps someone here has run into this same issue?

I have been automating some OpenFOAM runs using a Bash script, which essentially changes directories to a model, and then calls a secondary Bash script to set up the model files and run the model in parallel. I have included example scripts below. The "AutoModelRun" script calls "RunModel" located inside each model folder. (Note these scripts are saved as .txt to be uploaded here).

Sometimes, but not every time, the RunModel script will complete the decomposition step and will create the log file for my solver, the CPU load will increase, but the run will not begin and the solver will "hang" in place. I then have to cancel the AutoModelRun script (command+C in Bash), and reset the run. This issue has totally stumped me; I have tried reinstalling OpenFOAM and changing the Windows Firewall settings for MPI, interFoam, and so on.

I am using OpenFOAM v-1912 on Ubuntu 18.04 on Windows Subsystem for Linux 2 on a Desktop running Windows 10 Pro, OS Build 19043.1526.

Thank you for any and all insight!

Ben
Attached Files
File Type: txt AutoModelRun.txt (368 Bytes, 3 views)
File Type: txt RunModel.txt (874 Bytes, 2 views)

Last edited by bknorris; March 17, 2022 at 13:52. Reason: Minor edits for clarity.
bknorris is offline   Reply With Quote

Reply

Tags
hangs, mpi, parallel


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



All times are GMT -4. The time now is 18:28.