Contents lists available atScienceDirect
Comptes Rendus Mecanique
www.sciencedirect.com
Discrete simulation of fluid dynamics
On the stability of a relative velocity lattice Boltzmann scheme for compressible Navier–Stokes equations
Stabilité d’un schéma de Boltzmann sur réseau à vitesse relative appliqué aux équations de Navier–Stokes
François Dubois
a,b,∗, Tony Février
b, Benjamin Graille
baCNAMParis,Laboratoiredemécaniquedesstructuresetdessystèmescouplés,292,rueSaint-Martin,75141Pariscedex03,France bUniversitéParis-Sud,Laboratoiredemathématiques,UMRCNRS8628,91405Orsaycedex,France
a r t i c l e i n f o a b s t r a c t
Articlehistory:
Received6December2014 Accepted25March2015 Availableonline7September2015
Keywords:
RelativevelocitylatticeBoltzmannscheme d’Humièresscheme
Cascadedautomaton Moments
Stability
Mots-clés :
SchémadeBoltzmannàvitesserelative Schémaded’Humières
Schémacascade Moments Stabilité
Thispaperstudies thestabilitypropertiesofatwo-dimensionalrelativevelocityscheme for the Navier–Stokesequations. Thisschemeinspired bythe cascaded schemehasthe particularitytorelaxinaframemovingwithavelocityfieldfunctionofspaceandtime.
ItsstabilityisstudiedfirstinalinearcontextthenonthenonlineartestcaseoftheKelvin–
Helmholtzinstability.Thelinkwiththechoiceofthemomentsisputinevidence.Theset ofmomentsofthecascadedschemeimprovesthestabilityofthed’Humièresschemefor smallviscosities.Onthecontrary,arelativevelocityschemewiththeusualsetofmoments deterioratesthestability.
©2015PublishedbyElsevierMassonSASonbehalfofAcadémiedessciences.
r é s um é
Cet article étudie la stabilité d’un schéma de Boltzmann sur réseau à vitesse relative appliquéauxéquationsdeNavier–Stokesbidimensionnelles.Ceschémaestuneextension duschémaencascadeets’yramènedansunrepèreassociéàunchampdevitessefonction del’espaceetdutemps.Sastabilitéestd’abordétudiéedansuncadrelinéairepuispour le castest non linéaire de l’instabilité de Kelvin–Helmholtz. L’importancedu choix des momentsestmiseenévidence.Lechoixdemomentsduschémaencascadeaméliorela stabilité dela variante de d’Humièresdu schémade Boltzmannsurréseau dans le cas depetitesviscosités.Aucontraire, unrégimede vitesserelativeaveclejeu habitueldes momentsdétériorelastabilité.
©2015PublishedbyElsevierMassonSASonbehalfofAcadémiedessciences.
*
Correspondingauthor.E-mailaddresses:[email protected](F. Dubois),[email protected](T. Février),[email protected](B. Graille).
http://dx.doi.org/10.1016/j.crme.2015.07.010
1631-0721/©2015PublishedbyElsevierMassonSASonbehalfofAcadémiedessciences.
0. Introduction
Thelattice BoltzmannschemeshavebeensuccessfullyusedforthesimulationofthecompressibleNavier–Stokesequa- tions intwoorthreedimensions[1–4].Thismethodaimstomimic themicroscopicbehaviourinordertosimulatesome macroscopicproblems.Thealgorithmconsistsinevaluatingsomeparticledistributions.Theparticles,movingfromnodeto nodeofalattice,undergoaphaseofcollisionandaphaseoftransport.Differentcollisionoperatorshavebeenproposedfor the simulationofthe Navier–Stokesequations.Thesimplestone isthesingle relaxationtime operator[5,1–3] alsocalled BGK.Analternativecalledthemultiplerelaxationtimes(MRT)operator[4,6]hasbeenproposed.Duringthecollision,some moments,linearcombinationsoftheparticledistributions,relaxtowardstheequilibriumwithaprioridifferentvelocities.
Itcontainstheparticularitytooffermoredegreesoffreedomtofixthedifferentparametersastheviscosities.Themultiple relaxationtimesapproachisthusmoreflexiblethantheBGK.Bothschemeshavebeenwellstudiedparticularlyintermsof stability [6].Theystill encountersome instabilityfeaturesastheviscositiestendtozerothat limitshighReynoldsnumber simulations.
In2006,acascadedschemeimprovingthestability forlowviscositieshasbeenpresented[7].Itsrelaxationoccursina framemovingwiththefluidvelocity.Tounderstandthepositivefeaturesofthisscheme,ageneralnotionofrelativevelocity schemeswasdefined[9].Theirrelaxationismadeforasetofmomentsdependingonavelocityfieldfunctionofspaceand time thatisthevelocityfluidforthecascadedscheme[9]andzeroforthed’Humièresscheme[4].Theserelativevelocity schemes are not restricted to the simulation of the Navier–Stokes equations: they are definedfor an arbitrary number of conservation laws.Their consistency hasalready beenstudied for one and two conservationlaws [8,9] butthe same reasoningholdsforanarbitrarynumberofconservationlaws.Thepurposeisnottocomparedifferentschemesintermsof stabilitybuttostudythestabilityoftheclassoftherelativevelocityschemesaccordingtothechoiceofsomeparameters.
The purposeof thiscontributionis topresentsome numericalstability results ofthetwo dimensional nine velocities (D2Q9)relativevelocityschemeforthecompressibleNavier–Stokesequations.Wewanttocharacterizetheinfluenceofthe relativevelocityandthelinkwiththemomentschoice:thepolynomialsdefiningthemomentsofthecascadedschemeare differentfromtheusualonesandmayactonthestability.Inafirstpart,werecallthebasisoftherelativevelocityschemes.
We then presenttherelative velocity D2Q9 we are interestedin. Thesecond partexhibitsthe resultsofstability,first in a linearcontext(L2 vonNeumannnotion) andthen foranon-lineartestcase, theKelvin–Helmholtzinstability.Itputs in evidencethelinkbetweentherelativevelocity,thechoiceofthepolynomialsdefiningthemomentsandthestability.
1. Descriptionofthescheme
We firstintroducetherelativevelocityschemeforanarbitrarynumberofdimensionsandvelocities.Wethen particu- larizeittothecaseoftwodimensionsandninevelocities.
1.1. TherelativevelocityDdQqscheme
ThissectionpresentsthederivationoftherelativevelocitylatticeBoltzmannschemesintroducedin[9]andinspiredby the cascadedscheme[7].LetL bea Cartesian latticein ddimensionswitha typicalmesh size x. Thetime step t is linked tothespacestepbytheacousticscalingt=x/λforλ∈Rthevelocityscale.Weintroduce V=(v0,. . . ,vq−1)a setofq velocitiesofRd.ThisdefinestheschemecalledDdQq.Weassumethat foreachnode x ofthelattice L,andeach vj inV,thepointx+vjt isstillanodeofL.TheDdQqschemecomputesaparticledistribution f=(f0,. . . ,fq−1)onthe lattice Latdiscretevaluesoftime.Aniterationoftheschemeconsistsintwophases:therelaxationthatisnonlinearand localinspace,andthelineartransportsolvedexactlybyacharacteristicmethod.
Therelaxationphasereadsmoreeasilyinamomentsbasisusingthed’Humièresframework[4].A velocityfieldu(x,t) that depends onspaceand time beinggiven, we define thechange ofbasis matrix M(u), usually called“matrix ofmo- ments”,by
M
(
u)
kj=
Pk(
vj−
u),
0k,
jq−
1,
where (P0,. . . ,Pq−1) are some polynomialsof R[X1,. . . ,Xd]. Thismatrixof moments,supposed to be invertible,defines themomentsm(u)=(m0(u),. . . ,mq−1(u))bytherelation
m
(
u) =
M(
u)
f,
(1)where mk(u)is thekthmoment.Ifthe vector f represents thecoordinates ofthe state inthecanonical basis, then the vectorm(u)representsthesamestateinthenewbasisobtainedbythelineartransformationgivenby M(u).
The collision phase is viewed as the relaxation of the particle distributions towards an equilibriumdistribution feq independent ofthemoments andofthevelocity fieldparameteru. Thisallowsusto definethe momentsatequilibrium meq(u)=(meq0 (u),. . . ,meqq−1(u))by
meq
(
u) =
M(
u)
feq.
(2)Therelativevelocityschemesuseadiagonalrelaxationphaseinthisshiftedmomentsbasis
Fig. 1.TheD2Q9velocities.
mk
(
u) =
mk(
u)+
sk(
meqk(
u) −
mk(
u)),
0kq−
1,
(3) where sk is the relaxation parameter associated with the kth moment for 0kq−1. Some of these moments are conserved by the relaxation: they are associated with relaxationparameters equal to zero. The equilibrium distribution functionattheequilibrium feqisafunctionoftheconservedmomentsdeterminedbythepartialdifferentialequationsto beapproximated.Theinverseofthematrixofmomentsisusedtoreturntothedistributionsf
=
M−1(
u)
m(
u).
(4)Thetransportphasespreadstheparticledistributionsontheneighbouringnodes
fj
(
x,
t+
t) =
fj(
x−
vjt
,
t),
0jq−
1.
Thisframeworkembeddesthed’Humièresschemeforuequalto0andthecascadedschemeforuequaltothefluidvelocity andaparticularsetofmoments[9].Inthefollowing,whenu isspecified,we calltheassociatedrelativevelocity scheme theschemerelativetou.
1.2. Thestudyframework:therelativevelocityD2Q9scheme
Thepurposeofthissection istointroducetheschemewhosestability propertiesareinvestigated:therelativevelocity D2Q9 schemewithtwoconservationlawsonthedensityandthemomentum
ρ =
j
fj
,
qα=
j
vαj fj
,
1α
d.
forthecompressibleNavier–Stokesequations.Weexposeitsfeaturesandthedifferentdegreesoffreedomusedtocheckits stability.Weputaparticularattentiononthedefinitionofthemoments.
Forthistwo-dimensionalscheme,ninevelocitiesareinvolved:theyaredefinedby
v
= { (
0,
0), (λ,
0), (
0, λ), ( − λ,
0), (
0, − λ), (λ, λ), ( − λ, λ), ( − λ, − λ), (λ, − λ) } ,
withλ∈Rthevelocityscale.ThesevelocitiesarealsorepresentedinFig. 1.
Weneed todealwiththesetofthemoments andtheequilibriumtocompletelycharacterizethescheme.Historically theD2Q9schemehasbeenmainlyusedwiththefollowingsetofmoments
1
,
X,
Y,
X2+
Y2,
X2−
Y2,
X Y,
X(
X2+
Y2),
Y(
X2+
Y2), (
X2+
Y2)
2,
(5) orits orthogonalized analogueforthe simulation ofthe Navier–Stokes equations[6].They havebeen chosen becauseof theirphysicalmeaning:theyinvolvethedensity,themomentum,theenergy,thediagonalandoff-diagonalcomponentsof thestresstensor,theheatfluxandthesquareoftheenergy.Nevertheless,theD2Q9cascadedscheme[7],whichseemsto improvethestabilityatlowviscosities,hasbroughttolightanothersetofmomentsgivenby1
,
X,
Y,
X2+
Y2,
X2−
Y2,
X Y,
X Y2,
Y X2,
X2Y2.
(6) Thisschemehasbeenwrittenasarelativevelocityschemeforthemoments(6)andthefluidvelocity[9].Therelaxations of(5)and(6)areequivalent inthed’Humièresframework correspondingtou=0(Section2.2).However, thisisnot trueanymorewhenu isdifferentfrom0.Thispointnaturallyleadstothequestion:doesthesetofmomentshaveaninfluence onthestabilitypropertiesoftherelativevelocityscheme?Givingsomeexperimentalrudimentsofanansweristhepurpose ofthisstudy.
That’swhyweintroducetwosetsofmomentstunedbyaparameter
α
∈R:1
,
X,
Y,
X2+
Y2,
X2−
Y2,
X Y,
X( α
X2+
Y2),
Y(
X2+ α
Y2), α
2
(
X4+
Y4) +
X2Y2,
(7) and1
,
X,
Y,
X2+
Y2,
X2−
Y2,
X Y,
X Y2+ α (
X2+
Y2),
Y X2+ α (
X2+
Y2),
X2Y2.
(8) The moments(7)generalizethoseoftheD2Q9 cascadedschemecorrespondingtoα
=0[9]givenby(6)andtheones associated withα
=1 defined by (5). The introduction ofα
results fromthe will not to restrict the studyto two sets of moments.This alsoallows usto understandthe impact onthe stability ofthe X3 componentwhenα
moves from0 to 1.Thechoiceofthemoments(8),evenifitseemsstrange becauseitmixessomesecond- andthird-orderpolynomials, improvestheunderstandingofthedifferencesofstabilitybetween(5)and(6)fortherelativevelocityD2Q9 scheme.Takingα
=0 alsorecoversthecascadedmoments.Theequilibriummayalsohaveaninfluenceonthestability.That’swhy,denotingu=q/
ρ
thefluidvelocity,weintroducef1eq,j
( ρ ,
u) = ρω
j 1+
u.
vjc20
+ (
u.
vj)
2 2c40− |
u|
22c20
,
0j8,
(9)and
f2eq,j
( ρ ,
u) = ρω
j 1+
u.
vjc20
+ (
u.
vj)
2 2c40− |
u|
22c20
+ (
u.
vj)
36c60
− |
u|
2(
u.
vj)
2c40
+
dj(
ux)
2(
uy)
2 c40,
0j8,
(10)where d0= −1/4,dj=1/2, j=1,. . . ,4, dj= −1, j=5,. . . ,8,respectivelycorresponding to the second-ordertruncated equilibrium [3] andto a fourth-order equilibrium [10,11] particularly used for the D2Q9 cascaded scheme.The product equilibriumcorrespondstothefourth-ordertruncationoftheMaxwellian equilibrium.Bothequilibriaallowustosimulate the compressible Navier–Stokes equations whatever the velocity field u. Indeed, the second-order equivalent equations of the relative velocity schemes are independent of u [9] and the Navier–Stokes equations are recovered by the D2Q9 d’Humièresscheme(u=0)atthesecondorderforsmallMachnumbers[12].LetusnotethatthesimulationsofSection3 have beenalsomadefortheincompressibleanalogueof(9)and(10)usedin [6]: thesametrends asthose presentedin Section3areobtained.
We chooseto work withseveraltwo-relaxation-timeschemes (TRT)tounderstand therole ofeach polynomialof the moments:theonegivenby
s
= (
se,
sν,
sν,
se,
se,
se),
(11)calledTRT1 andtheonegivenby
s
= (
se,
se,
se,
sp,
sp,
se),
(12)calledTRT2 wherese,sν,sp∈R.NotethattheTRT1 andtheTRT2 differfromtheTRTschemesdefinedin[13]andbasedon thesymmetryofthelattice.Ifalltherelaxationparametersareidentical,werecovertheBGKscheme[4].
Fourdegreesoffreedomaretunableinthissection:themoments,thevectoroftherelaxationparameterss,theveloc- ity fieldu andtheequilibrium. The link betweentheseparameters andtheir influence onthe stability is studiedin the following.
2. Experimentalstudyoflinearstability
Inthissection,westudythelinearvonNeumannL2 stabilityoftherelativevelocityD2Q9schemedefinedinSection1.2.
Theinfluenceofthemomentsaccordingtothechoiceofthevelocityfieldu isthekeypointofthesection.Ourfirstinterest goestothemoments(6)and(5),respectivelycorrespondingto
α
=0 andα
=1 in(7),becausetheyareusuallychosenby thecommunity[4,6,7,14].Thefirstsubsectioncomparesthosetwosetsaccordingtothevelocityfieldparameter.Weshow thattakingu=u,thevelocityofthefluidimprovesthestabilityifthemoments(6)arechosen,deterioratesitiftheset(5) is taken.The secondsubsectionanswers thefollowingquestion:whatisthebetter choiceofmoments(ofα
) intermsof stability?Arangeofα
isproposedandα
=0 isshowedtobethemoststablechoice.Table 1
HigheststableV=(Vx,0)inλunitsforthed’Humièresscheme(u=0),withα=0 orα=1,ofequilibrium(9).se=2−2−mandsν=2−2−n.
n m
0 1 2 3 4 5 6 7
0 0.42 0.41 0.34 0.26 0.20 0.15 0.11 0.08
1 0.42 0.41 0.36 0.30 0.23 0.18 0.13 0.09
2 0.31 0.34 0.34 0.32 0.28 0.23 0.17 0.13
3 0.21 0.28 0.32 0.30 0.25 0.22 0.18 0.15
4 0.14 0.21 0.28 0.26 0.22 0.18 0.16 0.13
5 0.10 0.16 0.22 0.23 0.20 0.17 0.13 0.11
6 0.07 0.12 0.17 0.20 0.18 0.16 0.12 0.11
7 0.05 0.08 0.12 0.17 0.16 0.15 0.11 0.11
2.1. Methodology:thevonNeumannstability
ThestudyoftherelativevelocityD2Q9 schemeisbasedonthe L2 vonNeumannstability.Thisnotionbeingadaptedto linearcontexts,welinearizetheequilibria(9)and(10)aroundavelocity V= |V|eiθ∈R2,θ∈R.Thusthereexistsamatrix E sothat
feq
=
E f.
Using(1),(3),(2),(4)thelinearizedrelaxationphaseoftherelativevelocityschemesreads
f
= (
I+
M(
u)
−1D M(
u)(
E−
I))
f,
where D=diag(s)isthediagonalmatrixoftherelaxationparameters.Thisexpressionholdsforeachnodex ofthelattice, the relaxation being local in space. One can deduce the expression of the distribution after an iteration thanks to the transportphase
fj
(
x,
t+
t) = [(
I+
M(
u)
−1D M(
u)(
E−
I))
f]
j(
x−
vjt
,
t),
x∈
L,
t∈ R.
In theFourier space, the transport operatorbecomes localin spaceandis represented by thediagonal matrix A whose diagonalcomponentsaregivenbyeitk.vj,0j8.WecanthendefinetheamplificationmatrixL(u)=L(u,V,k,s,
α
)= A(I+M(u)−1D M(u)(E−I)),fork,V,u∈R2,s∈R9,α
∈R, V∈R2 characterizingatimeiterationoftheschemeinthe Fourierspace f(
k,
t+
t) =
L(
u)
f(
k,
t),
t∈ R,
wheref istheFouriertransformof f.Wewanttodeterminethequantity
max
{|
V|,
maxk∈R2 r
(
L(
u))
1},
(13)forsome parameterss,u,
α
,adirectionoflinearizationθ∈Randr(L(u))thespectralradiusofL(u).Itcharacterizesthe setofthelinearizationvelocitiesV forwhichtheschemeverifiesthenecessaryconditionofL2stabilitymaxk∈R2r(L(u))1.
2.2. Comparisonbetweenthed’Humièresschemeandtheschemerelativetothelinearizationvelocity
Weshowthattheschemesrelativetou=V canimproveordeterioratethelinearstabilitycomparedtothed’Humières scheme.Thestabilitybehaviourdependsstronglyonthechoiceofthemoments.
Wecomparetheschemesrelativetou=0andu=V forthetwosetsofmoments(5)and(6):wehave
α
=0,1 in(7).Wehererestricttothesecond-ordertruncatedequilibrium(9)linearizedaroundV.Thevariableofcomparisonisthelargest stablevelocity V (13)foralinearizationdirectionθ equalto0.WechoosetodealwiththeTRT1 (11)forse=2−2−m and sν=2−2−n wherem,n,∈N,0m,n7.Theparametersseandsν respectivelytunethebulkandtheshearviscositiesof theNavier–Stokesequations.Thischoiceofparametersallowsustostudythezeroviscositylimitbyincreasingmor/andn.
Table 1dealswiththed’Humièresschemeforbothsetsofmoments,thevaluesforthosetwosetsbeingidentical.Tables 2 and3giveanalogousresultsfortheschemerelativetou=V:theycorrespondrespectivelytothemomentswith
α
=0(6) andα
=1(5).Wenoticetheimportanceofthechoiceofthemomentsfortheschemesrelativetou=V:stabilityareasarethebiggest for
α
=0 (6)(Table 2) andthesmallestforα
=1(5)(Table 3) whateverthechoiceof s.The d’Humièresscheme(u=0, Table 1)hassmallerstabilityareasthantheschemerelativetou=V withα
=0 andbiggerthantheonewithα
=1.Theschemerelativetou=V with
α
=0 providesthemostimportantgaincomparedtothed’Humières schemewhen seorsν iscloseto 2 andtheotherisfarfrom2 (for onesmallandonelargeviscosity). Insteadtheseareasare themostTable 2
HigheststableV=(Vx,0)inλunitsfortheschemerelativetou=V withα=0 ofequilibrium(9).se=2−2−mandsν=2−2−n.
n m
0 1 2 3 4 5 6 7
0 0.42 0.42 0.40 0.37 0.33 0.28 0.24 0.21
1 0.42 0.41 0.37 0.34 0.33 0.30 0.27 0.23
2 0.42 0.36 0.34 0.33 0.29 0.25 0.22 0.19
3 0.36 0.34 0.33 0.30 0.25 0.21 0.18 0.16
4 0.32 0.32 0.30 0.26 0.22 0.18 0.16 0.13
5 0.29 0.30 0.27 0.24 0.21 0.17 0.13 0.11
6 0.26 0.28 0.24 0.21 0.18 0.16 0.12 0.11
7 0.23 0.26 0.22 0.19 0.16 0.15 0.11 0.11
Table 3
HigheststableV=(Vx,0)inλunitsfortheschemerelativetou=V withα=1 ofequilibrium(9).se=2−2−mandsν=2−2−n.
n m
0 1 2 3 4 5 6 7
0 0.42 0.42 0.27 0.18 0.12 0.08 0.06 0.04
1 0.42 0.41 0.37 0.31 0.20 0.13 0.09 0.06
2 0.24 0.36 0.34 0.32 0.27 0.21 0.14 0.09
3 0.15 0.29 0.33 0.30 0.25 0.21 0.18 0.14
4 0.10 0.19 0.29 0.26 0.22 0.18 0.16 0.13
5 0.07 0.12 0.20 0.29 0.21 0.17 0.13 0.11
6 0.05 0.09 0.14 0.20 0.18 0.16 0.12 0.11
7 0.03 0.06 0.09 0.14 0.16 0.15 0.11 0.11
Table 4
HigheststableV=(Vx,0)inλunitsforthed’Humièresscheme(u=0),withα=0,ofequilibrium(10).se=2−2−mandsν=2−2−n.
n m
0 1 2 3 4 5 6 7
0 0.42 0.42 0.39 0.32 0.24 0.16 0.11 0.07
1 0.42 0.42 0.41 0.38 0.31 0.20 0.14 0.09
2 0.42 0.42 0.41 0.40 0.38 0.30 0.20 0.14
3 0.26 0.41 0.40 0.39 0.37 0.32 0.28 0.20
4 0.16 0.28 0.38 0.36 0.33 0.29 0.24 0.21
5 0.10 0.18 0.29 0.33 0.31 0.26 0.21 0.19
6 0.07 0.12 0.19 0.30 0.29 0.24 0.20 0.18
7 0.05 0.08 0.13 0.20 0.28 0.23 0.19 0.17
deterioratedwhen
α
isequalto1.When se andsν are close,theschemepresentsstability areasnearly independentofu.Thecasese=sν correspondstotheBGKscheme:thevelocityfieldudoesnotplayanyrolesince(2)isverified.
Finally,forthe d’Humièresscheme,the resultsareindependent ofthechoice ofthemoments. Indeed,thethird-order moment X(X2+Y2) is equivalent to λ2X+X Y2 on the velocity network [8]: its relaxation is then equivalent to the relaxationof X Y2, X beingaconservedcomponent. Thesamereasoningholdsforthesymmetricalmoment.Themoment (X2+Y2)2 is equal to X2Y2+λ2(X2+Y2) on the velocity network. Its relaxation isequivalent to relax X2Y2 because
X2+Y2and X2Y2 arebothintheeigenspacerelatedtosefortheTRT1.
Allthesetrendsareindependentofthedirectionoflinearizationθ:theresultsaresimilarforθ=
π
/8,π
/4,π
/3.We now do the same job for the product equilibrium(10) restricting the studyto the choice
α
=0. Note that the combinationofthesemomentsandthisequilibriumcorrespondstotheD2Q9cascadedscheme[11,9].TheTRT1 (11),tuned byseandsν,andthedirectionθ=0 arechosen.Table 4isaboutthed’Humièresscheme,Table 5correspondstothescheme relativetou=V.The resultsare analogousto theonesassociatedwithequilibrium(9).Thescheme relativetou=V hasbigger linear stabilityareasthanthed’Humièresscheme(u=0)when
α
=0.Thegainismoreimportantwhentherelaxationparameters arefarfromeachother.Thevelocityfieldimpactislightenedwhenseandsν areclose.We finallyassesstheinfluenceoftheequilibriumonlinearstability.Whateverthechoiceofu ands,equilibrium(10) providesbiggerstabilityareasthanthetruncatedequilibrium(9).Particularly,theBGKschemeassociatedwith(10)ismore stablethantheonecorrespondingto(9).
As aconclusion,themostimportantfactofthestudyisthefollowing:theschemerelativetou=V for
α
=0 ismore stablethanforα
=1.Insteadchoosingaschemerelativetou=V withan“inappropriate”setofmomentscandeteriorate stability.Table 5
HigheststableV=(Vx,0)inλunitsfortheschemerelativetou=V withα=0 ofequilibrium(10).se=2−2−mandsν=2−2−n.
n m
0 1 2 3 4 5 6 7
0 0.42 0.42 0.42 0.42 0.35 0.30 0.26 0.23
1 0.42 0.42 0.42 0.41 0.39 0.35 0.32 0.28
2 0.42 0.41 0.41 0.40 0.40 0.35 0.31 0.29
3 0.41 0.41 0.40 0.39 0.36 0.30 0.27 0.23
4 0.40 0.40 0.39 0.36 0.33 0.28 0.23 0.20
5 0.35 0.37 0.36 0.33 0.31 0.26 0.21 0.18
6 0.31 0.33 0.33 0.31 0.29 0.25 0.20 0.17
7 0.28 0.30 0.31 0.29 0.27 0.24 0.19 0.17
Fig. 2.DrawofVxasafunctionofαforthed’Humièresschemewiththemoments(7).Left:TRT1,se=2−2−mandsν=2−2−n.Right:TRT2,se=2−2−m andsp=2−2−n.
2.3. Influenceofthechoiceofthemomentsonthestability
Theprevioussectionhasstudiedthestabilityoftherelativevelocityandd’Humièresschemesfortwochoicesof
α
.This parameter seems to be crucialforthe relative velocity schemes. Thepurpose ofthis section isto see moreprecisely its influenceonstability.Itstudiesthestabilitypropertiesoftheschemesrelativetou=0andu=V forabiggerrangeofα
. Weshownumericallyandjustifythatα
=0 constitutesthebetterchoiceofmoments.Weareinterested inthestabilityoftherelativevelocity schemesforboth setsofmoments(7)and(8):thediscussion carriesonthechoiceoftheparameter
α
∈Rcharacterizingthesemoments.Bothequilibrialeading tothesametrends,we focusonthetruncatedone(9)linearizedaround V=(Vx,0)∈R2.Twosetsofrelaxationparameterss areused:theTRT1 (11)andtheTRT2(12)wherese=2−2−mandsν=sp=2−2−n with(m,n)=(0,3),(3,0),(0,7),(7,0),(7,7).Thequantity (13)isdrawnasafunctionofα
in[−1,1].Anegativevalueof(13)meansthattheschemeisunstableforallV.Wefirstfocusonthed’Humièresschemecorrespondingtou=0.Figs. 2 and3representrespectivelythedrawsassoci- atedwiththemoments(7)and(8).Oneachfigure,theleft drawisassociatedwiththeTRT1 andtherightone withthe TRT2.
Forthemoments(7),the drawsareindependentof
α
whatevertheTRTchosenands.Forthemoments(8),thedraw corresponding to the TRT1 is independent ofα
unlike theTRT2. The figure associated withthe TRT2 induces to chooseα
=0:itcorrespondstothemaximumofthecurveandthestabilityareadecreasesas|α
|increases.Asexpected,thedraw form=n=7 correspondingtoaBGK schemeisconstantinα
.Wenoticethatα
=0 belongstothesetofα
maximizing thestabilitywhateverthedraw.Wecanexhibittheoriginofthedependenceorindependenceon
α
.Let’sconsiderthemoments(7).Forthed’Humières scheme,therelaxationofthesemomentsisindependentofα
.Thelastthreemomentsof(7)are:α
X3+
X Y2, α
Y3+
X2Y, α
2
(
X4+
Y4) +
X2Y2.
Knowingthat X3=λ2X onthevelocityset[8],theschemeisunchangedifwereplacethemby
λ
2α
X+
X Y2, λ
2α
Y+
X2Y, λ
2α
2
(
X2+
Y2) +
X2Y2.
Fig. 3.DrawofVxasafunctionofαforthed’Humièresschemewiththemoments(8).Left:TRT1,se=2−2−mandsν=2−2−n.Right:TRT2,se=2−2−m andsp=2−2−n.
Fig. 4.DrawofVxasafunctionofαfortheschemerelativetou=V withthemoments(7).Left:TRT1,se=2−2−mandsν=2−2−n.Right:TRT2, se=2−2−mandsp=2−2−n.
Relaxing themoments (7)isthenequivalent to relaxthe samemomentsfor
α
=0.Indeed, X andY areassociatedwith someconservedmomentsand X2+Y2 hasthesamerelaxationparameterseasthefourthordermoment.Itisthusconsis- tentforthisdrawstobeindependentofα
.We nowfocusonthemoments(8):theparameter
α
appearsonlyinthethirdordermoments.FortheTRT1, X2+Y2 andthethird-orderpolynomialsarerelaxedwiththesamerelaxationparameterse.ChoosingX Y2
+ α (
X2+
Y2),
X2Y+ α (
X2+
Y2),
isthenequivalenttochoose
X Y2
,
X2Y,
and the scheme doesnot depend on
α
as the left draw of Fig. 3 shows it. Forthe TRT2, X2+Y2 and the third-order momentsarerelaxedwithdifferentrelaxationparameters:itisexpectedtohaveadependenceonα
,exceptedfortheBGK case(m=n=7)involvingonlyonerelaxationparameter.Wenowdothesamejobfortheschemerelativetou=V.Fig. 4isassociatedwiththemoments(7)andFig. 5withthe moments(8).
The stability ofthe schemerelativetou=V dependson
α
whateverthemoments (Fig. 4). Themaximumisreached forα
=0 whateverthechoiceofs.Forthemoments(8),thestabilityoftheTRT1isnotlinkedtoα
(Fig. 5ontheleftside).Instead,thisparameterisinfluentialfortheTRT2(Fig. 5ontherightside):
α
=0 stillcorrespondstotheoptimum.WeinterpretFig. 4ascorrespondingtothemoments(7).Because X3=λ2X andY3=λ2Y onthevelocityset,relaxing therelativemomentsassociatedwith(7)isequivalenttorelax
Fig. 5.DrawofVxasafunctionofαfortheschemerelativetou=V withthemoments(8).Left:TRT1,se=2−2−m andsν=2−2−n.Right:TRT2, se=2−2−mandsp=2−2−n.
1
,
X,
Y,
X2+
Y2,
X2−
Y2,
X Y,
P6(
u, α ),
P7(
u, α ),
P8(
u, α ),
where
P6
(
u, α ) =
X Y2+ α (−
3uxX2+ (λ
2−
3(
ux)
2)
X+
ux(λ
2− (
ux)
2)),
P7
(
u, α ) =
X2Y+ α (−
3uyY2+ (λ
2−
3(
uy)
2)
Y+
uy(λ
2− (
uy)
2)),
(14) andP8
(
u, α ) =
X2Y2+ α
2
(λ
2+
6(
ux)
2)
X2+ (λ
2+
6(
uy)
2)
Y2+
2ux(−λ
2+
4(
ux)
2)
X+
2uy(−λ
2+
4(
uy)
2)
Y−
3(
ux)
2(λ
2− (
ux)
2) −
3(
uy)
2(λ
2− (
uy)
2)
.
Letusobservetheequivalent classofthethird-ordermomentgivenby (14).Thedependenceon
α
ofthestabilitycomes fromtheterm−3α
uxX2.Indeed,relaxing(14)isequivalenttorelax X Y2−3α
uxX2 sincethemomentscorrespondingtothe polynomials1 and X areconservedbythecollision.Onthecontrary,themomentassociatedwith X2 isnotconserved.For theTRT1,itisalinearcombinationofthemoments X2+Y2 and X2−Y2 associatedwithdifferentrelaxationparameters seandsν.FortheTRT2,itisassociatedwithse,whereas P6 correspondstosp.Theseremarksjustifytheintroductionofthemoments(8)tostudytheinfluenceofthenon-conservedcomponents X2 andY2.Fig. 5,implying themoments(8),givessimilarresultsasitsanalogousforu=0(Fig. 3):thesameinterpretation is still valid. Note that for
α
=0, the areas are bigger withu=V (Fig. 5) than withu=0 (Fig. 3). This confirms the observationsoftheSection2.2.3. NumericalstabilityfortheKelvin–Helmholtztestcase
Thepurposeofthissection istoconfirm onanon-lineartestcasetheprevious linearstability results:thistest caseis theKelvin–Helmholtzinstability[15,16].
We comparesixversionsoftherelative velocity D2Q9 scheme tostudytheinfluence ofthemoments, ofthevelocity fieldu,andoftheequilibrium.Weconsidertheschemeassociatedwith
α
=0 relativetou=0andu=u(thefluidveloc- ity)fortheequilibria(9)and(10).Wecompareittothechoiceα
=1 fortherelativevelocities0anduwithequilibrium(9).Wechoose notto considertheproductequilibrium(10)for
α
=1,thisequilibriumbeingintroduced forthemomentsof thecascadedscheme[11].WeworkwiththeTRT1definedby(11):unlessotherwisespecified,se etsν arefixedbyμ = λ
2σ
e3
, ν = λ
2σ
ν 3,
where
σ
e=1/se−1/2 andσ
ν=1/sν−1/2,sothattheviscositiesμ
andν
aresetto0.0366 and10−4. WetestthestabilityoftheschemebyincreasingthevelocityU definingtheinitialshearlayersFig. 6.(Colour online.) Vorticity draw att=0.6.
Fig. 7.(Colour online.) Vorticity draw att=1.
ux
(
x,
y,
0) =
Utanh(
k(
y−
14))
ify12Utanh
(
k(
34−
y))
ify>
12, (
x,
y) ∈ [
0,
1]
2,
uy(
x,
y,
0) =
Uδ
sin(
2π (
x+
14)), (
x,
y) ∈ [
0,
1]
2.
This velocity U is chosen asMa/√
3 forMa∈R theMach number.The parametersk and δcontrolling thewidth ofthe shearlayersandthemagnitudeoftheinitialdataaresetto80 and0.05.
We first validate the vorticity draws obtainedin [17,16,15] using the scheme relative to the fluid velocity u for the second-ordertruncatedequilibrium(9).Thisvorticityisdefinedby
ω = ∂
xuy− ∂
yux.
Forthissimulation,thedomainisconstitutedof128×128 points,theMachnumberisfixedat0.04 (λischosenasin[16]
sothatU=1).Figs. 6 and7arethevorticityplotsattimet=0.6 andt=1.
We nowpresentastability analysisdepending onthedifferentparameters forλ=1.Weexpect toconfirm thelinear stability results.The schemeis consideredstableifit hasnotbrokenafter2000iterations. Table 6contains themaximal stableMachnumberMafordifferentmeshesat0.01 close.Table 7presentsthegreaterReynoldsnumberRe=1/
ν
stable at 1000 closefordifferent meshesandMa=0.09.Since wediscusson theReynolds number,the viscosityν
becomes a parameter.We obtain results consistent withthe linearstability study.First, choosing a schemerelative tou=u has a positive effect if
α
=0, negative ifα
=1.We must choosethe moments ofthe D2Q9 cascaded schemeto improvethe stability.This improvement occurswhatever theequilibrium andthe mesh: the stability limit sν=2 isstable (Table 7) andhigh Machnumbersarereachedforthisscheme(Table 6).Second,thed’Humièresschemeisindependentof