Go to the documentation of this file.
97 const fileName& systemName =
"system",
98 const fileName& constantName =
"constant",
110 const fileName& systemName =
"system",
111 const fileName& constantName =
"constant",
138 virtual scalar
theta()
const = 0;
const fileName & rootPath() const
Return root path.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
A class for handling file names.
const word dictName("faMeshDefinition")
dimensionedScalar pistonSpeed() const
Return piston speed for current time step.
const word & name() const
Return const reference to name.
const fileName & caseName() const
Return case name.
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.
virtual scalar theta() const =0
Return current engine time.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
An abstract class for the time description of the piston motion.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
const IOdictionary & engineDict() const
Return the engine geometry dictionary.
virtual void readDict()
Read the control dictionary and set the write controls etc.
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual word unit() const =0
Return time unit.
virtual scalar deltaTheta() const =0
Return engine time increment.
Macros to ease declaration of run-time selection tables.
virtual ~engineTime()=default
Destructor.
virtual bool read()
Read the controlDict and set all the parameters.
dimensionedScalar pistonPosition() const
Return current piston position.
TypeName("engineTime")
Runtime type information.
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.