View Issue Details

IDProjectCategoryView StatusLast Update
0001501OpenFOAMBugpublic2015-01-27 10:47
Reporterderekm Assigned Tohenry  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOpenSuSEOS Version12.3
Summary0001501: ViewFactorsGen - exceeds internal hardcoded limit
Descriptionmodel with good mesh runs into error in ViewFactorsGen
--> FOAM FATAL ERROR:
Dynamic list need from capacity.Actual size maxDynListLength : 100000

    From function shootRays
    in file shootRays.H at line 63.

changing values in viewFactorsDict does not improve.
A change to a higher value works.
Steps To ReproduceA clean copy of tutorial chtMultiRegionHeaterRadiation has the mesh inserted and changed to allow for reduced number of regions (remove bottom air and left solid) and changes in Changedict to cater for in patch contact with the regions.

Values in Viewfactorsdict are changed for two patches so that faceAgglomerate does not crash.

Running the modified tutorial crashes at viewfactorgen.

changing the hardcoded limit in shootRays.H to a parameter in viewfactordict enables viewfactorgen when set the limit to a highvalue

Additional InformationThe followingChanged code in Shootrays.H is working
from
...
// Maximum lenght for dynamicList
const label maxDynListLength = 100000;
...

to
...
// Maximum lenght for dynamicList
//const label maxDynListLength = 100000;
const label maxDynListLength =
       viewFactorDict.lookupOrDefault<label>("maxDynListLength", 100000);
 if (Pstream::master())
    { Info << "\nmaxDynListLength: "<< maxDynListLength << endl; }
...
TagsNo tags attached.

Activities

user21

2015-01-26 18:30

  ~0003587

Thanks for the review. I'll evaluate your suggestion.

henry

2015-01-27 10:46

manager   ~0003588

Thanks for the bug-report and fix.
Resolved by commit 9ae53dec4ab906ff04593330fbe7f33552534ab3

Issue History

Date Modified Username Field Change
2015-01-26 18:25 derekm New Issue
2015-01-26 18:30 user21 Note Added: 0003587
2015-01-27 10:46 henry Note Added: 0003588
2015-01-27 10:46 henry Status new => resolved
2015-01-27 10:46 henry Resolution open => fixed
2015-01-27 10:46 henry Assigned To => henry