Public Member Functions | List of all members
crankConRod Class Reference

Manage time in terms of engine RPM and crank-angle. More...

Inheritance diagram for crankConRod:
Inheritance graph
[legend]
Collaboration diagram for crankConRod:
Collaboration graph
[legend]

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 dimensionedScalarrpm () const
 
const dimensionedScalarconRodLength () const
 
const dimensionedScalarbore () const
 
const dimensionedScalarstroke () const
 
const dimensionedScalarclearance () 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 ()
 
- Public Member Functions inherited from engineTime
 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 IOdictionaryengineDict () const
 
dimensionedScalar pistonPosition () const
 
dimensionedScalar pistonDisplacement () const
 
dimensionedScalar pistonSpeed () const
 
- Public Member Functions inherited from Time
 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 dictionarycontrolDict () const
 
virtual const fileNamedbDir () const
 
fileName timePath () const
 
IOstreamOption writeStreamOption () const
 
IOstream::streamFormat writeFormat () const
 
IOstream::compressionType writeCompression () const
 
IOstream::versionNumber writeVersion () const
 
const wordgraphFormat () const
 
const SwitchrunTimeModifiable () 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 ()
 
OstreamprintExecutionTime (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 functionObjectListfunctionObjects () const
 
dlLibraryTablelibs () const
 
label subCycling () const
 
const TimeStateprevTimeState () 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 ()
 
functionObjectListfunctionObjects ()
 
virtual Timeoperator+= (const dimensionedScalar &deltaT)
 
virtual Timeoperator+= (const scalar deltaT)
 
virtual Timeoperator++ ()
 
virtual Timeoperator++ (int)
 
const fileNamerootPath () const
 
const fileNamecaseName () const
 
fileNamecaseName ()
 
- Public Member Functions inherited from clock
 clock ()
 
double elapsedClockTime () const
 
double clockTimeIncrement () const
 
- Public Member Functions inherited from cpuTimePosix
 cpuTimePosix ()
 
void resetCpuTime ()
 
double elapsedCpuTime () const
 
double cpuTimeIncrement () const
 
- Public Member Functions inherited from TimePaths
 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 fileNamerootPath () const
 
const fileNameglobalCaseName () const
 
const fileNamecaseName () const
 
fileNamecaseName ()
 
fileName path () const
 
fileName globalPath () const
 
fileName relativePath (const fileName &input, const bool caseTag=false) const
 
const wordconstant () const
 
const wordsystem () const
 
fileName caseConstant () const
 
fileName caseSystem () const
 
fileName constantPath () const
 
fileName systemPath () const
 
instantList times () const
 
instant findClosestTime (const scalar t) const
 
- Public Member Functions inherited from objectRegistry
 TypeName ("objectRegistry")
 
 objectRegistry (const Time &db, const label nObjects=128)
 
 objectRegistry (const IOobject &io, const label nObjects=128)
 
virtual ~objectRegistry ()
 
const objectRegistrythisDb () const noexcept
 
const objectRegistryparent () const noexcept
 
const Timetime () const noexcept
 
bool isTimeDb () const noexcept
 
HashTable< wordHashSetclasses () const
 
template<class MatchPredicate >
HashTable< wordHashSetclasses (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 objectRegistrysubRegistry (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 regIOobjectcfindIOobject (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::wordHashSetclassesImpl (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::wordHashSetclasses (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)
 
- Public Member Functions inherited from regIOobject
 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 dictionaryfindMetaData () const noexcept
 
dictionarygetMetaData () noexcept
 
void removeMetaData ()
 
virtual void updateMetaData ()
 
virtual fileName filePath () const
 
bool headerOk ()
 
IstreamreadStream (const word &, const bool valid=true)
 
void close ()
 
virtual bool readData (Istream &)
 
virtual label addWatch (const fileName &)
 
const labelListwatchIndices () const
 
labelListwatchIndices ()
 
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
 
- Public Member Functions inherited from IOobject
 TypeName ("IOobject")
 
 IOobject (const IOobject &)=default
 
virtual ~IOobject ()=default
 
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, 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 &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const fileName &path, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const IOobject &io, const objectRegistry &registry)
 
 IOobject (const IOobject &io, const word &name)
 
 IOobject (const IOobject &io, readOption, writeOption)
 
autoPtr< IOobjectclone () const
 
autoPtr< IOobjectclone (const objectRegistry &registry) const
 
const objectRegistrydb () const noexcept
 
const Timetime () const
 
const wordname () const noexcept
 
const wordheaderClassName () const noexcept
 
wordheaderClassName () noexcept
 
const stringnote () const noexcept
 
stringnote () 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 fileNamerootPath () const
 
const fileNamecaseName () const
 
const fileNameinstance () const noexcept
 
fileNameinstance () noexcept
 
const fileNamelocal () 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< IOobjectinfo () const
 
void operator= (const IOobject &io)
 
readOptionreadOpt () noexcept
 
writeOptionwriteOpt () noexcept
 
boolregisterObject () noexcept
 
boolglobalObject () noexcept
 
template<>
bool isHeaderClassName () const
 
template<class StringType >
Foam::word groupName (StringType base, const word &group)
 
- Public Member Functions inherited from HashTable< regIOobject * >
 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
 
Tat (const Key &key)
 
const Tat (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 Tlookup (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)
 
Toperator[] (const Key &key)
 
const Toperator[] (const Key &key) const
 
Toperator() (const Key &key)
 
Toperator() (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_typeoperator+= (const this_type &rhs)
 
const_iterator_pair< const_key_iterator, this_typekeys () 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
 
OstreamprintInfo (Ostream &os) const
 
OstreamwriteKeys (Ostream &os, const label shortLen=0) const
 
- Public Member Functions inherited from TimeState
 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
 
- Public Member Functions inherited from dimensioned
 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 wordname () const
 
wordname ()
 
const dimensionSetdimensions () const
 
dimensionSetdimensions ()
 
const Type & value () const
 
Type & value ()
 
dimensioned< cmptTypecomponent (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)
 
Istreamread (Istream &is, const bool readName=true)
 
Istreamread (Istream &is, const dictionary &readSet)
 
Istreamread (Istream &is, const HashTable< dimensionedScalar > &readSet)
 
void writeEntry (const word &keyword, Ostream &os) const
 
dimensioned< cmptTypeoperator[] (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

- Public Types inherited from Time
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 }
 
- Public Types inherited from IOobject
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 }
 
- Public Types inherited from HashTable< regIOobject * >
typedef HashTable< T, Key, Hashthis_type
 
typedef Key key_type
 
typedef T mapped_type
 
typedef T value_type
 
typedef Hash hasher
 
typedef Tpointer
 
typedef Treference
 
typedef label difference_type
 
typedef label size_type
 
using key_iterator = key_iterator_base< iterator >
 
using const_key_iterator = key_iterator_base< const_iterator >
 
- Public Types inherited from dimensioned
typedef Type value_type
 
typedef pTraits< Type >::cmptType cmptType
 
- Static Public Member Functions inherited from engineTime
static autoPtr< engineTimeNew (const word &name, const fileName &rootPath, const fileName &caseName, const fileName &systemName="system", const fileName &constantName="constant", const fileName &dictName="engineGeometry")
 
- Static Public Member Functions inherited from Time
static autoPtr< TimeNew ()
 
static autoPtr< TimeNew (const fileName &caseDir)
 
static autoPtr< TimeNew (const argList &args)
 
static word timeName (const scalar t, const int precision=precision_)
 
- Static Public Member Functions inherited from clock
static time_t getTime ()
 
static const struct tm rawDate ()
 
static std::string dateTime ()
 
static std::string date ()
 
static std::string clockTime ()
 
- Static Public Member Functions inherited from TimePaths
static instantList findTimes (const fileName &directory, const word &constantName="constant")
 
static label findClosestTimeIndex (const instantList &timeDirs, const scalar t, const word &constantName="constant")
 
- Static Public Member Functions inherited from regIOobject
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 Public Member Functions inherited from IOobject
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 OstreamwriteBanner (Ostream &os, const bool noSyntaxHint=false)
 
static OstreamwriteDivider (Ostream &os)
 
static OstreamwriteEndDivider (Ostream &os)
 
- Static Public Member Functions inherited from dimensioned
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))
 
- Public Attributes inherited from HashTable< regIOobject * >
const typedef Tconst_pointer
 
const typedef Tconst_reference
 
- Static Public Attributes inherited from Time
static const Enum< writeControlswriteControlNames
 
static const Enum< stopAtControlsstopAtControlNames
 
static int printExecutionFormat_
 
static word controlDictName
 
- Static Public Attributes inherited from IOobject
static const Enum< fileCheckTypesfileCheckTypesNames
 
static char scopeSeparator
 
static fileCheckTypes fileModificationChecking
 
static float fileModificationSkew
 
static int maxFileModificationPolls
 
- Protected Member Functions inherited from Time
void adjustDeltaT ()
 
void setControls ()
 
void setMonitoring (const bool forceProfiling=false)
 
- Protected Member Functions inherited from regIOobject
bool readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName)
 
- Protected Member Functions inherited from IOobject
void setBad (const string &s)
 
- Protected Member Functions inherited from HashTable< regIOobject * >
bool iterator_erase (node_type *&entry, label &index)
 
- Static Protected Member Functions inherited from IOobject
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)
 
- Protected Attributes inherited from engineTime
const IOdictionary dict_
 
- Protected Attributes inherited from Time
label startTimeIndex_
 
scalar startTime_
 
scalar endTime_
 
stopAtControls stopAt_
 
writeControls writeControl_
 
scalar writeInterval_
 
label purgeWrite_
 
FIFOStack< wordpreviousWriteTimes_
 
label subCycling_
 
bool writeOnce_
 
autoPtr< TimeStateprevTimeState_
 
sigWriteNow sigWriteNow_
 
sigStopAtWriteNow sigStopAtWriteNow_
 
- Protected Attributes inherited from TimeState
label timeIndex_
 
label writeTimeIndex_
 
scalar deltaT_
 
scalar deltaT0_
 
scalar deltaTSave_
 
bool deltaTchanged_
 
bool writeTime_
 
- Static Protected Attributes inherited from Time
static fmtflags format_
 
static int precision_
 
static const int maxPrecision_
 
- Static Protected Attributes inherited from regIOobject
static bool masterOnlyReading = false
 

Detailed Description

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;
Source files

Definition at line 64 of file crankConRod.H.

Constructor & Destructor Documentation

◆ crankConRod()

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().

Here is the call graph for this function:

◆ ~crankConRod()

virtual ~crankConRod ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "crankConRod"  )

