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

Is the full text of an IOdictionary stored in RAM for the life of the object?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2015, 12:46
Default Is the full text of an IOdictionary stored in RAM for the life of the object?
  #1
Member
 
Join Date: Aug 2015
Posts: 37
Rep Power: 11
knuckles is on a distinguished road
I was mucking around in source files recently and I got the impression that IOdictionaries may be read into RAM once, at creation (assuming that the source dictionary file isn't changed during execution), and that all subsequent lookup operations are performed by parsing data from RAM, rather than disk. I didn't dig deep enough to be sure - can anyone confirm or deny this? I'm particularly curious whether this means that the full text of the dictionary is stored in RAM for the life of the object.

I'm concerned because I'm using a custom dictionary to store tabulated model data. The data file is about 300 MB in ASCII format - if this text is being held in RAM for the duration of my program, even after it's been parsed and the data has been read into a program-usable format, then this is a big waste.
knuckles is offline   Reply With Quote

Reply

Tags
dictionaries


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
engineFoam with layers - pressure problems when adding layers mturcios777 OpenFOAM Running, Solving & CFD 23 January 4, 2023 22:56
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 15:56
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 05:55
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36


All times are GMT -4. The time now is 11:53.