|
[Sponsors] |
November 23, 2013, 09:59 |
Class Time constructor
|
#1 |
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
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; // } //} 2. Code:
417* writeControl_(wcTimeStep), Code:
//enum writeControls //wcTimeStep //wcRunTime //wcAdjustableRunTime* //wcClockTime* //wcCpuTime 3. Code:
418* writeInterval_(GREAT), //scalar writeInterval_;, GREAT ? 4. Code:
420* secondaryWriteInterval_(labelMax/10.0), //scalar secondaryWriteInterval_; |
|
November 24, 2013, 16:49 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Greetings maybee,
Given the range of questions you've been asking, I suggest that you read and study the following:
Code:
site:foam.sourceforge.net/docs/cpp/ labelMax Good luck! Best regards, Bruno
__________________
|
|
November 25, 2013, 06:38 |
|
#3 |
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
Hi,
first of all thanks for the links. Surely I'll read the programmers guide at some point and the forum and github link could come in handy, too. Furthermore I know a lot about the basics of c++ programming, google really does not help me with my questions and I just can't find the descriptions I am searching for (see QUestion 2,3,4). |
|
November 25, 2013, 16:05 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi maybee,
Quote:
Mmm... well, Google can help find things in some other situations, but I guess that Github would be better for finding code definitions in OpenFOAM's code. Best regards, Bruno
__________________
|
||
|
|
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 |