CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Questions about Paraview to show Parallel run of OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 11, 2012, 23:20
Default Questions about Paraview to show Parallel run of OpenFOAM
  #1
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 4
padian is on a distinguished road
Dear all:

I run a parallel case, then in the case fold, there are a couple folds named 'processor*' as shown below.

/case
----0
----constant
----system
----processor0
....
----processorN

in this case, how to use paraview to show the results?

I'm new to OpenFoam and Paraview, thanks for your help in advance.

Rds

Jian
padian is offline   Reply With Quote

Old   November 12, 2012, 00:21
Default
  #2
Member
 
Jianye Xia
Join Date: Mar 2009
Posts: 32
Rep Power: 8
bioexplore is on a distinguished road
I think u should use reconstructPar tool to reconstruct the results, and then use paraFoam!

Hope it helpful!
bioexplore is offline   Reply With Quote

Old   November 12, 2012, 02:08
Default
  #3
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 4
padian is on a distinguished road
Quote:
Originally Posted by bioexplore View Post
I think u should use reconstructPar tool to reconstruct the results, and then use paraFoam!

Hope it helpful!
Thanks for your help~
padian is offline   Reply With Quote

Old   November 12, 2012, 05:01
Default
  #4
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 240
Rep Power: 9
olivierG is on a distinguished road
hello,

You can keep the case decomposed (no recomposePar), and use Paraview: just set the case type as "decomposed" in Paraview.
This will save you time and disk space.

regards,
olivier
olivierG is offline   Reply With Quote

Old   November 12, 2012, 05:04
Default
  #5
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 4
padian is on a distinguished road
Quote:
Originally Posted by olivierG View Post
hello,

You can keep the case decomposed (no recomposePar), and use Paraview: just set the case type as "decomposed" in Paraview.
This will save you time and disk space.

regards,
olivier
Thanks.

Do you mean to cd/case fold/0.1, then use paraFoam?

How to set the case as decomposed? Can you explain in details?

Sorry for my question, I'm new to this tool.

Thanks for your help.
padian is offline   Reply With Quote

Old   November 12, 2012, 06:30
Default
  #6
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 240
Rep Power: 9
olivierG is on a distinguished road
hello,
1) Go to case folder (not the time folder, i.e 01., 0.2 ....).
2) launch Paraview/paraFoam
3) In paraview, set the case to decomposed and Apply.

regards,
olivier
olivierG is offline   Reply With Quote

Old   November 12, 2012, 06:48
Default
  #7
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 4
padian is on a distinguished road
Quote:
Originally Posted by olivierG View Post
hello,
1) Go to case folder (not the time folder, i.e 01., 0.2 ....).
2) launch Paraview/paraFoam
3) In paraview, set the case to decomposed and Apply.

regards,
olivier
Thanks for your quick reply.

Unfortunely, when I finished 1) and 2), in the paraview, when I select ‘’file ‘---‘open’, then I can't get a proper file to load into paraview.

Is it necessary to use foamToVTK to convert data? When I use foamToVTK in the case fold, it does Not work.

Thanks for your patience.
padian is offline   Reply With Quote

Old   November 12, 2012, 06:57
Default
  #8
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 240
Rep Power: 9
olivierG is on a distinguished road
hello,
NB: I use Paraview, not ParaFoam.
In order to open the case, you must have a dummy file ".foam" inside, like:
your case dir name is "case", then inside case, add an empty file "case.foam", using "touch case.foam" command.
Then when you launch paraview, select the "case.foam" file to open, then you have a case type entry in Paraview / Properties: Reconstructed case OR decomposed.

regards,
olivier
olivierG is offline   Reply With Quote

Old   November 12, 2012, 08:10
Default
  #9
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 4
padian is on a distinguished road
Quote:
Originally Posted by olivierG View Post
hello,
NB: I use Paraview, not ParaFoam.
In order to open the case, you must have a dummy file ".foam" inside, like:
your case dir name is "case", then inside case, add an empty file "case.foam", using "touch case.foam" command.
Then when you launch paraview, select the "case.foam" file to open, then you have a case type entry in Paraview / Properties: Reconstructed case OR decomposed.

regards,
olivier
I make it.
Thanks again for your kindness and patience.

Rds

Jian
padian is offline   Reply With Quote

Old   November 19, 2012, 07:02
Default
  #10
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 4
emirust is on a distinguished road
Thanks for the info!

Will this help to increase performance while post-processing with Paraview?
emirust is offline   Reply With Quote

Old   August 19, 2014, 12:57
Default
  #11
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 91
Rep Power: 7
kiddmax is on a distinguished road
Dear Olivier

I also want to postprocess my case with decomposed way. I want to know is there a command to run the utility for every processors? For example, If I want to get the Lamda2 variable for each processor, how to do that in a easy way?

Best regards
Ye
kiddmax is offline   Reply With Quote

Old   August 20, 2014, 03:14
Default
  #12
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 240
Rep Power: 9
olivierG is on a distinguished road
hello,
Each OpenFoam tools has the "-parallel" option, so if you stay with a decomposed case, just use like "mpirun -np 8 Lambda2 -parallel" (+ other option if needed).
NB: here, 8 is for a case decomposed in 8 parts.

regards,
olivier
olivierG is offline   Reply With Quote

Old   August 20, 2014, 03:45
Default
  #13
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 91
Rep Power: 7
kiddmax is on a distinguished road
Thank you so much! Olivier
kiddmax 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
Interfoam blows on parallel run danvica OpenFOAM Running, Solving & CFD 16 December 22, 2012 03:09
How to view openfoam results in paraview Marineboy OpenFOAM Paraview & paraFoam 5 July 10, 2012 03:14
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25
Paraview installation troubles jjhall OpenFOAM Installation 3 April 17, 2008 12:59


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