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

Questions about several Class Descriptions

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 23, 2013, 09:06
Default Questions about several Class Descriptions
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 4
maybee is on a distinguished road
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
maybee is offline   Reply With Quote

Old   November 24, 2013, 12:14
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,532
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
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
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is online now   Reply With Quote

Old   November 24, 2013, 16:39
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,326
Blog Entries: 32
Rep Power: 72
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   November 25, 2013, 06:40
Default
  #4
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 4
maybee is on a distinguished road
Hi, thanks for the answers. I am sure they are helpful. I'll check that all later.
maybee is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
How to add a new class locally ville OpenFOAM 4 December 11, 2006 13:20
About UList and List class leosding OpenFOAM Running, Solving & CFD 1 December 1, 2005 23:52
Expanding a class fabianpk OpenFOAM 0 October 3, 2005 04:26


All times are GMT -4. The time now is 09:34.