CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Paraview 300

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 3, 2007, 12:00
Default Hi everybody, I just downlo
  #1
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 277
Rep Power: 9
vinz is on a distinguished road
Hi everybody,

I just downloaded the last version of paraview, i.e. 3.0.0
It looks like a nice update but I only succeed in using it with vtk files. I mean, translating with foamToVTK,then run paraview and open the vtk files of the desired case.
Is there a way to use it in the classical way:
paraFoam <root> <case>
When I do so, it return an error: "Got unknown argument: paraFoam.pvs"
Or will it possible in the future?
Thanks for any information.

Regards,

Vincent
vinz is offline   Reply With Quote

Old   October 3, 2007, 14:31
Default Search for paraview3 on the bo
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Search for paraview3 on the board and you will find stuff like
http://www.cfd-online.com/OpenFOAM_D...es/1/5149.html
(and I think Mattijs answer in that thread answers you question)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 3, 2007, 15:29
Default Hello, Couple of months ago
  #3
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
Hello,

Couple of months ago (The time around that post which Bernhard pointed to), I got the PVFoamReader partially working on ParaView 3.1.0.

It could (still can :-)!) display the internal mesh without any problems.... but when it came to displaying each individual patch, I was only able to to take it to a point where each patch was treated as a separate data-set.

So it works fine, but when you open the case using paraFoam, it gives you each patch as a different output. This does not look as elegant as the current way in which patches are handled using paraview 2.4.4.

The way to solve this would be to use the multiblock data sets available in the new VTK library, but I havent had the time to look into doing that yet. Anyway.... Mattijs is working on this issue... :-)! (Increases the laziness in me :-)!)

By the way... there already exists a plugin for OpenFOAM datasets in the ParaView 3 CVS. You need to enable it. For more information on that, check out.....

http://openfoamwiki.net/index.php/Ti...raview3_Plugin

Have a nice evening!

Philippose
philippose is offline   Reply With Quote

Old   October 5, 2007, 08:39
Default Hello Philippose, Recently
  #4
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
Hello Philippose,

Recently I'm slowly making progress on improving the paraview native reader (of which I posted an intermediate result here). Regarding that your words drew my attention: "I was only able to to take it to a point where each patch was treated as a separate data-set" since, the native reader also works exactly as you wrote following Terry's original implementation: the reader sets each patch as a separate dataset within one block (group) of vtkMultiBlockDataSet. However as of now it doesn't seem to make any problems to me. So, could you tell me what's the problem?

Takuya

P.S. The native reader can also be turned on as a builtin reader on ParaView 3.0.2 (at least, I still haven't tried other ParaView3 versions) and I added how-to on the last part of the Tip_Build_A_Paraview3_Plugin page.
7islands is offline   Reply With Quote

Old   October 5, 2007, 13:34
Default Hello Takuya, A Good day to
  #5
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
Hello Takuya,

A Good day to you :-)!

I guess I created some confusion with my last post, and I apologise for that. I guess I used the wrong terms in describing what I had managed to achieve... so here is the next try :-)!

Since you work with Paraview at the coding level, I guess it will be enough to say... that I managed to get each patch as a separate output port. Not as separate data-sets... but as separate ports. I did not use the MultiBlockDataSet facilities... it was a super quick dirty modification to see if I could get a case loaded into ParaView 3.x.x.

So... in the paraview graphical interface... when I open a case... at the top left side where it shows the data-set currently opened... it gives a list of each patch in the form of a tree structure under the case opened. Then... I can switch on and off patches by controlling the visibility of each of those items in the list.

Let me see if I can send you a couple of screen shots of what I mean. I need to see if the code I wrote is still somewhere around on my hard disk :-)!

The problem however was... that I could not find a way of dynamically creating output ports (My last try was on Paraview 3.1.0.... I compiled Paraview 3.3.0 last evening... maybe something has changed) based on the number of patches in the case.

And also.... in this case... the custom graphical interface (the same one used by paraFoam now to select patches) does not effect the display of the patches.

