31 void Foam::engineTime::timeAdjustment()
49 Foam::engineTime::engineTime
128 return theta/(6.0*rpm_.
value());
135 return t*(6.0*rpm_.
value());
175 conRodLength_.
value()
176 + stroke_.
value()/2.0
205 "pistonDisplacement",
A class for handling file names.
virtual bool read()
Read the controlDict and set all the parameters.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Unit conversion functions.
virtual void readDict()
Read the control dictionary and set the write controls etc.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar pistonPosition() const
Return current piston position.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (CA deg) to real-time (s).
writeControls writeControl_
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
scalar theta() const
Return current crank-angle.
dimensionedScalar cos(const dimensionedScalar &ds)
A class for handling words, derived from string.
const word & constant() const
Return constant name.
scalar deltaTValue() const
Return time step value.
const scalar & value() const
Return const reference to value.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
Time(const word &name, const argList &args, const word &systemName="system", const word &constantName="constant")
Construct given name of dictionary to read and argument list.
scalar degToTime(const scalar theta) const
Convert degrees to seconds (for given engine speed in RPM)
dimensionedScalar sin(const dimensionedScalar &ds)
virtual void readDict()
Read the control dictionary and set the write controls etc.
scalar thetaRevolution() const
Return current crank-angle translated to a single revolution.
virtual bool read()
Read control dictionary, update controls and time.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedScalar pistonSpeed() const
Return piston speed for current time step.
scalar deltaTheta() const
Return crank-angle increment.
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (CA deg)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
scalar timeToDeg(const scalar t) const
Convert seconds to degrees (for given engine speed in RPM)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.
const dimensionSet dimVelocity