Go to the documentation of this file.
94 void timeAdjustment();
110 const fileName& systemName =
"system",
111 const fileName& constantName =
"constant",
145 return conRodLength_;
168 virtual scalar
theta()
const;
const fileName & rootPath() const
Return root path.
A class for handling words, derived from Foam::string.
A class for handling file names.
TypeName("crankConRod")
Runtime type information.
virtual scalar deltaTheta() const
Return crank-angle increment.
virtual word unit() const
Return time unit.
const word dictName("faMeshDefinition")
const word & name() const
Return const reference to name.
const fileName & caseName() const
Return case name.
Manage time in terms of engine RPM and crank-angle.
const dimensionedScalar & conRodLength() const
Return the engines connecting-rod length.
virtual bool read()
Read the controlDict and set all the parameters.
virtual ~crankConRod()=default
Destructor.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (CA deg) to real-time (s).
const dimensionedScalar & clearance() const
Return the engines clearance-gap.
const dimensionedScalar & bore() const
Return the engines bore.
scalar thetaRevolution() const
Return current crank-angle translated to a single revolution.
virtual scalar theta() const
Return current crank-angle.
An abstract class for the time description of the piston motion.
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (CA deg)
scalar timeToDeg(const scalar t) const
Convert seconds to degrees (for given engine speed in RPM)
const dimensionedScalar & rpm() const
Return the engines current operating RPM.
const dimensionedScalar & stroke() const
Return the engines stroke.
scalar degToTime(const scalar theta) const
Convert degrees to seconds (for given engine speed in RPM)
dimensionedScalar pistonPosition() const
Return current piston position.
virtual void readDict()
Read the control dictionary and set the write controls etc.