S. Edvardsson, M. Neuman, P. Edström
∗
Department of natural s ien es, MidSweden University, SE-871 88, Härnösand, Sweden
M. Gulliksson and H. Olin
Department of natural s ien es, Mid Sweden University, SE-851 70, Sundsvall, Sweden
The present work is on erned with exploiting a se ond orderdynami al system approa hfor
solvingequations. Theparti ularfo ushereisforrealvaluedlinearequationsystemshavingawide
eigenvalue spe trum,often en ounteredinappli ations as dis retization be omes dense. The Dy-
nami alFun tionalParti leMethod(DFPM)isdevelopedasaninterdis iplinary methodbetween
physi sandnumeri almathemati s.Themethodisthis ontextoptimizedtotakeadvantageof riti-
allydampedos illatorsresultingingoodperforman e. Convergen eisrea hedwhenalleigenvalues
are eitherpositiveor negative. The ase with omplexeigenvalues isalsostudied. Theparti ular
stru tureofthe matrixturnsoutto beunimportantfor onvergen e. Furthermore,DFPMis not
limitedwithrespe ttoaspe tralradiusasis ommonforiterativemethods.Arstorderdynami al
systemisalsostudiedand ompared. Itsperforman eisnot ompetitivein omparisonwithDFPM.
Theperforman eofDFPMs alesequallytothewellknown onjugategradient method,butla ks
someof itslimitationsimposedbymatrixsymmetry. Several physi altest examplesare provided
and omparedwithvariousexistentnumeri alapproa hes.
I. INTRODUCTION
Parti le methodsin omputational physi s
Thenumeri altreatmentthroughtheappli ation ofparti lemethods hasbeenaverya tiveresear hareaduring
many years but these methods have still not been exploited to their full potential [1, 2℄. Parti le methods are
on eptuallyattra tivesin etheyaresprungfromtheveryfundamental oreofphysi s. Thebasi assumptionisthat
allmatter onsistsofintera tingparti lesthatobey ertainlawsofmotion(su hasNewton's se ondlaw). Therst
parti lemethodsweredevelopedsoonafterthebirthoffast omputerssome40yearsago. Afewexamplesofparti le
treatmentsofdynami alobje tsin elestialme hani saregivenin[3,4℄. Thelong-termevolutionofdynami alobje ts
intheSolarsystem(orasmallgalaxy) anreadilybe al ulated[5℄. Thedis reteelementmethod(DEM)isamongthe
earlymethodswhi happearedinthe1970s[6℄. TodayDEMisoftenappliedtotreatengineeringproblemsingranular
anddis ontinuousmaterials. Anotherrelativelyearlyexampleisthemole ulardynami ssimulationte hnique(MDS)
that was developed during the 1980s. Today, millions of mole ules oratoms are more or less non-problemati to
simulateduetothesimpli ityofparallelizingtheN-bodyalgorithms[7℄. Smoothed-parti lehydrodynami s(SPH)is
yet anotherparti le te hniquethat dealswith simulations ofuids. SPH wasoriginally developed by Lu y [8℄ and
GingoldandMonaghan[9℄todealwith3Dproblemsinastrophysi s. SPHhasalsobeenadoptedtosolidme hani s
to study impa t fra tures in solids. The method is in this ontext abbreviated SPAM (smooth parti le applied
me hani s)[10℄. TherearealsoMDS-likeparti lemethods(HybridLatti eParti leModeling),whereLennard-Jones
potentialsorsimilar intera tion potentialsare utilized forquasi-parti les[11℄. Inthelimit whenthe quasi-parti les
approa h the atomi s ale the parti le method be omes an ordinary MDS method. The Car-Parrinello method is
anextremelywellknownparti le method fordynami al omputationof ele troni quantum statesduring mole ular
dynami ssimulation[12℄. Alsoindensityfun tionaltheory,parti lemethodshavebeenappliedto omputeele troni
states, see agoodreview by Payneet al. [13℄. Parti le methods haveoften beenfound attra tivefor runningfast
omputer graphi s of deformable obje ts[14, 15℄. A quite omprehensivereview onvarious parti le approa hesis
providedbyLiandLiu[2℄.
Inare entpaperbyEdvardssonetal. [16℄,itwasarguedthattheparti le on eptismoregeneralthanitsstandard
usage in physi s or me hani s. Inspired by the onne tionbetweenparti les in physi s and theirusual translation
into dierential equations,the opposite possibility to translatemathemati al problemsinto aquite generalparti le
s hemewasre ognized. Thedynami alfun tionalparti lemethod(DFPM)wasdeveloped. Edvardssonetal. applied
DFPMto eigenvalueproblems(S hrödingerequation)and ompared its omputationalspeedtostandardnumeri al
∗
Ele troni address: sverker.edvardssonmiun .se
librariessu hasARPACKandLAPACK.Forlargematrixsizesitwasseenthattheparti lemethodwasmu hmore
e ientin thedeterminationofafeweigenvaluesandeigenve tors. The onjugategradientmethodwastestedlater
dealingwiththesameS hrödingerproblemandfoundtobesome50%lesse ientthanDFPM[17℄. DFPMwasalso
demonstratedtoworkwellforthenon-linearS hrödingerequation[16℄. Convergen epropertieswereaddressed,and
in analogywithmany-parti le systemsin me hani s,theexisten eof apotentialminimumissu ientto guarantee
onvergen e.However,itwasre ognizedempiri allythatthereexistmany aseswhere onvergen estillo ursdespite
thela kofapotential. Thisfa t,andthedetailsrelatedto omputational omplexity,wasleftoutforfurtherstudies.
These detailswill bestudied in thepresentwork forthespe ial,but important, aseoflinearequationsystems. As
we shallsee theDFPM algorithm is attra tivedue to several reasons. The mostinterestingpoints arerelated to a
surprisingly generalappli abilityand robustness, omputational omplexity, easinessof implementation, interesting
Hamiltoniandynami sandstabilityofsymple ti integration.
Relatedmathemati al methods
Although the se ond order dynami al systemapproa hprovided by thepresentwork to solve linearproblems is
novel, there are related ideas given previouslyin mathemati s. Themost ommon method is the formulation of a
rstorderdynami alsystem,i.e., thesetup:
du/dt = F(u), u(0) = u 0. Asdu/dt → 0
theoriginal problemF(u) = 0
is solved. Thus the idea is to solve a damped time dependent problem to identify the stationary solution. First
orderdynami alsystemshavefrequentlybeenappliedtosolvevariouskindsofequations
F(u) = 0
,bothasageneralapproa handintendedforspe i mathemati alproblems. Anexampleofthisisthesolutionofanellipti PDEsu h
astheheatequation,seeSin ove andMadsen[18℄. Sin ethestationarystateissought,theevolutionofthesystem
is onsidered totakepla e inarti ial time. The on eptofarti ial timeis furtherdis ussedand analyzedin [19℄.
Otherworksareforexamplethedampedharmoni os illatorin lassi alme hani s,thedampedwaveequation,[20℄
andtheheavyballwithfri tion[21℄. Theseproblem settingsarespe i mathemati alexamplesofphysi al systems
andnotdevelopedtosolveequationsingeneral. In[22,23℄,iterativepro essestosolve,e.g.,eigenvalueproblemsare
onsideredas(gradientdriven)dynami alsystems. So alled titioustimeisusedin[24℄whereaDiri hletboundary
valueproblem ofquasilinearellipti equation is solvedbyusing the on eptof a titioustimeintegration method.
The inverse problem of re overing a distributed parameter model is onsidered in [19℄ using the rst order ODE
attainedfrom thene essaryoptimality onditionsoftheinverseproblem. Anotherapproa h isthat of ontinuation,
see [25℄for anintrodu tion, where
F(u) = 0
is embedded in afamilyofproblems dependingonaparameters
, i.e.,F(u; s) = 0
. ThesolutiontoF(u) = 0
isfoundbysolvingasequen eofproblemsforvaluesofs
de reasingfrom1
to0
. Further,seeNo edalandWright[26℄ foradis ussioninthe ontextofoptimization.Outlineofthe paper
Thepaperstartswith anintrodu tionto thegeneralideasbehindDFPMand itsobvious onne tionsto lassi al
me hani s. The versatility of DFPM is emphasized. The paper then ontinues to treat spe i ally the
Ax = b
problem. The onvergen eand onvergen erateis investigated. This analysisis expe tedto beusefulalsolaterfor
otherrelatedproblems(e.g. eigenvalueproblems). The onne tionswiththeparti les hemeinphysi sisemphasized
throughout the arti le. It turns out that physi al arguments and many-parti leviews provide importantshort uts
in thederivations andanalyzes. A omparisonbetweenDFPMand therelatedrst orderdynami al systemisalso
made. Thearti le is on luded with numeri al examplesand omparisons with existent methods in the numeri al
linearalgebraliterature. Inorder toenhan e readabilityof thepaperwehaveprovidedanAppendix where several
relateddetailsaregiven.
II. THEDYNAMICALFUNCTIONAL PARTICLE METHOD
In the following we makea brief summary for the reader about DFPM as a quite general approa h for solving
equations. Let
F
beafun tional andu = u(x), u : X → R k , k ∈ N
and onsider theabstra t equationF(u) = 0
(1)that ouldbe,e.g.,afun tional,dierential,integralorintegro-dierentialequation. Further,atime parameter
t
isintrodu edthat belongs tosome(unbounded)interval
T
andadynami alsysteminu = u(x, t), u : X × T → R k is
formedas
F(u) = η¨u + µ ˙u.
(2)wherethedotsarethestandardnotationfortimederivativesin me hani s. Thesymbols
η = η(x, t)
andµ = µ(x, t)
are themass anddamping parameters,respe tively. The main ideais to solvethe originalequation (1) by instead
solving(2) in su h away that
˙u, ¨ u → 0
whent → T, T < ∞
, i.e.,u(x, t)
approa hu(x)
ast → T
. Further, twoindependentinitial onditionsareneededfor(2)tobewelldened. Inordertoobtainanumeri alsolutionof
u(x, t)
,equation(2) isdis retizedsu hthat
u i (t)
approximatesu(x i , t)
andµ i (t) = µ(x i , t), η i (t) = η(x i , t)
fori = 1, . . . , n
.Thedis retizationismadeherewithnitedieren es,butitispossibletousebasisfun tions,niteelements,orany
othermethodof dis retization.Afteranitedieren edis retizationwehavethefollowingequations
F i (u 1 . . . , u n ) = η i u ¨ i + µ i ˙u i , i = 1, . . . , n
(3)orresponding to equation (2). This dis retized se ond order dynami al systemis a systemof ordinarydierential
equations. We all theapproa h for solving (1) using (3) the Dynami al Fun tional Parti le Method, DFPM. We
emphasize that the idea behind DFPM is quite versatile. There is for example no linearrestri tion built into the
methodsonon-linearequations(fun tionals)are ertainlypossibletoatta k. However,inthisworkweshallinvestigate
onlythespe ial,but important, aseofsystemsoflinearequations.
A. Conne tion betweenDFPMand lassi al me hani s
Itis learthatDFPMisaparti lemethodbelongingtothedomainof lassi alme hani s. Anaturalinterpretation
ofthefun tional
F(u)
isthat afterdis retization itmaybeviewedasave torfor e eld. Considerthe spe ial ase whenthedis retizedversionofalineardierentialequationredu eston
linearequations,i.e.,Ax = b
. Onepossibility isthentowritethefun tionalasF(x) = b − Ax
. Thisfor eeldisthusn
-dimensional. Adynami alparti lemethod anbe onstru tedbyviewingthisastheproblem to determinethepositionsofn
parti leswhere thefor e iszero,i.e.,theequilibriumpointofa onservativemany-parti lesystem. Thatis,if
F(x)
is onservativeweknowthatthere exists a orrespondings alar potentialΦ (x)
. The many-parti le system will tend to equilibrate towardsone of its minimumpointsifdissipationispresent[27℄. Inthisparti ular asetheDFPMequationis simplygivenbyb − Ax = η¨x + µ ˙x
wherethedissipationtermis
µ ˙x
. Inthe aseofasymmetri matrixA
,amany-parti lepotentialΦ (x)
doesexistandisexpli itlygivenby
Φ (x) = 1 2
X
i
A ii x 2 i + X
i<j
A ij x i x j − X
i
b i x i = 1
2 x T Ax − b T x
(4)be auseea h omponent
k
ofF(x)
isgivenbyF k = − ∂Φ
∂x k
= b k − A kk x k − X
i6=k
A ki x i
whi his ompletely onsistentwithea h omponentof
F(x) = b − Ax
. At thesolutionx
, allthe omponentfor esfulll
F k = 0
andthusalsothegradientofΦ (x)
iszero. This riti alpoint orrespondstoaminimumifA
ispositivedeniteand amaximumif
A
isnegativedenite. Obviously,ifA
isnegativedeniteone aninsteadusetheansatzF(x) = Ax − b
. However,ifA
isnonsymmetri ,apotentialfun tion doesnot exist[17℄, soapossible onvergen eof thedynami alsystemneedstobeanalyzedinfurther detail. Also,the onvergen erateisnotavailablebytheabovepotentialanalysis. Theseimportantissueswillbeaddressedin thefollowing.
III. DFPMFORTHE
Ax = b
PROBLEMConsiderthefollowingdis retizedintera tionfun tional
F = b − Ax
,whereA ∈ R n×n andb ∈ R n. Inthis
aseF
F
orrespondtotheordinaryresidualinnumeri allinearalgebra. Tosimplifythepresentationwemaketheadditional
assumptionthattheeigenvalues
λ (A)
areallrealandpositive. Other aseswillbedealtwithaswegoon. Topro eed,onsiderthese ondorderdynami alsystem:
F(x 1 , x 2 , . . . , x n ) = b − Ax = η¨x + µ ˙x
(5)where
µ ˙x
isthedissipationterm. Thereals alarparametersη > 0
(mass)andµ > 0
(damping)arehereassumedtobe onstants. Wethussuggestaparti lemethodwherethepositions
x 1 , x 2 , . . . , x nareoptimizedinordertoapproa h
theuniqueequilibriumpoint,i.e.,
F(x 1 , x 2 , . . . , x n ) → 0
ast → T
. Inpra ti e,onemaystartwitharandomansatzfortheve tor
x (0)
andlet˙x (0) = 0
. Theparti ularnumeri altimeintegration,usingarealvaluedtimestep∆t > 0
tomovetheve tors
x (t)
and˙x (t)
,isheremadebythe ostee tiveandstablesymple ti Euler[2830℄:(
˙x (t + ∆t) = ˙x (t) +
1
η b − 1 η Ax (t) − µ η ˙x (t)
∆t x (t + ∆t) = x (t) + ˙x (t + ∆t) ∆t.
(6)
Firstly,itisimportanttoestablishthata onvergentresultsolvestheoriginalproblem
Ax = b
. Ifx (t + ∆t) ≈ x (t)
,the se ond equation of (6) gives that
˙x (t + ∆t) ≈ 0
. If˙x (t + ∆t) ≈ ˙x (t)
, the rst equation of (6) gives thatµ ˙x (t) ≈ b − Ax (t)
. Sin e˙x (t) ≈ ˙x (t + ∆t)
and˙x (t + ∆t) ≈ 0
,weindeedhavethatAx (t) ≈ b
.Admittedly, the algorithm (6) is not parti ularly a urate but its stability and a ura y is still superior to the
Eulermethod [29℄. Further,it shouldbenotedthathigh numeri ala ura yofthemany-parti lesystemduringits
evolutiontowardsthestationary stateis not ne essary. Theonlydesiredpropertyisthat theapproa htowardsthe
equilibriumpointismadeas fastaspossible.
Thefeatures ofinterestarethus: 1)goodnumeri alstabilityallowingalargetime step
∆t
,and 2)appli ation of a heapalgorithminordertospendlittleCPUtimeperiteration. Thesefeatures areallprovidedbythesymple tiintegrationmethod[28,30,31℄. Othersymple ti algorithmsmaystillbeofinterest,amongwhi htheVerlet-Störmer
methodisoneofthemost ommon[32℄. However,althoughthis methodismorea urate,itwasfoundthatnogain
ouldbeobtained. Thenumberofiterationstowards onvergen eissimilar(ifnotthesame)butthe ostperiteration
ishigher.
Inorder tobeexibleintheanalysisbelow,bothparameters
η
andµ
arekeptthroughoutthederivations,i.e.,we shallnotlete.g.η = 1
as suggestedbya ontinuumview. Thereasonforthisis that,possibly,adis retenumeri alalgorithmthat isnonlinear(as forexamplehigherorder symple ti algorithmsorRunge-Kuttamethods) anresult
inperforman epropertiesdependingonboth
η
andµ
. Su hanexampleisprovidedlater(A.58). Belowwemaketheassumptionthatthematrix
A
isdiagonalizablesin eitsimpliestheanalysistremendously.A. Optimalparametersfor asingle os illator
Inorderto identifyoptimalparameters
µ, η
and∆t
in (6)letusrewrite(5)bymakinga hangeof basisintoA
'seigenve tors. Thatis,
b → c, x → u, A → Λ A =
diag(λ 1 , λ 2 , ..., λ n )
. Wethenobtainthefollowingde oupledsystemofequations:
c − Λ A u = η¨ u + µ ˙u.
(7)Aftera hangeofvariables
w i = u i − c i /λ i wehave
−λ 1 w 1 = η ¨ w 1 + µ ˙ w 1
−λ 2 w 2 = η ¨ w 2 + µ ˙ w 2
.
.
. .
.
.
.
.
.
−λ n w n = η ¨ w n + µ ˙ w n .
(8)
Thereadershould notethat (8)is onlyusedfortheanalysis ofoptimalparameters,i.e.,(8) should notbe onfused
withthea tual omputationalalgorithm(6). Thegreatadvantageof(8)isthatthewholeproblemhasbeenredu ed
to theanalysis of
n
damped os illatorsin lassi alme hani s. Now onsiderthe symple ti timeintegrationof one su hos illator,−λw = η ¨ w + µ ˙ w
:(
˙
w (t + ∆t) = ˙ w (t) +
− λ η w (t) − µ η w (t) ˙
∆t w (t + ∆t) = w (t) + ˙ w (t + ∆t) ∆t.
(9)
Theiterations an onvenientlybesummarizedontheform
z n+1 = Bz n:
z n+1 = w n+1
˙ w n+1
=
"
1 − λ η ∆t 2
1 − µ η ∆t
∆t
− λ η ∆t 1 − µ η ∆t
# w n
˙ w n
.
(10)One analso write
z n+1 = B n z 0. If weapply the similarity transformationsu
h that B = C −1 Λ B C
where Λ B =
diag
(α 1 , α 2 )
,wenotethat onvergen eisa hievedif|α 1,2 | < 1.
Aminimization ofthemaximumeigenvaluegivesthe optimal onvergen erate. Thetwoeigenvaluesareexpli itlygivenby:α 1,2 = 1 − λ
2η ∆t 2 − µ
2η ∆t ± ∆t
2η pζ
(11)where
ζ = (µ + λ∆t) 2 − 4ηλ
. There are three possible ases, but only twoare of interest. The overdamped ase(
ζ > 0
) is well known in me hani s [33℄ to onlyslowlyrestore thesystem tothe equilibrium point and istherefore dis arded. Ideally,wehavethe riti allydamped ase(ζ = 0
), but we annot expe t alltheos illatorsin (8) to be riti allydampedsotheunderdamped ase(ζ < 0
)willalsobeofinterest. Theproblemisthentominimizeζ
forallofthem. Thebest solutionforasingleos illatorisgivenby
(µ + λ∆t) 2 = 4ηλ
. Sin eλ > 0
wendthatµ + λ∆t = 2pηλ
(12)In this ase, both eigenvalues are simply given by
α 1,2 = 1 − pλ/η∆t
so∆t opt = pη/λ
and∆t max = 2pη/λ
.The optimal hoi e of time step,
∆t opt, makesthe algorithm to nish in just one iteration. This is great for this
singleos illator. However,the problem (5) orrespondsto manyos illators asgiven by(8), somostos illators will
needmu hmorethanonesingleiterationto onverge. Inthe aseofunderdampingone ansimilarlyasaboveshow
that
|α 1,2 | 2 = 1 − (µ/η) ∆t
, so an underdamped os illator onverges if0 < (µ/η) ∆t < 1
. We are now preparedto understand the generalbehaviorof
n
os illators. Eq. (12) annot befullled forall theos illators but weshall attemptto make(12)tobenearlyfullledforthem.B. Optimalparametersfor
n
os illatorsAs mentionedabove,it is important foroptimal onvergen ethat none ofthe os illatorsis overdamped, be ause
su h asituation would giveaveryslow progresstowardsthe equilibrium point. The onvergen eproperties ofthe
whole system would then suer sin e all the other os illators would have to wait. We shall therefore pro eed by
studyingthe aseswhere only riti alandlightdampingareallowed.
First onsideronlytwoos illators. As seenin (6)theparameters
µ
and∆t
areglobalforallos illators. Eq. (12) thusgivesthat1 λ 1
1 λ 2
µ
∆t
= 2 √ η
√ λ 1
√ λ 2
.
(13)If
λ 1 6= λ 2,thereisanuniquesolutionforµ
and∆t
sothatbothos
illatorsevolvea
ordingtothe
riti
allydamped
ase. Thissolutionisgivenbyµ = 2√η √
λ 1 λ 2 / √ λ 1 + √
λ 2
and
∆t = 2√η/ √ λ 1 + √
λ 2
. Inthegeneral aseof
n
os illatorsthe ondition
µ + λ i ∆t ≤ 2 √
ηλ i mustbefullledforallλ i. This
onditiononlyholdsif
µ opt = 2 √ η p
λ min λ max / p
λ min + p λ max
(14)
∆t opt = 2 √ η/ p
λ min + p λ max
(15)
This anbeseenbyinserting
µ opt and∆t opt into the
onditionµ + λ i ∆t ≤ 2 √
µ + λ i ∆t ≤ 2 √
ηλ i. Onethenndsthat
2 p λ i − p
λ min − p λ max
2
≤ p
λ min − p λ max
2
(16)