how does the I/O work in OpenFOAM?
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.
|
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... |
Is there any differences between IOstream in the OpenFoam with that in the STL of c++?
|
Now I have found some clues about the I/O。Please ignore the third floor.Thank you very much.
|
Quote:
T. |
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. |
Quote:
Tomislav |
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
|
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. |
All times are GMT -4. The time now is 11:14. |