拓扑优化的经典,99行MATLAB程序实现整个拓扑优化,是学习拓扑优化概念及编程的绝好教材。
fullysolvedlarge-scalecomplianceminimizationprob-lemsusingadual-approachbutotherapproachesbasedongeneticalgorithmsorothersemi-randomapproachesrequirethousandsoffunctionevaluationsevenforsmallnumberofelementsandmustbeconsideredimpractical.Apartfromabovementionedapproaches,whichallsolvewellde nedproblems(e.g.minimizationofcom-pliance)anumberofheuristicorintuitionbasedap-proacheshavebeenshowntodecreasecomplianceorotherobjectivefunctions.Amongthesemethodsareso-calledevolutionarydesignmethods(seee.g.XieandSteven1997;Baumgartneretal.1992).Apartfrombe-ingveryeasytounderstandandimplement(atleastforthecomplianceminimizationcase),themainmoti-vationfortheevolutionaryapproachesseemstobethatmathematicallybasedorcontinuousvariableapproaches“involvesomecomplexcalculusoperationsandmathe-maticalprogramming”(citationfromLietal.1999)andtheycontain“mathematicalmethodsofsomecomplex-ity”(citationfromZhaoetal.1998)whereastheevo-lutionaryapproach“takesadvantageofpowerfulcom-putingtechnologyandintuitiveconceptsofevolutionprocessesinnature”(citationfromLietal.1999).Twothingscanbearguedagainstthis.First,theevolutionaryapproachesbecomecomplicatedthemselves,oncemorecomplexobjectivesthancomplianceminimizationareconsideredandsecond,asshowninthispaper,the“math-ematicallybased”approachesforcomplianceminimiza-tionaresimpletoimplementaswellandarecompu-tationallyequallye cient.Furthermore,mathematicalprogrammingbasedmethodscaneasilybeextendedtoothernon-complianceobjectivessuchasnon-self-adjointandmultiphysicsproblemsandtoproblemswithmultipleconstraints(e.g.Sigmund1999).Extensionsoftheevolu-tionaryapproachtosuchcasesseemmorequestionable.ThecompleteMatlabcodeisgivenintheAppendix.Theremainderofthepaperconsistsofde nitionanddiscussionoftheoptimizationproblem(Sect.2),com-mentsabouttheMatlabimplementation(Sect.3)fol-lowedbyadiscussionofextensions(Sect.4)andaconclu-sion(Sect.5).
2
Thetopologyoptimizationproblem
Anumberofsimpli cationsareintroducedtosimplifytheMatlabcode.First,thedesigndomainisassumedtoberectangularanddiscretizedbysquare niteelements.Inthisway,thenumberingofelementsandnodesissimple(columnbycolumnstartingintheupperleftcorner)andtheaspectratioofthestructureisgivenbytheratioofelementsinthehorizontal(nelx)andtheverticaldirec-tion(nely).1
1
Namesintype-writerstylerefertoMatlabvariablenamesthatdi erfromtheobvious(seetheMatlabcodeintheAppendix)
121
Atopologyoptimizationproblembasedonthepower-lawapproach,wheretheobjectiveistominimizecompli-ancecanbewrittenas
min N x:c(x)=UTKU=(xe)puTek0ue subjectto:V(x)
e=1 V0
=f :KU=F , :0<x≤x≤1
min(1)whereUandFaretheglobaldisplacementandforcevectors,respectively,Kistheglobalsti nessmatrix,ueandkearetheelementdisplacementvectorandsti nessmatrix,respectively,xisthevectorofdesignvariables,xminisavectorofminimumrelativedensities(non-zerotoavoidsingularity),N(=nelx×nely)isthenumberofelementsusedtodiscretizethedesigndomain,pisthepenalizationpower(typicallyp=3),V(x)andV0isthematerialvolumeanddesigndomainvolume,respectivelyandf(volfrac)istheprescribedvolumefraction.
Theoptimizationproblem(1)couldbesolvedusingseveraldi erentapproachessuchasOptimalityCriteria(OC)methods,SequentialLinearProgramming(SLP)methodsortheMethodofMovingAsymptotes(MMAbySvanberg1987)andothers.Forsimplicity,wewillhereuseastandardOC-method.
FollowingBendsøe(1995)aheuristicupdatingschemeforthedesignvariablescanbeformulatedasxnewe
=
max(xmin,x e m) ifx eBηe≤max(xmin,xe m), xeBηe
ifmax(xmin,xe m)<xeBηe<min(1,xe+m), min(1,xe+m)ifmin(1,xe+m)≤xeBη
e,
(2)wherem(move)isapositivemove-limit,η(=1/2)isanumericaldampingcoe cientandBeisfoundfromtheoptimalityconditionas
cB xe
e= V,
(3)
λ xe
whereλisaLagrangianmultiplierthatcanbefoundbyabi-sectioningalgorithm.
Thesensitivityoftheobjectivefunctionisfoundas c
x= p(xe)p 1uTek0ue.(4)
e
1. %%% A 99 LINE TOPOLOGY OPTIMIZATION CODE BY OLE SIGMUND, JANUARY 2000...% "A 99 line topology optimization code written in Matlab" % 112. % by...
Implementation of Compliance Minimization Structure Topology Optimization via ...2001: A 99 line topology optimization code written in Matlab. Struct. ...
% "A 99 line topology optimization code written in Matlab" % % by Ole Sigmund (2001), Structural and Multidisciplinary Optimization, % % Vol 21, pp....
the paper % A 99 line topology optimization code written in Matlab" by Ole Sigmund (2001), Structural and Multidisciplinary Optimization,% Vol 21, pp. ...
end Matlab Implementation (2) Structure Topology Optimization Chapter 9 Prof....(nely+1)]); -- Stiffness Code -- Compliant Code 4 FE Analysis [U,c...
A 3D interactive program Ole Sigmund, Mechanical Engineering, Solid Mechanics Technical University of Denmark A 99-line MATLAB code for topology optimization ...
the optimization code and run this changed code.... % Run Topology Optimization [femout,fem1]= ...Run TopOpt.m in Matlab to do the optimization....
? 通过对《 A 99 line topology optimization code written in Matlab 》一 文的学习, 对拓扑优化的理论原理以及实际的计算机方法实现都有了一定 的认识,了解了...
Phil Trans R Soc Lond Ser A: Math Phys Eng Sci 358: 211–227 Sigmund O (2001) A 99 line topology optimization code written in Matlab. Struct ...
Key words: OptiStruct, Lightweight, topology optimization 1 前言法兰盘轮毂...A 99 line topology optimization code written in Matlab. Struct Multidiscip ...
热门文档