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

Per-snapshot IO of non-field data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2015, 00:05
Default Per-snapshot IO of non-field data
  #1
Member
 
Join Date: Aug 2015
Posts: 37
Rep Power: 10
knuckles is on a distinguished road
Working in OF 2.3.0, I have a model class foo which I'd like to set up to
  1. write special data at each time snapshot and
  2. read that same data when restarting
The data is not a field; it's a collection of statistics which the model calculates and requires for a restart, and I would prefer to keep it all together in a single file. The easiest / most appropriate way of achieving the "single file" objective seems to be having foo inherit from IOdictionary, since IOdictionary already implements all of the methods required to read and write arbitrary data types from/to a single file.

Is this the right way? Is there a better one? I don't want to re-invent the wheel...
knuckles 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
Software for Wind Field Simulation based on LiDAR data around Wind Turbines davidebner Main CFD Forum 1 July 19, 2015 22:28
''unknown radialModelType type Gidaspow'' PROBLEM WITH THE BED TUTORIAL AndoniBM OpenFOAM Running, Solving & CFD 2 March 25, 2015 18:44
How to average field data over y-direction zxj160 EnSight 15 November 29, 2012 17:54
Access raw field data (scalars, vectors) on mesh haakon OpenFOAM Programming & Development 3 September 25, 2012 10:01
chtMultiRegionFoam - exchange data between flow field and temperature phsieh2005 OpenFOAM Running, Solving & CFD 0 February 7, 2012 09:16


All times are GMT -4. The time now is 21:00.