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

Purpose of the -parallel parameter

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By niklas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2012, 05:17
Default Purpose of the -parallel parameter
  #1
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Hello,

I am running a parallel job and I forgot the -parallel parameter, so my command to start the simulation looked like this

mpirun -np 4 twoPhaseEulerFoam

The simulation runs and the system monitor tells me that there are in fact 4 processes running. The only difference to a normal parallel run is, that in the processor* folders there is only a 0 and a constant folder.
The computed time steps are stored in the case directory.

Can anyone describe what exactly happens if I omit the -parallel parameter?
I guess storing the field-information every time step requires some time, but running reconstructPar after the computation also does.
GerhardHolzinger is offline   Reply With Quote

Old   March 29, 2012, 05:26
Default
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
without -parallel the processors will run the same job (in serial)

try running 'mpirun -np 4 ls'

it will run the same ls-command 4 times, on each processor.
jferrari likes this.
niklas is offline   Reply With Quote

Old   March 29, 2012, 06:56
Default
  #3
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Thanks

your example is very enlightening
GerhardHolzinger is offline   Reply With Quote

Reply

Tags
parallel computation, running, solver control


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
Script to Run Parallel Jobs in Rocks Cluster asaha OpenFOAM Running, Solving & CFD 12 July 4, 2012 23:51
Force can not converge colopolo CFX 13 October 4, 2011 23:03
Change parameter and run cases parallel lingdeer ANSYS 0 July 29, 2011 11:27
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 21:11
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 Amitava Majumdar Main CFD Forum 0 January 5, 1999 13:00


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