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

Visualization problem on ParaFoam

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

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   July 17, 2012, 06:25
Default Visualization problem on ParaFoam
  #1
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 5
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, 16:00
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 03:37
Default
  #3
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 5
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, 16:08
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 05:51
Default
  #5
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 5
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, 10:02
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 193 views)
File Type: jpg Extract_Cells_By_Region_using_internal_reader.jpg (91.2 KB, 197 views)
elvis and bennn like this.
wyldckat is offline   Reply With Quote

Old   July 23, 2012, 02:53
Default
  #7
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 5
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: 6
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, 52 views)
File Type: jpg paraFoam2.jpg (48.3 KB, 57 views)
sdharmar is offline   Reply With Quote

Old   January 8, 2013, 16:23
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 6
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

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
paraFoam touch problem DiegoNaval OpenFOAM 0 August 4, 2011 05:05
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
Weird Problem with ParaFoam via SSH cwang5 OpenFOAM Paraview & paraFoam 2 July 19, 2010 09:00
Problem in parafoam data import/visualization beto OpenFOAM Paraview & paraFoam 2 September 11, 2009 08:32
problem with paraFoam mauro ParaView 0 August 24, 2009 07:33


All times are GMT -4. The time now is 05:00.