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

[OpenFOAM] Questions about Paraview to show Parallel run of OpenFOAM

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

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2012, 22:20
Default Questions about Paraview to show Parallel run of OpenFOAM
  #1
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 13
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 11, 2012, 23:21
Default
  #2
Member
 
Jianye Xia
Join Date: Mar 2009
Posts: 32
Rep Power: 18
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, 01:08
Default
  #3
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 13
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, 04:01
Default
  #4
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
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
daku likes this.
olivierG is offline   Reply With Quote

Old   November 12, 2012, 04:04
Default
  #5
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 13
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, 05:30
Default
  #6
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
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
daku likes this.
olivierG is offline   Reply With Quote

Old   November 12, 2012, 05:48
Default
  #7
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 13
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, 05:57
Default
  #8
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
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
LeeRuns likes this.
olivierG is offline   Reply With Quote

Old   November 12, 2012, 07:10
Default
  #9
New Member
 
Jian XU
Join Date: Nov 2012
Posts: 5
Rep Power: 13
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, 06:02
Default
  #10
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 13
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: 92
Rep Power: 16
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: 272
Rep Power: 17
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: 92
Rep Power: 16
kiddmax is on a distinguished road
Thank you so much! Olivier
kiddmax is offline   Reply With Quote

Old   May 5, 2016, 08:00
Default
  #14
Senior Member
 
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 10
arieljeds is on a distinguished road
Hi Olivier,

I know this is an old thread so I'm doubtful there's much point posting here but I'm just following up on the instructions you gave for viewing the decomposed case and I'm having trouble making it work.
I tried, from within the case directory itself, NOT the separate processor directories:

touch case2.foam
paraview
Selected decomposed case

This does not work, I get a lot of errors about duplicate entries.

Secondly, I tried this from within the individual processors. Same problem...

Can you please let me know if there's something I'm missing here? Which exact directory should I be in? Should the touch command be done for each processor ? Sorry, I know this might be a silly question but I'm a bit confused

Thanks!
Ariel
arieljeds is offline   Reply With Quote

Old   May 8, 2016, 10:55
Default
  #15
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

The steps you have posted should work. You don't need to create a .foam file for the individual processors. It is only for the overall case and by choosing the "Decomposed Case" option, Paraview is usually able to get the case to work.

The duplicated value, I have often encountered mainly with epsilon. I think one solution, is to remove the duplicated entries as it says. Or to not view that particular variable.

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   September 16, 2017, 12:01
Default ParaView Parallel reconstruct issue
  #16
New Member
 
JD Welch
Join Date: Jul 2017
Posts: 8
Rep Power: 8
JD_Welch is on a distinguished road
Hi everyone,

I have been modifying the motorBike tutorial to run OpenFoam. After using the "Allrun" script, creating a dummy "foam.foam" file in the main folder and opening as a "decomposed" file in ParaView, I am getting a rebuild issue with artifacts. These artifacts also cause errors when looking through the data. These artifacts are not created when running "paraFoam" in the main folder.

Any assistance would be greatly appreciated and I will provide any information that I can.

PS. I also have a refinement box issue and cannot figure out how to put it in the correct place. You can see it in the picture with the artifacts.

Thank you.
Attached Images
File Type: jpg Selection_001.jpg (33.7 KB, 82 views)
File Type: jpg Selection_002.jpg (22.5 KB, 45 views)
JD_Welch is offline   Reply With Quote

Old   September 17, 2017, 11:40
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Apply the filter "Merge Blocks".

But do keep in mind that this may require more RAM to process, since it will have almost 2 copies of the same data.
emjay likes this.
__________________
wyldckat is offline   Reply With Quote

Old   September 17, 2017, 12:47
Default
  #18
New Member
 
JD Welch
Join Date: Jul 2017
Posts: 8
Rep Power: 8
JD_Welch is on a distinguished road
I applied the "Merge Block" filer but I still have artifacts. Instead of blocks, it is the intersection where they merged. So far, I do not have to worry about RAM and have room to install more if needed. Do you have any more advanced processes for me to try?

Maybe there is something I should omit or add to my "Allrun" script? (See below)

Thank you for your suggestions.

Code:
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

runApplication surfaceFeatureExtract

runApplication blockMesh

[ ! -d 0 ] && cp -r 0.orig 0

runApplication decomposePar -copyZero
runParallel snappyHexMesh -overwrite

runParallel patchSummary
runParallel simpleFoam
runParallel $(getApplication)

runApplication reconstructParMesh -constant
runApplication reconstructPar -latestTime

#------------------------------------------------------------------------------
Attached Images
File Type: jpg Selection_003.jpg (27.4 KB, 33 views)
JD_Welch is offline   Reply With Quote

Old   September 18, 2017, 05:51
Default
  #19
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Try to turn off the option "Decompose Polyhedra"... more details here: https://openfoamwiki.net/index.php/F...is_in_ParaView
wyldckat is offline   Reply With Quote

Old   September 18, 2017, 20:31
Default
  #20
New Member
 
JD Welch
Join Date: Jul 2017
Posts: 8
Rep Power: 8
JD_Welch is on a distinguished road
Thank you for your suggestion. I had tried it and it still didn't work so I looked through my settings and found a solution. I had to delete the argument/option for the "reconstructPar" command. Doing so created a folder for all the written iterations form the calculation and created a "perfect" reconstruction in ParaView.

Again, I do appreciate your help.
JD_Welch is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some questions about a multi region case run in parallel zfaraday OpenFOAM Running, Solving & CFD 5 February 23, 2017 10:25
OpenFoam Parallel run on in docker container shang OpenFOAM Running, Solving & CFD 0 September 8, 2016 14:54
Unable to run OpenFOAM 1.6-ext in parallel with more than one machine mm.abdollahzadeh OpenFOAM Installation 14 January 27, 2014 09:40
[OpenFOAM] how to get the paraview parallel run luchen2408 ParaView 3 January 23, 2014 17:49
[snappyHexMesh] OpenFOAM parallel run for Channel Flow Dmoore OpenFOAM Meshing & Mesh Conversion 0 June 10, 2013 15:08


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