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;
virtual ~engineTime()=default
Destructor.
A class for handling file names.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool read()
Read the controlDict and set all the parameters.
const word dictName("faMeshDefinition")
virtual void readDict()
Read the control dictionary and set the write controls etc.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
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.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from Foam::string.
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 & name() const noexcept
Return const reference to name.
virtual scalar deltaTheta() const =0
Return engine time increment.
virtual scalar theta() const =0
Return current engine time.
const fileName & rootPath() const noexcept
Return root path.
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual word unit() const =0
Return time unit.
Macros to ease declaration of run-time selection tables.
const fileName & caseName() const noexcept
Return case name.
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.