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

[OpenFOAM] Visualization problem on ParaFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2012, 07:25
Default Visualization problem on ParaFoam
  #1
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Hi FOAMers,
I have different problems with the use of paraFoam. At the beginning I thought that the problem was in my snappyHexMeshDict file, but some people told me that the problem was a bug of paraFoam. I try to solve this problem with the polyHedral option, but paraFoam crash when the number of cells is too important.

The picture 1 is without polyHedral option and the picture 2 is with this option..






Currently, I try to use the foamToVTK converter. I use this command ligne :
"foamToVTK -latestTime" and I have the picture 3. I research the results of the picture 4 (without parts of cut cells), can you explain me how to obtain it ?





Thanks for your help,
Rider.
Rider is offline   Reply With Quote

Old   July 17, 2012, 17:00
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Greetings Rider,

Have you tried the option "-poly" with foamToVTK?

Additionally, for inspecting a section cut of a mesh, use the "Extract Cells" feature instead, which will not trim your cells... although it's a bit buggy with polyhedral meshes.

Furthermore, try this instead as well:
Code:
paraFoam -builtin
This will open the case with the internal reader.
At the bottom of the "Object Inspector", you'll find the option for the polyhedral mesh as well.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 18, 2012, 04:37
Default
  #3
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Greetings Bruno,

Thank you for your answer. I tried your propositions but it don't works (or it's me ...)

If I upload my files, can you try ?

Best regards,
Rider
Rider is offline   Reply With Quote

Old   July 18, 2012, 17:08
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi Rider,

I suppose I can try figuring out what the problem is if you upload the case, as well as indicating where I should look at .
If the data of the case is sensitive, send me the link via private message.

By the way, was does checkMesh tell you about the mesh? Very skew faces is a good reason for even ParaView to have problems representing the mesh!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 19, 2012, 06:51
Default
  #5
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Greetings Bruno,

I sent you a private message.

If we can find a solution I'll post it here for everybody.

Best regards,
Rider
Rider is offline   Reply With Quote

Old   July 20, 2012, 11:02
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi Rider,

Yep, using polyhedral mesh with section cut crashes ParaView with this error message:
Code:
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted
But as shown in the attachment, you should use the filter "Extract Cells By Region"! This way you do in fact examine properly the mesh


By the way, I also tested using the internal reader by running:
Code:
paraFoam -builtin
Notice the option on the lower left of the "Object Inspector", where I unchecked the option "Decompose polyhedra"!

Best regards,
Bruno
Attached Images
File Type: jpg Extract_Cells_By_Region.jpg (77.3 KB, 472 views)
File Type: jpg Extract_Cells_By_Region_using_internal_reader.jpg (91.2 KB, 476 views)
elvis, bennn, dupeng and 1 others like this.
__________________
wyldckat is offline   Reply With Quote

Old   July 23, 2012, 03:53
Default
  #7
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Thank you very much Bruno!

This is the result that I was looking for

Best regards,
Rider.
Rider is offline   Reply With Quote

Old   January 8, 2013, 16:00
Default
  #8
Member
 
Suranga Dharmarathne
Join Date: Jan 2011
Location: TX, USA
Posts: 39
Rep Power: 15
sdharmar is on a distinguished road
Hi Bruno and Foamers,

I have a problem in visualization my mesh in paraview with openFoam. I have attached two snap shots of the same case with different cell numbers.

When I use 3.1 millon cell case paraview fails to show me the geometry (openFoam1.jpg). The other one shows with around 400000 cell case which doesn't have any probelm. I ran two cases with the same conditions. But couldn't see results for the 3.1 million case.

Please help me if you have encountered a similar type of thing.

Best,

Suranga.
Attached Images
File Type: jpg paraFoam1.jpg (48.8 KB, 144 views)
File Type: jpg paraFoam2.jpg (48.3 KB, 153 views)
sdharmar is offline   Reply With Quote

Old   January 8, 2013, 16:23
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Greetings Suranga,

Looks can be deceiving Even if it looks like it didn't load, there was no error message! What happened is that ParaView will display by default a heavier mesh in "Outline" mode, to avoid locking the user out. If your mesh had 1000 million surface cells - and assuming you had enough RAM - it could take a few good 5-10 minutes just to load the surface mesh.

If you compare the two snapshots, you'll see that in one it says "Surface" and in the other "Outline".

Don't see where it is yet? OK, see the Help menu? Then on the second line of tool-bar buttons below it, a bit to the right! There, one says "Surface" and in the other "Outline".


My apologies if this description seems a bit patronizing, but when I saw the two snapshots you attached, in a simple comparison with back-and-forth the solution can be seen!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 8, 2013, 16:53
Default
  #10
Member
 
Suranga Dharmarathne
Join Date: Jan 2011
Location: TX, USA
Posts: 39
Rep Power: 15
sdharmar is on a distinguished road
Thank you very much for the prompt reply. I need to pay more attention in the future.

BR,

Suranga.
sdharmar is offline   Reply With Quote

Old   June 27, 2016, 11:19
Default
  #11
New Member
 
Marco
Join Date: May 2016
Posts: 6
Rep Power: 10
IFBMaR is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Rider,

Have you tried the option "-poly" with foamToVTK?

Additionally, for inspecting a section cut of a mesh, use the "Extract Cells" feature instead, which will not trim your cells... although it's a bit buggy with polyhedral meshes.

Furthermore, try this instead as well:
Code:
paraFoam -builtin
This will open the case with the internal reader.
At the bottom of the "Object Inspector", you'll find the option for the polyhedral mesh as well.

Best regards,
Bruno
Hello Bruno,

what is the difference or the advantage of opening paraFoam with the internal reader with the -builtin command?

Thank you
Marco
IFBMaR 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 with parafoam: "Read float past end of buffer" Osman ParaView 2 March 1, 2019 08:16
[OpenFOAM.org] OpenFOAM v5 on ubuntu 14.04 - Problem with ParaFoam giorgos OpenFOAM Installation 2 October 31, 2017 08:55
problem with visualization of iso-surface blek STAR-CCM+ 9 October 9, 2013 08:23
paraFoam touch problem DiegoNaval OpenFOAM 0 August 4, 2011 06:05
[OpenFOAM] Weird Problem with ParaFoam via SSH cwang5 ParaView 2 July 19, 2010 10:00


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