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

[OpenFOAM] Looking at decomposed areas

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By dschmidt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2015, 05:00
Default Looking at decomposed areas
  #1
New Member
 
Jonas
Join Date: Sep 2014
Posts: 6
Rep Power: 11
wurst is on a distinguished road
Hello,

is there a way I can open all the .foam files from my /processor* folders in one paraFoam case to look at the decomposition of my mesh?

Trying to link the files to the main folder and opening them from there didn't work…
Quote:
for dir in processor*
do
touch ./$dir/$dir.foam
done

for dir in processor*
do
ln -s ./$dir/$dir.foam $dir.foam
done

paraFoam -builtin --data=./processor..foam
Thank you!
wurst is offline   Reply With Quote

Old   March 6, 2015, 08:32
Default
  #2
New Member
 
Dominik Schmidt
Join Date: Mar 2014
Posts: 11
Rep Power: 12
dschmidt is on a distinguished road
First you need a paraFoam built with python support:

Open paraview in case folder.
Open Python Shell (Tools).
Code:
reader = paraview.simple.OpenFOAMReader(FileName="processor1/processor1.foam")
... proceed with the other files in a similar way
Code:
reader = paraview.simple.OpenFOAMReader(FileName="processor2/processor2.foam")
Of course, using a python loop would speed up the process.
You can also create a python script file and load it into the python shell in paraview whenever you need.
wurst likes this.
dschmidt 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
[OpenFOAM] Problem postprocessing decomposed case with 'paraFoam -builtin' bentkj ParaView 4 February 21, 2017 04:22
[OpenFOAM] Decomposed case yeharav ParaView 3 February 28, 2016 08:11
[OpenFOAM] ParaView 4.10 and OpenFOAM 2.3.0 Multiregion and decomposed case romant ParaView 3 April 7, 2014 15:42
Cross-sectional Areas ravids Main CFD Forum 1 October 16, 2009 13:09
flux through individual cells / face areas Mike FLUENT 2 February 16, 2009 10:43


All times are GMT -4. The time now is 09:52.