Manage time in terms of engine RPM and crank-angle. More...
Public Member Functions | |
TypeName ("crankConRod") | |
crankConRod (const word &name, const fileName &rootPath, const fileName &caseName, const fileName &systemName="system", const fileName &constantName="constant", const fileName &dictName="engineGeometry") | |
virtual | ~crankConRod ()=default |
scalar | degToTime (const scalar theta) const |
scalar | timeToDeg (const scalar t) const |
scalar | pistonPosition (const scalar theta) const |
const dimensionedScalar & | rpm () const |
const dimensionedScalar & | conRodLength () const |
const dimensionedScalar & | bore () const |
const dimensionedScalar & | stroke () const |
const dimensionedScalar & | clearance () const |
virtual scalar | theta () const |
virtual word | unit () const |
scalar | thetaRevolution () const |
virtual scalar | deltaTheta () const |
virtual scalar | userTimeToTime (const scalar theta) const |
virtual scalar | timeToUserTime (const scalar t) const |
virtual void | readDict () |
virtual bool | read () |
![]() | |
TypeName ("engineTime") | |
declareRunTimeSelectionTable (autoPtr, engineTime, dictionary,(const word &name, const fileName &rootPath, const fileName &caseName, const fileName &systemName, const fileName &constantName, const fileName &dictName),(name, rootPath, caseName, systemName, constantName, dictName)) | |
engineTime (const word &name, const fileName &rootPath, const fileName &caseName, const fileName &systemName="system", const fileName &constantName="constant", const fileName &dictName="engineGeometry") | |
virtual | ~engineTime ()=default |
const IOdictionary & | engineDict () const |
dimensionedScalar | pistonPosition () const |
dimensionedScalar | pistonDisplacement () const |
dimensionedScalar | pistonSpeed () const |
![]() | |
TypeName ("time") | |
Time (const word &ctrlDictName, const argList &args, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const word &ctrlDictName, const fileName &rootPath, const fileName &caseName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const dictionary &dict, const fileName &rootPath, const fileName &caseName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const fileName &rootPath, const fileName &caseName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const word &ctrlDictName, const argList &args, const word &systemName, const word &constantName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const word &ctrlDictName, const fileName &rootPath, const fileName &caseName, const word &systemName, const word &constantName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const dictionary &dict, const fileName &rootPath, const fileName &caseName, const word &systemName, const word &constantName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const fileName &rootPath, const fileName &caseName, const word &systemName, const word &constantName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
virtual | ~Time () |
fileName | path () const |
const dictionary & | controlDict () const |
virtual const fileName & | dbDir () const |
fileName | timePath () const |
IOstreamOption | writeStreamOption () const |
IOstream::streamFormat | writeFormat () const |
IOstream::compressionType | writeCompression () const |
IOstream::versionNumber | writeVersion () const |
const word & | graphFormat () const |
const Switch & | runTimeModifiable () const |
void | readModifiedObjects () |
word | findInstance (const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const |
word | findInstancePath (const fileName &directory, const instant &t) const |
word | findInstancePath (const instant &t) const |
virtual bool | writeTimeDict () const |
virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
bool | writeNow () |
bool | writeAndEnd () |
void | writeOnce () |
Ostream & | printExecutionTime (OSstream &os) const |
virtual word | timeName () const |
virtual label | startTimeIndex () const |
virtual dimensionedScalar | startTime () const |
virtual dimensionedScalar | endTime () const |
virtual stopAtControls | stopAt () const |
virtual bool | isAdjustTimeStep () const |
const functionObjectList & | functionObjects () const |
dlLibraryTable & | libs () const |
label | subCycling () const |
const TimeState & | prevTimeState () const |
virtual bool | run () const |
virtual bool | loop () |
virtual bool | end () const |
virtual bool | stopAt (const stopAtControls stopCtrl) const |
virtual void | setTime (const Time &t) |
virtual void | setTime (const instant &inst, const label newIndex) |
virtual void | setTime (const dimensionedScalar &newTime, const label newIndex) |
virtual void | setTime (const scalar newTime, const label newIndex) |
virtual void | setEndTime (const dimensionedScalar &endTime) |
virtual void | setEndTime (const scalar endTime) |
virtual void | setDeltaT (const dimensionedScalar &deltaT, const bool adjust=true) |
virtual void | setDeltaT (const scalar deltaT, const bool adjust=true) |
virtual TimeState | subCycle (const label nSubCycles) |
virtual void | subCycleIndex (const label index) |
virtual void | endSubCycle () |
functionObjectList & | functionObjects () |
virtual Time & | operator+= (const dimensionedScalar &deltaT) |
virtual Time & | operator+= (const scalar deltaT) |
virtual Time & | operator++ () |
virtual Time & | operator++ (int) |
const fileName & | rootPath () const |
const fileName & | caseName () const |
fileName & | caseName () |
![]() | |
clock () | |
double | elapsedClockTime () const |
double | clockTimeIncrement () const |
![]() | |
cpuTimePosix () | |
void | resetCpuTime () |
double | elapsedCpuTime () const |
double | cpuTimeIncrement () const |
![]() | |
TimePaths (const argList &args, const word &systemName="system", const word &constantName="constant") | |
TimePaths (const fileName &rootPath, const fileName &caseName, const word &systemName="system", const word &constantName="constant") | |
TimePaths (const bool processorCase, const fileName &rootPath, const bool distributed, const fileName &globalCaseName, const fileName &caseName, const word &systemName="system", const word &constantName="constant") | |
bool | distributed () const noexcept |
bool | processorCase () const noexcept |
bool | processorCase (const bool isProcessorCase) noexcept |
const fileName & | rootPath () const |
const fileName & | globalCaseName () const |
const fileName & | caseName () const |
fileName & | caseName () |
fileName | path () const |
fileName | globalPath () const |
fileName | relativePath (const fileName &input, const bool caseTag=false) const |
const word & | constant () const |
const word & | system () const |
fileName | caseConstant () const |
fileName | caseSystem () const |
fileName | constantPath () const |
fileName | systemPath () const |
instantList | times () const |
instant | findClosestTime (const scalar t) const |
![]() | |
TypeName ("objectRegistry") | |
objectRegistry (const Time &db, const label nObjects=128) | |
objectRegistry (const IOobject &io, const label nObjects=128) | |
virtual | ~objectRegistry () |
const objectRegistry & | thisDb () const noexcept |
const objectRegistry & | parent () const noexcept |
const Time & | time () const noexcept |
bool | isTimeDb () const noexcept |
HashTable< wordHashSet > | classes () const |
template<class MatchPredicate > | |
HashTable< wordHashSet > | classes (const MatchPredicate &matchName) const |
label | count (const char *clsName) const |
template<class MatchPredicate > | |
label | count (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
label | count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
label | count (const bool strict=false) const |
template<class Type , class MatchPredicate > | |
label | count (const MatchPredicate &matchName) const |
wordList | names () const |
wordList | names (const char *clsName) const |
template<class MatchPredicate > | |
wordList | names (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
wordList | names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
wordList | names () const |
template<class Type , class MatchPredicate > | |
wordList | names (const MatchPredicate &matchName) const |
wordList | sortedNames () const |
wordList | sortedNames (const char *clsName) const |
template<class MatchPredicate > | |
wordList | sortedNames (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
wordList | sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
wordList | sortedNames () const |
template<class Type , class MatchPredicate > | |
wordList | sortedNames (const MatchPredicate &matchName) const |
const objectRegistry & | subRegistry (const word &name, const bool forceCreate=false, const bool recursive=false) const |
template<class Type > | |
HashTable< const Type * > | lookupClass (const bool strict=false) const |
template<class Type > | |
HashTable< Type * > | lookupClass (const bool strict=false) |
const regIOobject * | cfindIOobject (const word &name, const bool recursive=false) const |
bool | found (const word &name, const bool recursive=false) const |
template<class Type > | |
bool | foundObject (const word &name, const bool recursive=false) const |
template<class Type > | |
const Type * | cfindObject (const word &name, const bool recursive=false) const |
template<class Type > | |
const Type * | findObject (const word &name, const bool recursive=false) const |
template<class Type > | |
Type * | findObject (const word &name, const bool recursive=false) |
template<class Type > | |
Type * | getObjectPtr (const word &name, const bool recursive=false) const |
template<class Type > | |
const Type & | lookupObject (const word &name, const bool recursive=false) const |
template<class Type > | |
Type & | lookupObjectRef (const word &name, const bool recursive=false) const |
label | getEvent () const |
bool | checkIn (regIOobject *io) const |
bool | checkIn (regIOobject &io) const |
bool | checkOut (regIOobject *io) const |
bool | checkOut (regIOobject &io) const |
bool | checkOut (const word &key) const |
void | clear () |
void | clearStorage () |
bool | erase (const iterator &iter) |
bool | erase (const word &key) |
label | erase (std::initializer_list< word > keys) |
label | erase (const UList< word > &keys) |
virtual void | rename (const word &newName) |
virtual bool | modified () const |
void | readModifiedObjects () |
virtual bool | readIfModified () |
virtual bool | writeData (Ostream &) const |
template<class Type > | |
const Type * | lookupObjectPtr (const word &name, bool recursive=false) const |
template<class Type > | |
Type * | lookupObjectRefPtr (const word &name, bool recursive=false) const |
template<class MatchPredicate > | |
Foam::HashTable< Foam::wordHashSet > | classesImpl (const objectRegistry &list, const MatchPredicate &matchName) |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::label | countImpl (const objectRegistry &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) |
template<class Type , class MatchPredicate > | |
Foam::label | countTypeImpl (const objectRegistry &list, const MatchPredicate &matchName) |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::wordList | namesImpl (const objectRegistry &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName, const bool doSort) |
template<class Type , class MatchPredicate > | |
Foam::wordList | namesTypeImpl (const objectRegistry &list, const MatchPredicate &matchName, const bool doSort) |
template<class MatchPredicate > | |
Foam::HashTable< Foam::wordHashSet > | classes (const MatchPredicate &matchName) const |
template<class MatchPredicate > | |
Foam::label | count (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::label | count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type , class MatchPredicate > | |
Foam::label | count (const MatchPredicate &matchName) const |
template<class Type > | |
Foam::label | count (const bool strict) const |
template<class MatchPredicate > | |
Foam::wordList | names (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::wordList | names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
Foam::wordList | names () const |
template<class Type , class MatchPredicate > | |
Foam::wordList | names (const MatchPredicate &matchName) const |
template<class MatchPredicate > | |
Foam::wordList | sortedNames (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::wordList | sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
Foam::wordList | sortedNames () const |
template<class Type , class MatchPredicate > | |
Foam::wordList | sortedNames (const MatchPredicate &matchName) const |
template<class Type > | |
Foam::HashTable< const Type * > | lookupClass (const bool strict) const |
template<class Type > | |
Foam::HashTable< Type * > | lookupClass (const bool strict) |
![]() | |
TypeName ("regIOobject") | |
regIOobject (const IOobject &io, const bool isTimeObject=false) | |
regIOobject (const regIOobject &rio) | |
regIOobject (const regIOobject &rio, bool registerCopy) | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
regIOobject (const IOobject &io, const regIOobject &rio) | |
virtual | ~regIOobject () |
bool | checkIn () |
bool | checkOut () |
virtual void | addWatch () |
bool | ownedByRegistry () const |
bool | store () |
void | release (const bool unregister=false) |
label | eventNo () const |
label & | eventNo () |
bool | upToDate (const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
void | setUpToDate () |
const dictionary * | findMetaData () const noexcept |
dictionary & | getMetaData () noexcept |
void | removeMetaData () |
virtual void | updateMetaData () |
virtual fileName | filePath () const |
bool | headerOk () |
Istream & | readStream (const word &, const bool valid=true) |
void | close () |
virtual bool | readData (Istream &) |
virtual label | addWatch (const fileName &) |
const labelList & | watchIndices () const |
labelList & | watchIndices () |
virtual bool | write (const bool valid=true) const |
virtual bool | global () const |
void | operator= (const IOobject &io) |
virtual bool | writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const |
![]() | |
TypeName ("IOobject") | |
IOobject (const IOobject &)=default | |
virtual | ~IOobject ()=default |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const IOobject &io, const objectRegistry ®istry) | |
IOobject (const IOobject &io, const word &name) | |
IOobject (const IOobject &io, readOption, writeOption) | |
autoPtr< IOobject > | clone () const |
autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
const objectRegistry & | db () const noexcept |
const Time & | time () const |
const word & | name () const noexcept |
const word & | headerClassName () const noexcept |
word & | headerClassName () noexcept |
const string & | note () const noexcept |
string & | note () noexcept |
bool | registerObject () const noexcept |
bool | registerObject (bool on) noexcept |
bool | globalObject () const noexcept |
bool | globalObject (bool on) noexcept |
unsigned | labelByteSize () const noexcept |
unsigned | scalarByteSize () const noexcept |
bool | isHeaderClassName (const word &clsName) const |
template<class Type > | |
bool | isHeaderClassName () const |
readOption | readOpt () const noexcept |
readOption | readOpt (readOption opt) noexcept |
writeOption | writeOpt () const noexcept |
writeOption | writeOpt (writeOption opt) noexcept |
word | group () const |
word | member () const |
const fileName & | rootPath () const |
const fileName & | caseName () const |
const fileName & | instance () const noexcept |
fileName & | instance () noexcept |
const fileName & | local () const noexcept |
fileName | path () const |
fileName | path (const word &instance, const fileName &local=fileName::null) const |
fileName | objectPath () const |
fileName | objectRelPath () const |
fileName | localFilePath (const word &typeName, const bool search=true) const |
fileName | globalFilePath (const word &typeName, const bool search=true) const |
IOstreamOption | parseHeader (const dictionary &headerDict) |
bool | readHeader (Istream &is) |
bool | readHeader (dictionary &headerDict, Istream &is) |
template<class Type > | |
bool | typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true) |
template<class Type > | |
void | warnNoRereading () const |
bool | writeHeader (Ostream &os) const |
bool | writeHeader (Ostream &os, const word &objectType) const |
void | writeHeader (dictionary &dict, IOstreamOption streamOpt) const |
void | writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const |
bool | good () const noexcept |
bool | bad () const noexcept |
InfoProxy< IOobject > | info () const |
void | operator= (const IOobject &io) |
readOption & | readOpt () noexcept |
writeOption & | writeOpt () noexcept |
bool & | registerObject () noexcept |
bool & | globalObject () noexcept |
template<> | |
bool | isHeaderClassName () const |
template<class StringType > | |
Foam::word | groupName (StringType base, const word &group) |
![]() | |
HashTable () | |
HashTable (const label size) | |
HashTable (Istream &is, const label size=128) | |
HashTable (const this_type &ht) | |
HashTable (this_type &&rhs) | |
HashTable (std::initializer_list< std::pair< Key, T >> list) | |
~HashTable () | |
label | capacity () const noexcept |
label | size () const noexcept |
bool | empty () const noexcept |
T & | at (const Key &key) |
const T & | at (const Key &key) const |
bool | found (const Key &key) const |
iterator | find (const Key &key) |
const_iterator | find (const Key &key) const |
const_iterator | cfind (const Key &key) const |
const T & | lookup (const Key &key, const T &deflt) const |
List< Key > | toc () const |
List< Key > | sortedToc () const |
List< Key > | sortedToc (const Compare &comp) const |
Foam::List< Key > | sortedToc (const Compare &comp) const |
List< Key > | tocKeys (const UnaryPredicate &pred, const bool invert=false) const |
Foam::List< Key > | tocKeys (const UnaryPredicate &pred, const bool invert) const |
List< Key > | tocValues (const UnaryPredicate &pred, const bool invert=false) const |
Foam::List< Key > | tocValues (const UnaryPredicate &pred, const bool invert) const |
List< Key > | tocEntries (const BinaryPredicate &pred, const bool invert=false) const |
Foam::List< Key > | tocEntries (const BinaryPredicate &pred, const bool invert) const |
label | countKeys (const UnaryPredicate &pred, const bool invert=false) const |
Foam::label | countKeys (const UnaryPredicate &pred, const bool invert) const |
label | countValues (const UnaryPredicate &pred, const bool invert=false) const |
Foam::label | countValues (const UnaryPredicate &pred, const bool invert) const |
label | countEntries (const BinaryPredicate &pred, const bool invert=false) const |
Foam::label | countEntries (const BinaryPredicate &pred, const bool invert) const |
bool | emplace (const Key &key, Args &&... args) |
bool | emplace_set (const Key &key, Args &&... args) |
bool | insert (const Key &key, const T &obj) |
bool | insert (const Key &key, T &&obj) |
bool | set (const Key &key, const T &obj) |
bool | set (const Key &key, T &&obj) |
bool | erase (const iterator &iter) |
bool | erase (const Key &key) |
label | erase (const HashTable< AnyType, Key, AnyHash > &other) |
label | erase (std::initializer_list< Key > keys) |
label | erase (InputIter first, InputIter last) |
label | erase (const FixedList< Key, N > &keys) |
label | erase (const UList< Key > &keys) |
Foam::label | erase (InputIter first, InputIter last) |
Foam::label | erase (const FixedList< Key, N > &keys) |
Foam::label | erase (const HashTable< AnyType, Key, AnyHash > &other) |
label | retain (const HashTable< AnyType, Key, AnyHash > &other) |
Foam::label | retain (const HashTable< AnyType, Key, AnyHash > &other) |
label | filterKeys (const UnaryPredicate &pred, const bool pruning=false) |
Foam::label | filterKeys (const UnaryPredicate &pred, const bool pruning) |
label | filterValues (const UnaryPredicate &pred, const bool pruning=false) |
Foam::label | filterValues (const UnaryPredicate &pred, const bool pruning) |
label | filterEntries (const BinaryPredicate &pred, const bool pruning=false) |
Foam::label | filterEntries (const BinaryPredicate &pred, const bool pruning) |
void | resize (const label sz) |
void | clear () |
void | clearStorage () |
void | swap (HashTable< T, Key, Hash > &rhs) |
void | transfer (HashTable< T, Key, Hash > &rhs) |
T & | operator[] (const Key &key) |
const T & | operator[] (const Key &key) const |
T & | operator() (const Key &key) |
T & | operator() (const Key &key, const T &deflt) |
void | operator= (const this_type &rhs) |
void | operator= (std::initializer_list< std::pair< Key, T >> rhs) |
void | operator= (this_type &&rhs) |
bool | operator== (const this_type &rhs) const |
bool | operator!= (const this_type &rhs) const |
this_type & | operator+= (const this_type &rhs) |
const_iterator_pair< const_key_iterator, this_type > | keys () const |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
iterator | end () noexcept |
const_iterator | end () const noexcept |
constexpr const_iterator | cend () const noexcept |
Ostream & | printInfo (Ostream &os) const |
Ostream & | writeKeys (Ostream &os, const label shortLen=0) const |
![]() | |
TimeState () | |
virtual | ~TimeState ()=default |
scalar | timeOutputValue () const |
label | timeIndex () const noexcept |
scalar | deltaTValue () const noexcept |
scalar | deltaT0Value () const noexcept |
dimensionedScalar | deltaT () const |
dimensionedScalar | deltaT0 () const |
bool | writeTime () const noexcept |
bool | outputTime () const noexcept |
![]() | |
dimensioned () | |
dimensioned (const dimensionSet &dims) | |
dimensioned (const dimensionSet &dims, const Foam::zero) | |
dimensioned (const dimensionSet &dims, const Foam::one) | |
dimensioned (const Type &val) | |
dimensioned (const dimensionSet &dims, const Type &val) | |
dimensioned (const word &name, const dimensionSet &dims, const Type &val) | |
dimensioned (const word &name, const dimensioned< Type > &dt) | |
dimensioned (const primitiveEntry &e) | |
dimensioned (const primitiveEntry &e, const dimensionSet &dims) | |
dimensioned (const word &name, const dictionary &dict) | |
dimensioned (const word &name, const dimensionSet &dims, const dictionary &dict) | |
dimensioned (const word &name, const dimensionSet &dims, const dictionary &dict, const word &entryName) | |
dimensioned (const word &name, const dimensionSet &dims, const Type &val, const dictionary &dict) | |
const word & | name () const |
word & | name () |
const dimensionSet & | dimensions () const |
dimensionSet & | dimensions () |
const Type & | value () const |
Type & | value () |
dimensioned< cmptType > | component (const direction d) const |
void | replace (const direction d, const dimensioned< cmptType > &dc) |
dimensioned< Type > | T () const |
bool | read (const dictionary &dict) |
bool | readIfPresent (const dictionary &dict) |
bool | read (const word &entryName, const dictionary &dict) |
bool | readIfPresent (const word &entryName, const dictionary &dict) |
Istream & | read (Istream &is, const bool readName=true) |
Istream & | read (Istream &is, const dictionary &readSet) |
Istream & | read (Istream &is, const HashTable< dimensionedScalar > &readSet) |
void | writeEntry (const word &keyword, Ostream &os) const |
dimensioned< cmptType > | operator[] (const direction d) const |
void | operator+= (const dimensioned< Type > &dt) |
void | operator-= (const dimensioned< Type > &dt) |
void | operator*= (const scalar s) |
void | operator/= (const scalar s) |
dimensioned (Istream &is) | |
dimensioned (const word &name, Istream &is) | |
dimensioned (const word &name, const dimensionSet &dims, Istream &is) | |
Additional Inherited Members | |
![]() | |
enum | writeControls { wcNone, wcTimeStep, wcRunTime, wcAdjustableRunTime, wcClockTime, wcCpuTime, wcUnknown } |
enum | stopAtControls { saEndTime, saNoWriteNow, saWriteNow, saNextWrite, saUnknown } |
enum | fmtflags { general = 0, fixed = ios_base::fixed, scientific = ios_base::scientific } |
![]() | |
enum | objectState : char { GOOD, BAD } |
enum | readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ } |
enum | writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 } |
enum | fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster } |
![]() | |
typedef HashTable< T, Key, Hash > | this_type |
typedef Key | key_type |
typedef T | mapped_type |
typedef T | value_type |
typedef Hash | hasher |
typedef T * | pointer |
typedef T & | reference |
typedef label | difference_type |
typedef label | size_type |
using | key_iterator = key_iterator_base< iterator > |
using | const_key_iterator = key_iterator_base< const_iterator > |
![]() | |
typedef Type | value_type |
typedef pTraits< Type >::cmptType | cmptType |
![]() | |
static autoPtr< engineTime > | New (const word &name, const fileName &rootPath, const fileName &caseName, const fileName &systemName="system", const fileName &constantName="constant", const fileName &dictName="engineGeometry") |
![]() | |
static autoPtr< Time > | New () |
static autoPtr< Time > | New (const fileName &caseDir) |
static autoPtr< Time > | New (const argList &args) |
static word | timeName (const scalar t, const int precision=precision_) |
![]() | |
static time_t | getTime () |
static const struct tm | rawDate () |
static std::string | dateTime () |
static std::string | date () |
static std::string | clockTime () |
![]() | |
static instantList | findTimes (const fileName &directory, const word &constantName="constant") |
static label | findClosestTimeIndex (const instantList &timeDirs, const scalar t, const word &constantName="constant") |
![]() | |
template<class Type > | |
static Type & | store (Type *p) |
template<class Type > | |
static Type & | store (autoPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (autoPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &&ptr) |
![]() | |
static bool | bannerEnabled () noexcept |
static bool | bannerEnabled (bool on) noexcept |
static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
template<class StringType > | |
static word | groupName (StringType base, const word &group) |
static word | group (const word &name) |
static word | member (const word &name) |
static word | scopedName (const std::string &scope, const word &name) |
static IOobject | selectIO (const IOobject &io, const fileName &altFile, const word &ioName="") |
static Ostream & | writeBanner (Ostream &os, const bool noSyntaxHint=false) |
static Ostream & | writeDivider (Ostream &os) |
static Ostream & | writeEndDivider (Ostream &os) |
![]() | |
static dimensioned< Type > | getOrDefault (const word &name, const dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | getOrDefault (const word &name, const dictionary &dict, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | getOrAddToDict (const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | getOrAddToDict (const word &name, dictionary &dict, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | lookupOrDefault (const word &name, const dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | lookupOrDefault (const word &name, const dictionary &dict, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | lookupOrAddToDict (const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | lookupOrAddToDict (const word &name, dictionary &dict, const Type &deflt=Type(Zero)) |
![]() | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
![]() | |
static const Enum< writeControls > | writeControlNames |
static const Enum< stopAtControls > | stopAtControlNames |
static int | printExecutionFormat_ |
static word | controlDictName |
![]() | |
static const Enum< fileCheckTypes > | fileCheckTypesNames |
static char | scopeSeparator |
static fileCheckTypes | fileModificationChecking |
static float | fileModificationSkew |
static int | maxFileModificationPolls |
![]() | |
void | adjustDeltaT () |
void | setControls () |
void | setMonitoring (const bool forceProfiling=false) |
![]() | |
bool | readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName) |
![]() | |
void | setBad (const string &s) |
![]() | |
bool | iterator_erase (node_type *&entry, label &index) |
![]() | |
static void | writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr) |
static void | writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr) |
![]() | |
const IOdictionary | dict_ |
![]() | |
label | startTimeIndex_ |
scalar | startTime_ |
scalar | endTime_ |
stopAtControls | stopAt_ |
writeControls | writeControl_ |
scalar | writeInterval_ |
label | purgeWrite_ |
FIFOStack< word > | previousWriteTimes_ |
label | subCycling_ |
bool | writeOnce_ |
autoPtr< TimeState > | prevTimeState_ |
sigWriteNow | sigWriteNow_ |
sigStopAtWriteNow | sigStopAtWriteNow_ |
![]() | |
label | timeIndex_ |
label | writeTimeIndex_ |
scalar | deltaT_ |
scalar | deltaT0_ |
scalar | deltaTSave_ |
bool | deltaTchanged_ |
bool | writeTime_ |
![]() | |
static fmtflags | format_ |
static int | precision_ |
static const int | maxPrecision_ |
![]() | |
static bool | masterOnlyReading = false |
Manage time in terms of engine RPM and crank-angle.
When crankConRod is in effect, the userTime is reported in degrees crank-angle instead of in seconds. The RPM to be used is specified in constant/engineGeometry
. If only a time conversion is required, the geometric engine parameters can be dropped or set to zero.
For example,
rpm rpm [0 0 -1 0 0] 2000; conRodLength conRodLength [0 1 0 0 0] 0.0; bore bore [0 1 0 0 0] 0.0; stroke stroke [0 1 0 0 0] 0.0; clearance clearance [0 1 0 0 0] 0.0;
Definition at line 64 of file crankConRod.H.
crankConRod | ( | const word & | name, |
const fileName & | rootPath, | ||
const fileName & | caseName, | ||
const fileName & | systemName = "system" , |
||
const fileName & | constantName = "constant" , |
||
const fileName & | dictName = "engineGeometry" |
||
) |
Definition at line 55 of file crankConRod.C.
References dimensioned::readIfPresent().
|
virtualdefault |
TypeName | ( | "crankConRod" | ) |
Foam::scalar degToTime | ( | const scalar | theta | ) | const |
Definition at line 116 of file crankConRod.C.
Foam::scalar timeToDeg | ( | const scalar | t | ) | const |
Definition at line 123 of file crankConRod.C.
|
virtual |
Implements engineTime.
Definition at line 166 of file crankConRod.C.
References Foam::cos(), Foam::degToRad(), Foam::sin(), Foam::sqr(), and Foam::sqrt().
|
inline |
Definition at line 132 of file crankConRod.H.
|
inline |
Definition at line 138 of file crankConRod.H.
|
inline |
Definition at line 144 of file crankConRod.H.
|
inline |
Definition at line 150 of file crankConRod.H.
|
inline |
Definition at line 156 of file crankConRod.H.
|
virtual |
Implements engineTime.
Definition at line 130 of file crankConRod.C.
|
virtual |
Implements engineTime.
Definition at line 136 of file crankConRod.C.
Foam::scalar thetaRevolution | ( | ) | const |
Definition at line 142 of file crankConRod.C.
|
virtual |
Implements engineTime.
Definition at line 160 of file crankConRod.C.
|
virtual |
Reimplemented from TimeState.
Definition at line 186 of file crankConRod.C.
|
virtual |
Reimplemented from TimeState.
Definition at line 192 of file crankConRod.C.
|
virtual |
Reimplemented from engineTime.
Definition at line 97 of file crankConRod.C.
References Time::readDict().
|
virtual |
Reimplemented from engineTime.
Definition at line 104 of file crankConRod.C.
References Time::read().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.