109 "pistonDisplacement",
122 pistonDisplacement().value()/(deltaTValue() + VSMALL)
@ NO_REGISTER
Do not request registration (bool: false).
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
scalar deltaTValue() const noexcept
Return time step value.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void readDict()
Read the control dictionary and set the write controls etc.
const fileName & rootPath() const noexcept
The root path.
virtual bool read()
Read control dictionary, update controls and time.
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.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const scalar & value() const noexcept
An abstract class for the time description of the piston motion.
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.
virtual scalar theta() const =0
Return current engine time.
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.
dimensionedScalar pistonPosition() const
Return current piston position.
virtual scalar pistonPosition(const scalar theta) const =0
Calculate the piston position from the engine geometry.
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.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const word dictName("faMeshDefinition")
Different types of constants.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
const dimensionSet dimVelocity
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.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.