Vous êtes sur la page 1sur 5

9/23/12

Symbolic Math Toolbox - Videos & Examples

Acceleratingthepaceofengineeringandscience

Products&Services Products&Services

Solutions

Support

UserCommunity

Events

Company

SymbolicMathToolbox

Videos&Examples

Symbolic Math Toolbox

ModelingtheMotionofanAutomotivePiston
ThisexampleusesSymbolicMathToolboxtomodelthemotionofasimpleautomotivepiston.

Share

ContactSales ProductTrial PricingandLicensing

CalculatePistonHeight
Aschematicofthecrankandconnectingrod(includingrelevantdimensions)isbelow:

www.mathworks.com/products/symbolic/examples.html?file=/products/demos/symboli

1/5

9/23/12

Symbolic Math Toolbox - Videos & Examples

WewouldliketodefinepistonheightrelativetotheBDCposition.Theheightrelativetothecrankorigincanbecalculated throughtrigonometryas .AttheBDCposition,heightrelativetothecrankoriginis

.TocalculatepistonheightrelativetoBDCposition,wesimplysubtracttheterms. pistHeight:=(L,a,`&theta`)>a*cos(`&theta`)+ sqrt(L^2a^2*sin(`&theta`)^2)(La)

CalculateVolumeofPistonCylinder
ThemaximumvolumeinthepistonchamberoccurswhenthepistonisattheBDCposition.Atthatpositon,volumecanbe expressedas .Ingeneral,volumecanbeexpressedas ,whereHispistonheight

www.mathworks.com/products/symbolic/examples.html?file=/products/demos/symboli

2/5

9/23/12

Symbolic Math Toolbox - Videos & Examples

relativetoBDCposition(definedabove).Wedefineanexpressionforvolume,substitutingstrokelength(S)with2a: pistVol:=(L,a,`&theta`,B)>PI*(B/2)^2*(2*apistHeight(L,a,`&theta`))

CalculateSurfaceAreaofPistonCylinder

www.mathworks.com/products/symbolic/examples.html?file=/products/demos/symboli

3/5

9/23/12

Symbolic Math Toolbox - Videos & Examples

EvaluatePistonMotionforChangingAngularVelocities

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

Symbolic Math Toolbox - Videos & Examples

AnimatePistonMotion
Weanimatepistonmotionforonefullrevolution( = 0 t o = 2 ) forapistonwithconnectingrodlength(L)=150mm, crankradius(a)=50mm,andbore(B)=85mm.Thisanimationwascreatedinaseparatenotebookandcopiedintothis notebook.Theabilitytocopygraphicsandanimationsbetweennotebooksisusefulwhenuserswanttodocument supportinganalysiswithouthavingthecodedisplayedinthenotebook.

Thecodeusedtocreatethisanimationisavailablehere.

19942012TheMathWorks,Inc.

SiteHelp

Patents