CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

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

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

LinkBack Thread Tools 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?
New Member
Join Date: Aug 2015
Posts: 7
Rep Power: 2
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



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
engineFoam with layers - pressure problems when adding layers mturcios777 OpenFOAM Running, Solving & CFD 22 October 17, 2013 02:52
Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit OpenFOAM Paraview & paraFoam 60 September 18, 2013 03:23
Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 136 April 25, 2012 11:22
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36

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