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.
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.
scalar degToTime(const scalar theta) const
Convert degrees to seconds (for given engine speed in RPM)
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)
scalar timeToDeg(const scalar t) const
Convert seconds to degrees (for given engine speed in RPM)
const scalar & value() const
Return const reference to value.
writeControls writeControl_
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
dimensionedScalar pistonPosition() const
Return current piston position.
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar pistonSpeed() const
Return piston speed for current time step.
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (CA deg)
const word & constant() const
Return constant name.
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.
dimensionedScalar sin(const dimensionedScalar &ds)
scalar thetaRevolution() const
Return current crank-angle translated to a single revolution.
virtual void readDict()
Read the control dictionary and set the write controls etc.
scalar deltaTValue() const
Return time step value.
scalar theta() const
Return current crank-angle.
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.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (CA deg) to real-time (s).
scalar deltaTheta() const
Return crank-angle increment.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dimensionSet dimVelocity