CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Running paraFoam as a parallel job

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 13, 2011, 05:09
Default Running paraFoam as a parallel job
  #1
Senior Member
 
Hisham's Avatar
 
Hisham El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 247
Blog Entries: 10
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,987
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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: connection to external server - 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 El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 247
Blog Entries: 10
Rep Power: 7
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running PimpleDyMFoam in parallel paul b OpenFOAM Running, Solving & CFD 8 April 20, 2011 05:21
Problem in running job in parallel Tarak OpenFOAM 0 March 19, 2011 21:34
Issue with running in parallel on multiple nodes daveatstyacht OpenFOAM 7 August 31, 2010 17:16
Help! Running parallel mpich2 jpcfd CFX 6 March 6, 2010 09:48
parallel background job using v3.20 star-user CD-adapco 0 July 28, 2004 12:37


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