◆ degToTime()

Foam::scalar degToTime ( const scalar  theta) const

Definition at line 116 of file crankConRod.C.

◆ timeToDeg()

Foam::scalar timeToDeg ( const scalar  t) const

Definition at line 123 of file crankConRod.C.

◆ pistonPosition()

Foam::scalar pistonPosition ( const scalar  theta) const
virtual

Implements engineTime.

Definition at line 166 of file crankConRod.C.

References Foam::cos(), Foam::degToRad(), Foam::sin(), Foam::sqr(), and Foam::sqrt().

Here is the call graph for this function:

◆ rpm()

const dimensionedScalar& rpm ( ) const
inline

Definition at line 132 of file crankConRod.H.

◆ conRodLength()

const dimensionedScalar& conRodLength ( ) const
inline

Definition at line 138 of file crankConRod.H.

◆ bore()

const dimensionedScalar& bore ( ) const
inline

Definition at line 144 of file crankConRod.H.

◆ stroke()

const dimensionedScalar& stroke ( ) const
inline

Definition at line 150 of file crankConRod.H.

◆ clearance()

const dimensionedScalar& clearance ( ) const
inline

Definition at line 156 of file crankConRod.H.

◆ theta()

Foam::scalar theta ( ) const
virtual

Implements engineTime.

Definition at line 130 of file crankConRod.C.

◆ unit()

Foam::word unit ( ) const
virtual

Implements engineTime.

Definition at line 136 of file crankConRod.C.

◆ thetaRevolution()

Foam::scalar thetaRevolution ( ) const

Definition at line 142 of file crankConRod.C.

◆ deltaTheta()

Foam::scalar deltaTheta ( ) const
virtual

Implements engineTime.

Definition at line 160 of file crankConRod.C.

◆ userTimeToTime()

Foam::scalar userTimeToTime ( const scalar  theta) const
virtual

Reimplemented from TimeState.

Definition at line 186 of file crankConRod.C.

◆ timeToUserTime()

Foam::scalar timeToUserTime ( const scalar  t) const
virtual

Reimplemented from TimeState.

Definition at line 192 of file crankConRod.C.

◆ readDict()

void readDict ( )
virtual

Reimplemented from engineTime.

Definition at line 97 of file crankConRod.C.

References Time::readDict().

Here is the call graph for this function:

◆ read()

bool read ( )
virtual

Reimplemented from engineTime.

Definition at line 104 of file crankConRod.C.

References Time::read().

Here is the call graph for this function:

The documentation for this class was generated from the following files: