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

Class Time constructor

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 23, 2013, 09:59
Default Class Time constructor
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
Hi,

I have some question about a few lines of the Class Time constructor.

1.
Code:
397* libs_(),  //dlLibraryTable libs_; //- Any loaded dynamic libraries. Make sure 
                                                   //to construct before reading controlDict.         
398*             //operator () : T& operator() (const Key& key) inline   
                   //Find and return a hashedEntry, create it null if not present.
                   //template<class T, class Key, class Hash>
                   //inline T& Foam::HashTable<T, Key, Hash>::operator()(const Key& key)
                   //{
                   //iterator iter = this->find(key);
                   //if (iter == this->end())
                   //  {
                   //this->insert(key, T());
                   //return *find(key);
                   //   }
                   //else
                   // {
                   //return *iter;
                   // }
                   //}
First of all, have I found the right overloaded operator () ? If yes, what does the happen here?

2.
Code:
417* writeControl_(wcTimeStep),
with
Code:
//enum writeControls
       //wcTimeStep
       //wcRunTime
       //wcAdjustableRunTime*
       //wcClockTime*
       //wcCpuTime
What do the the single options in the enum mean?

3.
Code:
418* writeInterval_(GREAT),  //scalar writeInterval_;, GREAT ?
What is the variable GREAT and where to find it?

4.
Code:
420* secondaryWriteInterval_(labelMax/10.0),    //scalar secondaryWriteInterval_;
What is the variable labelMax and where to find it?
maybee is offline   Reply With Quote

 


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 06:55
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 04:35
Modeling in micron scale using icoFoam m9819348 OpenFOAM Running, Solving & CFD 7 October 27, 2007 00:36


All times are GMT -4. The time now is 00:24.