Can’t parallel the solver
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
-
- Posts: 5
- Joined: Tue Dec 11, 2018 2:51 pm
Can’t parallel the solver
Hi, CfdOF / CFD members!
I want to run simulations on several cores. So, i write in Solver:
Parallel = true
Parallel cores = 4.
Then i press “Write OpenFOAM case”. When it completes, i press “Run Solver”. After about 30 seconds, it exits with an error:
ERROR: Failed to post close command error 1726
ERROR: unable to tear down the job tree. exiting...
— there are the same two lines in log.simpleFoam only.
Status window:
0.0: Checking dependencies...
0.0: OpenFOAM case writer is called
3.8: Write OpenFOAM case is completed
0.2: Starting solver command:
0.2: C:\BLUECF~1\OPENFO~1.X\..\msys64\usr\bin\bash --login -O expand_aliases -c cd "/c/tselli/FreeCAD CFDOF/Cube/case" && ./Allrun
0.3: Solver started
36.3: Simulation exited with error
Report window:
ERROR: Failed to post close command error 1726
ERROR: unable to tear down the job tree. exiting...
Last lines in Python window:
>>> FreeCAD.getDocument("Cube").getObject("OpenFOAM").Parallel = True
>>> FreeCAD.getDocument("Cube").getObject("OpenFOAM").ParallelCores = 4
If i don’t run parallel, it works ok. So, what should i do to run the parallel solver?
P. S. Before FreeCAD/BlueCFD/CfdOF i made parallel simulations in STAR CCM+: 4 cores worked great.
___
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: Russian/RussianFederation (ru_RU)
I want to run simulations on several cores. So, i write in Solver:
Parallel = true
Parallel cores = 4.
Then i press “Write OpenFOAM case”. When it completes, i press “Run Solver”. After about 30 seconds, it exits with an error:
ERROR: Failed to post close command error 1726
ERROR: unable to tear down the job tree. exiting...
— there are the same two lines in log.simpleFoam only.
Status window:
0.0: Checking dependencies...
0.0: OpenFOAM case writer is called
3.8: Write OpenFOAM case is completed
0.2: Starting solver command:
0.2: C:\BLUECF~1\OPENFO~1.X\..\msys64\usr\bin\bash --login -O expand_aliases -c cd "/c/tselli/FreeCAD CFDOF/Cube/case" && ./Allrun
0.3: Solver started
36.3: Simulation exited with error
Report window:
ERROR: Failed to post close command error 1726
ERROR: unable to tear down the job tree. exiting...
Last lines in Python window:
>>> FreeCAD.getDocument("Cube").getObject("OpenFOAM").Parallel = True
>>> FreeCAD.getDocument("Cube").getObject("OpenFOAM").ParallelCores = 4
If i don’t run parallel, it works ok. So, what should i do to run the parallel solver?
P. S. Before FreeCAD/BlueCFD/CfdOF i made parallel simulations in STAR CCM+: 4 cores worked great.
___
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: Russian/RussianFederation (ru_RU)
Last edited by Maxim Gryaznov on Sat Dec 15, 2018 3:37 pm, edited 2 times in total.
Maxim Gryaznov
-
- Veteran
- Posts: 3129
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Can’t parallel the solver
Hi Maxim,
welcome to the FreeCAD-forum.
Can you post your FreeCAD-file?
It is easier to have a concrete problem than to guess a solution.
Thomas
welcome to the FreeCAD-forum.
Can you post your FreeCAD-file?
It is easier to have a concrete problem than to guess a solution.
Thomas
-
- Posts: 5
- Joined: Tue Dec 11, 2018 2:51 pm
Re: Can’t parallel the solver
Thanks for your quick response, Thomas!thschrader wrote: ↑Tue Dec 11, 2018 5:14 pm Can you post your FreeCAD-file?
It is easier to have a concrete problem than to guess a solution.
Thomas
There is a working directory with FCStd files and cases. Hope, it’s enough:
https://drive.google.com/file/d/1OYLtXi ... sp=sharing
Maxim Gryaznov
-
- Veteran
- Posts: 3129
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Can’t parallel the solver
Hi Maxim,
I have no problem to run your file. But I get strange results.
When running a laminar case, it "works".
Thomas
I have no problem to run your file. But I get strange results.
When running a laminar case, it "works".
Thomas
-
- Posts: 5
- Joined: Tue Dec 11, 2018 2:51 pm
Re: Can’t parallel the solver
Thank you Thomas!
Did you make any setups on your computer before running parallel calculations? Maybe i should make something to allow OpenFOAM to make parallel runs?
It’s strange: i got the second picture with the turbulent case.thschrader wrote: ↑Wed Dec 12, 2018 11:31 am But I get strange results.
When running a laminar case, it "works".
Thomas
Did you make any setups on your computer before running parallel calculations? Maybe i should make something to allow OpenFOAM to make parallel runs?
Maxim Gryaznov
- oliveroxtoby
- Posts: 810
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Can’t parallel the solver
My guess would be that there is a problem with your installation of MPI. Try re-installing blueCFD-Core, and make sure to install the MSMPI library (it is installed by default).Maxim Gryaznov wrote: ↑Wed Dec 12, 2018 12:01 pm Did you make any setups on your computer before running parallel calculations? Maybe i should make something to allow OpenFOAM to make parallel runs?
If that doesn't work please take a look at https://forum.freecadweb.org/viewtopic.php?f=37&t=27055 and follow the instrucitons - there may be some output that would give a clue.
Please provide all the information requested in this post before reporting problems with CfdOF.
-
- Posts: 5
- Joined: Tue Dec 11, 2018 2:51 pm
Re: Can’t parallel the solver
Oliveroxtoby!oliveroxtoby wrote: ↑Wed Dec 12, 2018 1:00 pm My guess would be that there is a problem with your installation of MPI. Try re-installing blueCFD-Core, and make sure to install the MSMPI library (it is installed by default).
If that doesn't work please take a look at https://forum.freecadweb.org/viewtopic.php?f=37&t=27055 and follow the instrucitons - there may be some output that would give a clue.
Sorry for the late reply. I reinstalled blueCFD-Core and MPI: now i have 7.1.12437.25 version. It was in an installation tutorial (http://bluecfd.github.io/Core/UserGuide/). Unfortunately, i have the same error.
Maxim Gryaznov
- oliveroxtoby
- Posts: 810
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Can’t parallel the solver
Apologies - I didn't notice that you had attached a screenshot the first time.Maxim Gryaznov wrote: ↑Sat Dec 15, 2018 3:37 pmoliveroxtoby wrote: ↑Wed Dec 12, 2018 1:00 pm If that doesn't work please take a look at https://forum.freecadweb.org/viewtopic.php?f=37&t=27055 and follow the instrucitons - there may be some output that would give a clue.
Some googling suggests this is some sort of an issue with MS MPI. I can only suggest you try installing the latest one in place of the version that came with blue CFD - https://docs.microsoft.com/en-us/messag ... rosoft-mpi.
Good luck!
Please provide all the information requested in this post before reporting problems with CfdOF.
-
- Posts: 5
- Joined: Tue Dec 11, 2018 2:51 pm
Re: Can’t parallel the solver
Hey, oliveroxtoby!
1. 8.1.many-numbers-after when i created this topic
2. 7.1.12437.25 after your suggestion about reinstallation blue-core
3. 10.0.12498.5 after your last message.
Unfortunately, they didn’t solve my issue.
No, that’s my bad: i uploaded the screenshot after your message — i didn’t say, that i updated my post. I’m sorry.oliveroxtoby wrote: ↑Sat Dec 15, 2018 7:56 pm Apologies - I didn't notice that you had attached a screenshot the first time.
I tried three versions:oliveroxtoby wrote: ↑Sat Dec 15, 2018 7:56 pm Some googling suggests this is some sort of an issue with MS MPI. I can only suggest you try installing the latest one in place of the version that came with blue CFD - https://docs.microsoft.com/en-us/messag ... rosoft-mpi.
1. 8.1.many-numbers-after when i created this topic
2. 7.1.12437.25 after your suggestion about reinstallation blue-core
3. 10.0.12498.5 after your last message.
Unfortunately, they didn’t solve my issue.
Maxim Gryaznov
-
- Veteran
- Posts: 3129
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Can’t parallel the solver
There is a video from Bruno Santos how to install bluecfd.
Goto 2:30. The MS-MPI installer given with bluecfd should overwrite an existing MPI.
But sometimes this does not work (on my machine). So be sure to uninstall all
existing MPI (reboot system) before installing bluecfd.
About computing forces in paraview please see pics.
https://www.youtube.com/watch?v=nl7er2t-TnU