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

Running OpenFOAM in parallel in WSL with Ubuntu bash

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

Like Tree1Likes
  • 1 Post By Gerry Kan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2018, 11:25
Default Running OpenFOAM in parallel in WSL with Ubuntu bash
  #1
New Member
 
Jose Rothkegel
Join Date: Mar 2015
Posts: 7
Rep Power: 11
FlyFox is on a distinguished road
Hello,
I have installed OpenFOAM in Ubuntu bash running on Windows WSL, as described here:
https://openfoam.org/download/windows-10/

When trying to run, for example, the damBreak4phaseFine, using the command

Code:
mpirun -report-uri - -np 4 multiphaseEulerFoam -case damBreak4phaseFine -parallel
I get the following errors:
Code:
2860974080.0;tcp://192.168.***.***:54623
[****:16106] [[43655,1],2] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[****:16105] [[43655,1],1] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[****:16107] [[43655,1],3] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[****:16104] [[43655,1],0] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[****:16105] [[43655,1],1] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
Does anyone know how to run this?

Thank you in advance

Note: I've edited out the IP address just in case.
FlyFox is offline   Reply With Quote

Old   March 16, 2018, 05:59
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
I have followed the same instructions for my local installation of OpenFoam and it runs just fine. But yours ain't a local installation, is it?
RobertHB is offline   Reply With Quote

Old   March 18, 2018, 03:43
Default
  #3
New Member
 
Jose Rothkegel
Join Date: Mar 2015
Posts: 7
Rep Power: 11
FlyFox is on a distinguished road
It is a local installation.
FlyFox is offline   Reply With Quote

Old   March 19, 2018, 03:03
Default
  #4
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17
Hisham is on a distinguished road
Can you post your system/decomposeParDict?
Hisham is offline   Reply With Quote

Old   December 17, 2018, 20:30
Default
  #5
New Member
 
Join Date: Dec 2018
Posts: 1
Rep Power: 0
NikitaY is on a distinguished road
Quote:
Originally Posted by FlyFox View Post
Hello,
I have installed OpenFOAM in Ubuntu bash running on Windows WSL, as described here:
https://openfoam.org/download/windows-10/

When trying to run, for example, the damBreak4phaseFine, using the command

Code:
mpirun -report-uri - -np 4 multiphaseEulerFoam -case damBreak4phaseFine -parallel
I get the following errors:
Code:
2860974080.0;tcp://192.168.***.***:54623
[****:16106] [[43655,1],2] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[****:16105] [[43655,1],1] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[****:16107] [[43655,1],3] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[****:16104] [[43655,1],0] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[****:16105] [[43655,1],1] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
Does anyone know how to run this?

Thank you in advance

Note: I've edited out the IP address just in case.
We are running into the same issue here - were you able to resolve this? Thank you.
NikitaY is offline   Reply With Quote

Old   March 17, 2020, 09:02
Default
  #6
Member
 
Join Date: Sep 2018
Location: France
Posts: 62
Rep Power: 7
john myce is on a distinguished road
Hi,

I am facing the same problem when I am running a case in parallel using Ubuntu bash on Windows 10 with 4 cores . Has anyone solved this issue ?

Cheers,

log.DecomposePar :
Quote:
Calculating distribution of cells
Selecting decompositionMethod scotch [4]

Finished decomposition in 0.01 s

Calculating original mesh data

Distributing cells to processors

Distributing faces to processors

Distributing points to processors

Constructing processor meshes

Processor 0
Number of cells = 750
Number of faces shared with processor 1 = 110
Number of faces shared with processor 2 = 100
Number of processor patches = 2
Number of processor faces = 210
Number of boundary faces = 300

Processor 1
Number of cells = 750
Number of faces shared with processor 0 = 110
Number of processor patches = 1
Number of processor faces = 110
Number of boundary faces = 400

Processor 2
Number of cells = 750
Number of faces shared with processor 0 = 100
Number of faces shared with processor 3 = 110
Number of processor patches = 2
Number of processor faces = 210
Number of boundary faces = 300

Processor 3
Number of cells = 750
Number of faces shared with processor 2 = 110
Number of processor patches = 1
Number of processor faces = 110
Number of boundary faces = 400

Number of processor faces = 320
Max number of cells = 750 (0% above average 750)
Max number of processor patches = 2 (33.33333% above average 1.5)
Max number of faces between processors = 210 (31.25% above average 160)

Time = 0

Processor 0: field transfer
Processor 1: field transfer
Processor 2: field transfer
Processor 3: field transfer

End
log.snappyHexMesh :
Quote:
[DESKTOP-9A32TVB:06380] [[57328,1],2] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[DESKTOP-9A32TVB:06379] [[57328,1],1] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[DESKTOP-9A32TVB:06378] [[57328,1],0] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
[DESKTOP-9A32TVB:06381] [[57328,1],3] tcp_peer_send_blocking: send() to socket 11 failed: Broken pipe (32)
john myce is offline   Reply With Quote

Old   March 17, 2020, 09:27
Default
  #7
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 353
Rep Power: 11
Gerry Kan is on a distinguished road
Folks:

I came across this thread on Stack Overflow while encountering a similar issue. Perhaps this could help?

Again the above thread is cygwin-specific, but I don't think Ubuntu shell be much different ...

Gerry.
john myce likes this.
Gerry Kan is offline   Reply With Quote

Old   March 17, 2020, 10:08
Default
  #8
Member
 
Join Date: Sep 2018
Location: France
Posts: 62
Rep Power: 7
john myce is on a distinguished road
Hi Gerry,

Thanks for your help, unfortunately mpirun is running the right IP adress.

I tried to find in my registry some possible wrong IP adresses but I found nothing.

Cheers,
john myce is offline   Reply With Quote

Reply

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
Errors when running parallel on OpenFOAM phuchuynh OpenFOAM Running, Solving & CFD 12 October 18, 2016 09:14
running multiple parallel cases in openfoam slows the simulation kkpal OpenFOAM Running, Solving & CFD 2 August 21, 2015 11:08
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 on Ubuntu 12.04 arieljeds OpenFOAM Installation 6 August 19, 2015 07:39
OpenFoam Running in parallel Salam-H OpenFOAM Pre-Processing 1 November 7, 2013 13:45
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52


All times are GMT -4. The time now is 23:36.