31 void Foam::engineTime::timeAdjustment()
50 Foam::engineTime::engineTime
80 rpm_(dict_.lookup(
"rpm")),
88 dict_.readIfPresent(
"bore", bore_);
89 dict_.readIfPresent(
"stroke", stroke_);
90 dict_.readIfPresent(
"clearance", clearance_);
94 startTime_ = degToTime(startTime_);
95 value() = degToTime(value());
134 return theta/(6.0*rpm_.value());
141 return t*(6.0*rpm_.value());
147 return timeToDeg(value());
173 return timeToDeg(deltaT().value());
181 conRodLength_.value()
182 + stroke_.value()/2.0
186 stroke_.value()*
::cos(degToRad(theta))/2.0
189 sqr(conRodLength_.value())
190 -
sqr(stroke_.value()*
::sin(degToRad(theta))/2.0)
202 pistonPosition(theta())
211 "pistonDisplacement",
213 pistonPosition(theta() - deltaTheta()) - pistonPosition().value()
224 pistonDisplacement().value()/(deltaT().value() + VSMALL)
231 return degToTime(theta);