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...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
const fileName & rootPath() const noexcept
The root path.
const fileName & caseName() const noexcept
The case name.
Time(const word &ctrlDictName, const argList &args, const bool enableFunctionObjects=true, const bool enableLibs=true, IOobjectOption::readOption rOpt=IOobjectOption::READ_MODIFIED)
Construct from argument list, reading from specified control dictionary name.
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,...
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.
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 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.
virtual scalar pistonPosition(const scalar theta) const =0
Calculate the piston position from the engine geometry.
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")
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
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.