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

[OpenFOAM] Problem on multicore in running paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By alexeym
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2019, 01:19
Default Problem on multicore in running paraview
  #1
Member
 
Join Date: Aug 2018
Posts: 47
Rep Power: 8
foamF is on a distinguished road
Hi, everyone. I am looking for some guidelines to run paraview in parallel using multi cores in my 6-core laptop.

I am using Windows 10 with ubuntu linux as a subsystem, together with Xming as a X server. I installed OpenFOAM v6 in my laptop.

I tried the following steps but failed to run paraview in parallel:

1. in paraview, tick the box "enable auto MPI" and set the Auto MPILimit to 2.

2. in ubuntu terminal, type "mpirun -np 2 pvserver", and it shows "waiting for client... connecting URL ... Accepting connection(s)...."

3. in paraview, add a server (server type: client/server, host: localhost, port 11111, startup type: manual) and connect to the server

4. in ubuntu terminal, it shows "Client connected".

5. in paraview, load openfoam results via opening a file named foam.foam

It appears everything is fine. But, when i click "About" in paraview, it indicates only 1 number of processes.

Anyone knows why??
foamF is offline   Reply With Quote

Old   March 18, 2019, 06:23
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

AFAIR to have parallel visualisation of OpenFOAM(R) case with ParaView, the case should be decomposed (into as many subdomains as the number of cores you plan to use for visualisation).
wyldckat likes this.
alexeym is offline   Reply With Quote

Old   April 22, 2019, 23:55
Default
  #3
Member
 
Join Date: Aug 2018
Posts: 47
Rep Power: 8
foamF is on a distinguished road
Thanks, alexeym.

I have tried again but without success.

I successfully run a decomposed case with 6 sub-domains, and i can visualize the results in paraview.

But, when i change to server mode in paraview using the steps in my previous post (except the first step i set the MPILimit to 6 and the second step i type "mpirun -np 6 pvserver".

Again, the "About" in paraview indicates only 1 number of processes.

Any expert can give some advice?
foamF is offline   Reply With Quote

Old   April 23, 2019, 05:37
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Guess, there is a need for more context. Tested right now the following steps with ParaView 5.6.0 from paraview.org:
1. Started pvserver with this command:
Code:
mpiexec -np 4 pvserver --mpi
2. Stared paraview.
3. Connected to the server.

About -> Connection Information -> Number of Processes shows 4.

Though, I have tested it on Linux, maybe on Windows there are additional steps to perform.
zyzycomcn likes this.
alexeym is offline   Reply With Quote

Old   April 23, 2019, 13:33
Default
  #5
Member
 
Join Date: Aug 2018
Posts: 47
Rep Power: 8
foamF is on a distinguished road
i typed your command in the terminal but it fails. It prints out "Got unknown argument: --mpi".

any hints what i can do?
foamF is offline   Reply With Quote

Old   April 23, 2019, 16:57
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Well, I think it would be quite reasonable to check if your ParaView version is MPI-capable. What paraview package did you install on Ubuntu?

Unfortunately I was not able to find command line argument to show pvserver capabilities, but my 'pvserver --help' returns the following (this time on macOS but Linux version returns the same):

Code:
$ /Applications/ParaView-5.6.0.app/Contents/bin/pvserver --help
...
  --mpi  Initialize MPI on processes, if possible. Cannot be used with --no-mpi.
...
  --no-mpi  Don't initialize MPI on processes. Cannot be used with --mpi.
...
alexeym 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
[General] Problem opening paraview (remote) alexvaleije ParaView 0 June 23, 2016 13:03
LINUX newbie with paraView installation problem kenya0514 OpenFOAM Installation 4 January 16, 2013 18:51
[General] Problem in using paraview meballav ParaView 11 October 12, 2012 17:03
Installation Problem with ParaView 3.12.0 on Scientific Linux 5.7 Wley OpenFOAM Installation 2 September 28, 2012 07:06
paraFoam running problem Aleksey_R OpenFOAM 2 November 27, 2009 19:18


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