88 crankConRod(
const crankConRod&) =
delete;
91 void operator=(
const crankConRod&) =
delete;
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 noexcept
The root path.
const fileName & caseName() const noexcept
The case name.
virtual void readDict()
Read the control dictionary and set the write controls etc.
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (CA deg).
const dimensionedScalar & bore() const
Return the engines bore.
const dimensionedScalar & stroke() const
Return the engines stroke.
virtual ~crankConRod()=default
Destructor.
virtual scalar theta() const
Return current crank-angle.
const dimensionedScalar & rpm() const
Return the engines current operating RPM.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (CA deg) to real-time (s).
scalar thetaRevolution() const
Return current crank-angle translated to a single revolution.
scalar degToTime(const scalar theta) const
Convert degrees to seconds (for given engine speed in RPM).
scalar timeToDeg(const scalar t) const
Convert seconds to degrees (for given engine speed in RPM).
const dimensionedScalar & conRodLength() const
Return the engines connecting-rod length.
virtual scalar deltaTheta() const
Return crank-angle increment.
TypeName("crankConRod")
Runtime type information.
const dimensionedScalar & clearance() const
Return the engines clearance-gap.
virtual word unit() const
Return time unit.
virtual bool read()
Read the controlDict and set all the parameters.
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.
dimensionedScalar pistonPosition() const
Return current piston position.
A class for handling file names.
A class for handling words, derived from Foam::string.
const word dictName("faMeshDefinition")
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 TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.