Also :-) I could not load the different time instances in the case of a transient simulation.

Anyway.... I could sit with it again... and try a complete rewrite. Need to see if I am up to something like that now :-)!

Hope I cleared things up :-)!

I really want to switch to the ParaView 3 series... the interface is so much better (and cooler :-)!)

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Old   October 5, 2007, 20:30
Default Hi Philippose, Thanks so mu
  #6
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
Hi Philippose,

Thanks so much for an answer, all is clear to me now! I don't see any multiple output ports on the pipeline panel so that's probably a problem that I don't have to be afraid of.

With regard to interaction between the UI and the reader code I'm in a state not that different from you right now... no patch selection (I have even given up implementing that feature from the beggining), VCR controls don't work for timestepping (but the time slider in the reader panel works), etc, etc. I'm decided to be sticking with 3.0.2 for a while since the newer versions frequently don't compile, changes too quickly and most of all I would like to concentrate on the reader code itself rather than tracking the newest CVS head. I figure it won't be too hard to tailor the code later to suit the newest ParaView after completion of the code.

Takuya
7islands is offline   Reply With Quote

Old   October 6, 2007, 04:15
Default Hello again Takuya, Here ar
  #7
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
Hello again Takuya,

Here are some screenshots of the the things I spoke about.... I hope I can fit all of them into the post here :-)! Lets see....












I shall look into the whole issue again this weekend.... but this time I am looking more in the direction of doing it write.... probably with multi block datasets, and maybe with temporal datasets...

Have a nice weekend!

Philippose
philippose is offline   Reply With Quote

Old   October 6, 2007, 04:22
Default One thing I forgot to mention.
  #8
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
One thing I forgot to mention..... for me... the reader GUI works for selection of patches, if I allow multiple output ports as shown above. But again... there are many other problems that crop up.

The problem is... I cannot change the number of output ports in a dynamic manner.... which is why you see 10 output ports, even though I have only 5 patches + internal mesh.

Another thing is.... with the current plugin, paraview quits with a segmentation fault when I try to make a cross-section cut through the mesh :-)!

Basically.... as it is now... its a good "proof of concept"... but very very far from being too useful. On the other hand... if only the internal mesh needs to be displayed... without the need to switch on and off patches... then I think this plugin can be "simplified" to a working reader plugin with very few changes.

Philippose
philippose is offline   Reply With Quote

Old   October 6, 2007, 06:36
Default Hi Philippose, I was able to
  #9
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
Hi Philippose,
I was able to confirm what you said from your screenshots (different ports for differnt patches etc.) and my understanging is right. Besides, your screenshots looks very interesting...! My motivation for working on the native reader is to get a reasonably working reader on Windows (where AFAIK the PVFoamReader-vtkFoam approach doesn't work) but if I could live with only Linux I would be just sitting until your work completes...

As to patch assignment problem I think Terry's native reader (ParaView3/VTK/IO/vtkOpenFOAMReader.cxx) might be able to offer you some help. According to RequestData() and CreateDataSet() of the code it seems that if you have each patch as a separate vtkUnstructuredGrid all patches can be simply added into group 0 of vtkMultiBlockDataSet.

And one question: where did you get ParaView 3.3 source code? For ParaView 3.2
cvs -d :pserver:anoncvs@www.paraview.org:/cvsroot/ParaView3 co -r ParaView-3-2 ParaView3
worked but not for 3.3.

Takuya
7islands is offline   Reply With Quote

Old   October 6, 2007, 07:05
Default Hello yet again :-)! Paravi
  #10
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
Hello yet again :-)!

Paraview 3.3.0 is the current base branch you get when you download ParaView from the CVS using (copy pasted from the paraview website :-)!):

cvs -d :pserver:anoncvs@www.paraview.org:/cvsroot/ParaView3 login
(respond with empty password)
Follow this command by checking out the source code:
cvs -d :pserver:anoncvs@www.paraview.org:/cvsroot/ParaView3 co ParaView3

