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

using mpirun

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2016, 08:40
Default using mpirun
  #1
Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 16
EmadTandis is on a distinguished road
Hello
I am new to mpirun in linux
I'd like to use mpirun to apply simpleFoam using a network with 2 nodes.
to do that, I copy airfoil2D in tutorial folders and share it to client nodes using "nfs".
I am able to use mpirun in loacl machine by applying this command;
$mpirun -np 4 simpleFoam -parallel
but the problem is when I want to employ another node, let's say client, to use mpirun. the command I have used is as below:
$ mpirun -np 4 --hostfile hostFile simpleFoam -parallel
but it doesn't work. while my own code ( printf('hello') ) works well as below through network:
$ mpirun -np 4 --hostfile hostFile test -parallel

can anyone help me what's the problem?
EmadTandis is offline   Reply With Quote

Old   December 4, 2016, 15:29
Default
  #2
Member
 
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 11
dradenkovic is on a distinguished road
You need to provide more details on the error. Try:

mpirun –hostfile <machines> -np <nProcs>
<foamExec> <otherArgs> -parallel > log &

Here is link that you might find useful:

http://cfd.direct/openfoam/user-guid...ions-parallel/

Regards,
Darko
dradenkovic 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
what is wrong with the mpirun parameter -mca ? donno OpenFOAM 7 February 2, 2023 22:12
mpirun hangup.. can anyone help how to fix mpirun issues. prameelar OpenFOAM 12 February 16, 2022 17:23
MPIrun Problem with FoamJob Workaround kaszt OpenFOAM Running, Solving & CFD 3 October 4, 2018 13:55
OF mpirun and parallel problem heksel8i OpenFOAM Running, Solving & CFD 2 September 11, 2013 06:33
MPIRUN fails lfbarcelo OpenFOAM 3 March 29, 2010 08:41


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