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;
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.
const fileName & caseName() const
Return case name.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
const fileName & rootPath() const
Return root path.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & name() const
Return const reference to name.
An abstract class for the time description of the piston motion.
virtual word unit() const =0
Return time unit.
virtual void readDict()
Read the control dictionary and set the write controls etc.
virtual scalar deltaTheta() const =0
Return engine time increment.
const IOdictionary & engineDict() const
Return the engine geometry dictionary.
virtual scalar theta() const =0
Return current engine time.
virtual ~engineTime()=default
Destructor.
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.
dimensionedScalar pistonPosition() const
Return current piston position.
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.
TypeName("engineTime")
Runtime type information.
dimensionedScalar pistonSpeed() const
Return piston speed for current time step.
virtual bool read()
Read the controlDict and set all the parameters.
A class for handling file names.
A class for handling words, derived from Foam::string.
const word dictName("faMeshDefinition")
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.