82 (name, rootPath, caseName, systemName, constantName, dictName)
94 const fileName& systemName =
"system",
95 const fileName& constantName =
"constant",
96 const fileName& dictName =
"engineGeometry" 107 const fileName& systemName =
"system",
108 const fileName& constantName =
"constant",
109 const fileName& dictName =
"engineGeometry" 136 virtual scalar
theta()
const = 0;
A class for handling file names.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool read()
Read the controlDict and set all the parameters.
virtual void readDict()
Read the control dictionary and set the write controls etc.
dimensionedScalar pistonPosition() const
Return current piston position.
An abstract class for the time description of the piston motion.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const IOdictionary & engineDict() const
Return the engine geometry dictionary.
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")
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual ~engineTime()
Destructor.
A class for handling words, derived from string.
const fileName & caseName() const
Return case name.
engineTime(const word &name, const fileName &rootPath, const fileName &caseName, const fileName &systemName="system", const fileName &constantName="constant", const fileName &dictName="engineGeometry")
Construct from objectRegistry arguments.
const word dictName("particleTrackDict")
const word & name() const
Return const reference to name.
virtual scalar deltaTheta() const =0
Return engine time increment.
virtual scalar theta() const =0
Return current engine time.
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))
Declare runtime constructor selection table.
dimensionedScalar pistonSpeed() const
Return piston speed for current time step.
TypeName("engineTime")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual word unit() const =0
Return time unit.
Macros to ease declaration of run-time selection tables.
const fileName & rootPath() const
Return root path.
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.