Go to the documentation of this file.
43 void Foam::crankConRod::timeAdjustment()
61 Foam::crankConRod::crankConRod
87 dict_.readIfPresent(
"bore", bore_);
88 dict_.readIfPresent(
"stroke", stroke_);
89 dict_.readIfPresent(
"clearance", clearance_);
93 startTime_ = degToTime(startTime_);
94 value() = degToTime(value());
96 deltaTSave_ = deltaT_;
125 return theta/(6.0*rpm_.value());
132 return t*(6.0*rpm_.value());
138 return timeToDeg(value());
168 return timeToDeg(deltaTValue());
176 conRodLength_.value()
177 + stroke_.value()/2.0
184 sqr(conRodLength_.value())
194 return degToTime(theta);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
A class for handling words, derived from Foam::string.
A class for handling file names.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
static constexpr const zero Zero
Global zero (0)
dimensionedScalar sin(const dimensionedScalar &ds)
virtual scalar deltaTheta() const
Return crank-angle increment.
virtual word unit() const
Return time unit.
const word dictName("blockMeshDict")
Unit conversion functions.
virtual bool read()
Read the controlDict and set all the parameters.
virtual bool read()
Read control dictionary, update controls and time.
virtual scalar userTimeToTime(const scalar theta) const
Convert the user-time (CA deg) to real-time (s).
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
bool readIfPresent(const dictionary &dict)
word name(const complex &c)
Return string representation of complex.
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.
Macros for easy insertion into run-time selection tables.
"adjustable" / "adjustableRunTime"
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
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)
scalar timeToDeg(const scalar t) const
Convert seconds to degrees (for given engine speed in RPM)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
writeControls writeControl_
defineTypeNameAndDebug(combustionModel, 0)
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.
dimensionedScalar cos(const dimensionedScalar &ds)