|
[Sponsors] |
April 5, 2015, 01:30 |
can someone explain IO in OpenFOAM
|
#1 |
Member
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11 |
greetings to all.
i am in great interest of OF and have walked through the two guides (i.e. UG and PG), as well as some basics of C++. and also, i have looked into some source code (e.g. icoFoam). however, i found that the IO operating is of great difficulties and i nearly could not handle its mechanisms. here is something always makes me confused: (1) how does the runTime.write() works? i know runTime is an object of Class Time, but what about the function write()? how can i proceeding to that or add some code to that (if possible)? (2)how are the classes related, Time, objectRegistry, IOdictionary, IOobject, regIOobject, runTimeSelectionTables, addToRunTimeSelectionTable etc? and if certain user-defined volScalarField p is intended to be written at every writeInterval, how should i make the implementation? add it to the createFields.H file? or if i want to output myStream into a file at every writeInterval/timeStep? (3)i have went through the 'sample' utility. however, i think i should firstly overcome the two foregoing problems and then maybe i could develop mySample. thanks for the attention. any suggestion (or materials about how to IO in OF) will make my life easier. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 10 | May 13, 2018 18:28 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 05:36 |
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x | wyldckat | OpenFOAM Bugs | 18 | October 21, 2010 05:51 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 14:43 |
Summer School on Numerical Modelling and OpenFOAM | hjasak | OpenFOAM | 5 | October 12, 2008 13:14 |