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

gliph display

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 7, 2010, 04:03
Default gliph display
  #1
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Hi everybody.
I have a problem. In order to display U vectors (simpleFoam case) I always used Cell Centers and Gliph filters, as in cavity tutorial. Today I obtain this message:
Code:
$ paraFoam
created temporary 'tandem_blade_7_0_better.OpenFOAM'
ERROR: In /OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Common/vtkDataArrayTemplate.txx, line 142
vtkFloatArray (0x1c3fa530): Unable to allocate 155116653 elements of size 4 bytes. 
terminate called after throwing an instance of 'std::bad_alloc'
what():  std::bad_alloc
/OpenFOAM/OpenFOAM-1.6.x/bin/paraFoam: line 111: 27881 Aborted                 paraview --data="$caseFile"
Is it a memory problem?
vaina74 is offline   Reply With Quote

Old   July 8, 2010, 06:50
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Maurizio, I see you're using OpenFOAM very successfully

I've come across that very same issue a couple of weeks ago. Basically, that message means that the machine doesn't have about 600MB of contiguous free RAM (and Swap doesn't count)!

But there is a rather simple solution, without resorting to buying more RAM: you must change the resolution of the glyphs! If you change the resolution for each arrow to have less triangles on the head and the body, then you can represent a lot more arrows in a single scene!
The exact names of the relevant resolutions of the Arrow are:
  • Tip Resolution
  • Shaft Resolution
The other values don't affect the amount of RAM required for generating the glyphs/arrows!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   July 8, 2010, 10:17
Default
  #3
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Thank you, Bruno. I thought Ubuntu and 4 Gb RAM were enough...
Your hint works and now I can get my smart coloured gliphs and streamlines
You seem to have a solution for every section of the forum

Cheers,
Maurizio
vaina74 is offline   Reply With Quote

Old   July 8, 2010, 10:59
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by vaina74 View Post
I thought Ubuntu and 4 Gb RAM were enough...
Your hint works and now I can get my smart coloured gliphs and streamlines
You seem to have a solution for every section of the forum
I'm glad it worked As someone once said:
Code:
if you only have lemons, make lemonade
Quote:
Originally Posted by vaina74 View Post
You seem to have a solution for every section of the forum
Alas I'm only somewhat fluent in installing OpenFOAM, and dabble with post-processing (with ParaView only). Everything else in the middle is still one seriously giant black box

Best regards,
Bruno
wyldckat 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
Problem with paraFoam ata OpenFOAM 14 November 30, 2009 05:23
free surface display carno CD-adapco 4 October 7, 2005 01:03
Display Reynold Stresses in K-E Andrew FLUENT 4 April 16, 2004 18:12
problems with Fluent display windows chris FLUENT 2 October 23, 2003 17:23
display and roughness nicolas FLUENT 2 July 23, 2002 20:09


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