CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Questions about several Class Descriptions (https://www.cfd-online.com/Forums/openfoam-programming-development/126681-questions-about-several-class-descriptions.html)

maybee November 23, 2013 09:06

Questions about several Class Descriptions
 
Hi,
when reading the following OpenFoam class descriptions I am not able to understand all:

1.Time: Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
2.Clock:Read access to the system clock with formatting.
3.CpuTime:Starts timing CPU usage and return elapsed time from start.
4.TimePaths: A class for addressing time paths without using the Time class.
5.objectRegistry: Registry of regIOobjects.
6.regIOobjects:regIOobject is an abstract class derived from IOobject to handle automatic object registration with the objectRegistry.
7.IOobject: IOobject defines the attributes of an object for which implicit objectRegistry management is supported, and provides the infrastructure for performing stream I/O.
Questions:

1.What means top-level objectRegistry?
2.what means with formatting?
3.Does "Starts timing CPU usage" mean the same as "Starts CPU usage"?
4.What is meant with "adressing time paths" and what is a "time path" in this context?
5.What is a ObjectRegistry class good for?
6.What is meant with "automatic object registration with the objectRegistry"?
7.What is meant with "objectRegistry management" ?
Hopefully some people with more programming knowledge will be able to teach me something here :) .

greetings
maybee

ngj November 24, 2013 12:14

Hi Maybee,

I will try to address some of your questions:

Ad. 1.: All objects such as volScalarField, surfaceVectorField, dictionaries, etc are registered in a database for easy access across the code. This is what is termed the object registry.

Ad. 3.: The time path is used to look up objects in the correct time folders when starting the simulations and for the model to know in which time folder output should be written.

Ad. 5.: See Ad. 1.

I do not have a clear answer on your other questions, as they seem to rely on some comment in a source code file, so I will not try to guess on the meaning of those.

Good luck,

Niels

wyldckat November 24, 2013 16:39

Greetings to all!

I hope that most of the questions regarding "objectRegistry" are answered here: http://openfoamwiki.net/index.php/Op...objectRegistry (big thanks to Marupio: http://openfoamwiki.net/index.php?ti...action=history)

More information is available from here: http://openfoamwiki.net/index.php/OpenFOAM_guide

Best regards,
Bruno

maybee November 25, 2013 06:40

Hi, thanks for the answers. I am sure they are helpful. I'll check that all later.


All times are GMT -4. The time now is 18:52.