Yes.... I have been looking at Terry's native reader (I assume you are working on extending the functionality of this native reader?) for ideas on using the multi-block data set capabilities.

It would be great to have an OpenFOAM paraview reader for the windows platform.... but so far, I found the current native reader (Terry's reader) to be extremely slow in loading the case... and when any modifications are made.

I guess the way the OpenFOAM source code handles the mesh data is highly optimised and streamlined... making things really fast! This is why I am still sticking to the OpenFOAM reader (PVFoamReader)... and hence the linux limitation.

So in that case I guess a reasonable deal would be for me to wait for you to come up with a blitzing Windows capable paraview plugin... while I work on a linux variant (Till yours beats mine on speed :-)! After which I can shift to yours for both platforms anyway....!)

And while we are fighting it out... Mattijs will slink in with an even faster plugin (I know he is working on this actively :-)!) putting both of us out of business :-)!

Have a nice weekend!

Philippose
philippose is offline   Reply With Quote

Old   October 6, 2007, 07:58
Default Hello again Phillipose, Yes,
  #11
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
Hello again Phillipose,
Yes, you are quite right, I'm extending the Terry's code and the performance problem is exactly where I'm intensively working on (besides gzipped file support). I reprogrammed the code almost from scratch, and managed to get roughly comparable performance (if not superior) with the OpenFOAM code. Of cource I looked around the OpenFOAM code here and there, and was surprised to see what functionality is how implemented. Especially the CellShape constructor is almost a beautiful art...

Said that, one of the inherent problems not easily solved within the native reader framework is boundary value handling. It is almost impractical to implement great variety of B.Cs in OpenFOAM thus the B.C.s the native reader can handle correctly will be limited to the ones that have value or gradient entries.

Feature-wise the code is mostly fixed and what remains is testing. It will take a while since I'm asking my collegue to also test it, but hopefully I will be able to post it not so distant future. Of course if you are interested I can send you the code.

Happy hacking,
Takuya
7islands is offline   Reply With Quote

Old   October 6, 2007, 08:13
Default Wow :-)! You have managed to g
  #12
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
Wow :-)! You have managed to get the same (better!?) performance as that of the OpenFOAM PVFoamReader !? Now I must say... that really is something :-)!

It would be a pleasure for me to test your code if you can make it available to me. My email ID is listed on my profile (which you can get by clicking on my name in the post.

I assume I would have to copy it into the same place where Terry's code resides in the ParaView sources... and recompile Paraview?

May I ask you what exactly your drive was... to more or less rewrite the code... and actually work out the implementation methods used in OpenFOAM? You must have spent a good number of hours I assume? It couldn't have been only to get it working in Windows...or :-)!?

Currently I am looking through the new VTK Pipeline concepts (I dont have any experience on the old pipeline... so not too bad :-)!), and also Terry's code.

Enjoy your day!

Philippose
philippose is offline   Reply With Quote

Old   October 6, 2007, 09:46
Default Hi, OK I sent you the code so
  #13
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
Hi,
OK I sent you the code so it'd be nice if you could try it and give me any comments...

Regarding the motivation story it all attributes to a crappy educational PC cluster system in our university where using an OS other than Windows is not possible at all. Upon that PC system still I'm planning to use OpenFOAM/ParaView as course materials for my lecture on introductory computational engineering. With recent good performance PCs novice students are not accustomed to sit and wait for data processing to be done...!

Takuya
7islands 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
Paraview 34 hsieh OpenFOAM Paraview & paraFoam 4 January 26, 2009 15:31
need help with Paraview vertical wall ParaView 7 February 19, 2007 22:46
Paraview peter ParaView 0 November 29, 2006 02:47
Paraview jojo ParaView 4 June 25, 2006 19:01
HI all I cant find display button in paraview when i execute cavity tutorial there is only parameter button in the paraview chan OpenFOAM Paraview & paraFoam 2 February 13, 2006 08:37


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