Professional Documents
Culture Documents
Acceleratingthepaceofengineeringandscience
Products&Services Products&Services
Solutions
Academia
Support
UserCommunity
Events
Company
SymbolicMathToolbox
Videos&Examples
Share
CalculatePistonHeight
Aschematicofthecrankandconnectingrod(includingrelevantdimensions)isbelow:
www.mathworks.com/products/symbolic/examples.html?file=/products/demos/symboli
1/5
9/23/12
CalculateVolumeofPistonCylinder
ThemaximumvolumeinthepistonchamberoccurswhenthepistonisattheBDCposition.Atthatpositon,volumecanbe expressedas .Ingeneral,volumecanbeexpressedas ,whereHispistonheight
www.mathworks.com/products/symbolic/examples.html?file=/products/demos/symboli
2/5
9/23/12
CalculateSurfaceAreaofPistonCylinder
Surfaceareaisdefinedsimilartovolume.Thesurfaceareaofthecylinderheadandthepistonheadarebothapproximately ,whiletheareaofthewallis with2a: pistSA:=(L,a,`&theta`,B)>2*PI*(B/2)^2+PI*B*(2*apistHeight(L,a,`&theta`)) .Wedefineanexpressionforsurfacearea,againsubstituting(S)
www.mathworks.com/products/symbolic/examples.html?file=/products/demos/symboli
3/5
9/23/12
EvaluatePistonMotionforChangingAngularVelocities
Assumethecrankrotatesat1000rpm(105rad/sec)for1second,thensteadilyincreasesfrom1000to2000rpmfor1 second,andthenremainsat2000rpm.Wedefineapiecewisefunctiontodefineangularvelocity. angVel:=t>piecewise([t<=1,105],[t>1andt<=2,(210105)*t], [t>2,210])
Wecalculatecrankanglebyintegratingangularvelocity. angPos:=int(angVel(t),t)
plot(pistHeight(150,50,angPos),t=1..2,AxesTitles=["time(sec)", "Height(mm)"])
www.mathworks.com/products/symbolic/examples.html?file=/products/demos/symboli
4/5
9/23/12
AnimatePistonMotion
Weanimatepistonmotionforonefullrevolution( = 0 t o = 2 ) forapistonwithconnectingrodlength(L)=150mm, crankradius(a)=50mm,andbore(B)=85mm.Thisanimationwascreatedinaseparatenotebookandcopiedintothis notebook.Theabilitytocopygraphicsandanimationsbetweennotebooksisusefulwhenuserswanttodocument supportinganalysiswithouthavingthecodedisplayedinthenotebook.
Thecodeusedtocreatethisanimationisavailablehere.
19942012TheMathWorks,Inc.
SiteHelp
Patents
Trademarks
PrivacyPolicy
PreventingPiracy
Jointheconversation
www.mathworks.com/products/symbolic/examples.html?file=/products/demos/symboli
5/5