85 void timeAdjustment();
102 const fileName& systemName =
"system",
103 const fileName& constantName =
"constant",
142 return conRodLength_;
165 virtual scalar
theta()
const;
virtual void readDict()
Read the control dictionary and set the write controls etc.
A class for handling file names.
TypeName("crankConRod")
Runtime type information.
virtual scalar theta() const
Return current crank-angle.
void operator=(const crankConRod &)=delete
Disallow default bitwise assignment.
const dimensionedScalar & conRodLength() const
Return the engines connecting-rod length.
dimensionedScalar pistonPosition() const
Return current piston position.
An abstract class for the time description of the piston motion.
crankConRod(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.
scalar timeToDeg(const scalar t) const
Convert seconds to degrees (for given engine speed in RPM)
const dimensionedScalar & stroke() const
Return the engines stroke.
virtual scalar deltaTheta() const
Return crank-angle increment.
virtual bool read()
Read the controlDict and set all the parameters.
const dimensionedScalar & clearance() const
Return the engines clearance-gap.
Manage time in terms of engine RPM and crank-angle.
A class for handling words, derived from string.
const dimensionedScalar & bore() const
Return the engines bore.
const fileName & caseName() const
Return case name.
const fileName & rootPath() const
Return root path.
const dimensionedScalar & rpm() const
Return the engines current operating RPM.
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (CA deg)
scalar degToTime(const scalar theta) const
Convert degrees to seconds (for given engine speed in RPM)
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (CA deg) to real-time (s).
const word & name() const
Return const reference to name.
virtual scalar timeToUserTimeRatio() const
Ratio between real-time and user-time.
virtual ~crankConRod()
Destructor.
virtual word unit() const
Return time unit.
scalar thetaRevolution() const
Return current crank-angle translated to a single revolution.
const word dictName("noiseDict")