CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Running paraFoam as a parallel job

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2011, 05:09
Default Running paraFoam as a parallel job
  #1
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
Dear Foamers,

Does paraFoam runs as a parallel process by default or do I have to make an mpirun command.

I ask that because as I've read about setting up a ParaView server, the client command was:
Quote:
mpirun -n 4 ./pvserver ...
I tried on my PC (locally without any connections or anything) to run:
Quote:
mpirun -n 4 paraFoam &
What happened was that 4 paraFoam instances were opened. So, I guess I did not make a right assumption.

Feedback is welcome

Best regards,
Hisham
Hisham is offline   Reply With Quote

Old   September 13, 2011, 08:50
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Hisham,

Well, AFAIK, currently we cannot execute paraFoam itself in parallel. And I haven't been able to confirm this myself, but what we do need to do is:
  1. All of the machines that will handle the simulation case, must have a working OpenFOAM installation, using the same exact versions of both ParaView and OpenFOAM.
  2. Launch pvserver with mpirun, so we have one pvserver per sub-domain/processor.
  3. Create a file for opening the case afterwards, namely running:
    Code:
    paraFoam -touch
  4. Finally, run paraview and connect to the master pvserver.
I've written about this elsewhere as well: http://www.cfd-online.com/Forums/ope...al-server.html - it's a bit more detailed and oriented for remote access, but the basics are there as well

A very important detail is that ParaView must be built with MPI capabilities for things to work properly, at least in the server machine. Usually this can be achieved with running in the ThirdParty folder:
Code:
./makeParaView -mpi
Use "-help" for more information on other options as well.
For more information on building ParaView, you can read here: Building ParaView 3.10.1 with custom Qt 4.6.4

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 13, 2011, 09:14
Default
  #3
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
Hi Bruno,

Thanks a lot! These links will surely make a nice weekend reading assignment

can't wait to do so

Regards
Hisham
Hisham is offline   Reply With Quote

Reply


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
running mapFields in parallel mkhm OpenFOAM Pre-Processing 10 September 16, 2021 13:12
[snappyHexMesh] Problem with boundaries with sHM in parallel running Loekatoni OpenFOAM Meshing & Mesh Conversion 0 January 24, 2019 07:56
How to use parallel running to the most? 6863523 OpenFOAM Running, Solving & CFD 5 January 19, 2017 02:22
[snappyHexMesh] Error while running SnappyHex in parallel mg.mithun OpenFOAM Meshing & Mesh Conversion 1 February 10, 2016 13:13
problem about running parallel on cluster killsecond OpenFOAM Running, Solving & CFD 3 July 23, 2014 21:13


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