|
[Sponsors] |
September 17, 2011, 11:38 |
how does the I/O work in OpenFOAM?
|
#1 |
New Member
|
I am going to study detials of the I/O in OpenFoam.I have known the class of IOstream.However, I just can not figure out an idea.The frame must be too complex for me to learn about it.Hope that someone give me some datas about it.
|
|
September 17, 2011, 17:06 |
|
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
Most I/O is handled by the objectRegistry.
http://openfoamwiki.net/index.php/Op...objectRegistry If an object inherits the IOobject clsss, it has automatic input / output functions. Look for IOobject in the doxygen documentation. An IOobject has a writeData function that writes out its data to the time directory. IOobjects can also read their associated files to get their current state. Just for starters...
__________________
~~~ Follow me on twitter @DavidGaden |
|
September 18, 2011, 06:59 |
|
#3 |
New Member
|
Is there any differences between IOstream in the OpenFoam with that in the STL of c++?
|
|
September 18, 2011, 10:36 |
|
#4 |
New Member
|
Now I have found some clues about the I/O。Please ignore the third floor.Thank you very much.
|
|
September 19, 2011, 11:24 |
|
#6 | |
New Member
|
Quote:
However, the details of the I/O are all in the docs in the offical website. http://www.openfoam.com/docs/cpp/ You can find the class of IOobject in the website. In addition ,the IOstream in the OpenFOAM is not the same class in the standard library.The OpenFOAM has its IOstream by itself.As far as I know, one function of the class of IOstream is distinguishment of the type of data whatever in the standard library or in the OpenFoam .You can get more information in the offical website. |
||
September 19, 2011, 17:10 |
|
#7 | |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
Tomislav |
||
October 27, 2011, 04:29 |
|
#8 |
New Member
|
I have read the classes of IOobject.But i am confused.Can you explain to me that how does it work.For example in the case of icoFoam
|
|
October 27, 2011, 12:39 |
|
#9 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
You are asking a very general question, and we have given you some general answers. Maybe you'll get the answer you want if you ask something a little more specific.
What do you want to know. For example: How does icoFoam read from files? What is a "dictionary" file? Where is the "data" stored? and so on.
__________________
~~~ Follow me on twitter @DavidGaden |
|
Tags |
i/o |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 10 | May 13, 2018 19:28 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 7 | January 19, 2010 16:39 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
The OpenFOAM extensions project | mbeaudoin | OpenFOAM | 16 | October 9, 2007 10:33 |