CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Sample utility problem in OpenFOAM141dev

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2008, 09:27
Default Dear Hrvoje, Description:
  #1
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Dear Hrvoje,

Description:
sample utility run in stressedFoam/plateHole case crashes after eating up all the available system memory.

Solver/Application:
the sample utility

Source file:
src/OpenFOAM/meshes/primitiveShapes/triangle/intersection.[CH]

Testcase:
tutorials/stressedFoam/plateHole

Platform:
openSUSE 10.3 x86_64 + both of the system gcc and gcc-4.2.2 built following buildInstructions.txt of OpenFOAM-1.4.1-dev

Version:
OpenFOAM-1.4.1-dev revision 393

Notes:
It appears that at least the tested gcc versions do not prefer the syntax
const_cast<scalar&>(planarTol_) = t;
to override the const attribute of a scalar variable planarTol_ in intersection::setPlanarTol(), despite this line does not result in any errors. Thus
scalar oldTol = intersection::setPlanarTol(0.0);
in octreeDataFace::intersects() is not properly executed, which leads to misdetection of intersection points.

The problem went away simply giving up declaring planarTol_ as constant as attached. I'm not sure if this is the best fix, but attaching for clarification of the fix that worked for me.
planarTolFix.diff

This problem does not exist in OpenCFD versions since planarTol_ is not declared as constant.

Best regards,
Takuya
7islands is offline   Reply With Quote

Old   January 4, 2008, 09:34
Default Thanks Takuya, I'm on it. It
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Thanks Takuya, I'm on it. It must have driven you crazy - please accept my apologies.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak 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
Sample utility problems msrinath80 OpenFOAM Running, Solving & CFD 12 December 21, 2012 06:51
OF15x sample utility does not accept component elisabet OpenFOAM Bugs 2 February 18, 2009 12:58
Problem with sample utility roberthino OpenFOAM Post-Processing 6 August 23, 2007 16:29
About the problem of decomposePar utility zou_mo OpenFOAM Running, Solving & CFD 3 July 27, 2005 19:18
SOLAVOF Sample Test Problem Zi-Wei Chiou Main CFD Forum 0 October 27, 2001 01:35


All times are GMT -4. The time now is 12:14.