HAL Id: hal-03232070
https://hal.archives-ouvertes.fr/hal-03232070
Submitted on 21 May 2021
HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.
An efficient lattice Boltzmann method for compressible aerodynamics on D3Q19 lattice
S. Guo, Yongliang Feng, Jérôme Jacob, F. Renard, Pierre Sagaut
To cite this version:
S. Guo, Yongliang Feng, Jérôme Jacob, F. Renard, Pierre Sagaut. An efficient lattice Boltzmann
method for compressible aerodynamics on D3Q19 lattice. Journal of Computational Physics, Elsevier,
2020, 418, pp.109570. �10.1016/j.jcp.2020.109570�. �hal-03232070�
An efficient lattice Boltzmann method for compressible aerodynamics on D3Q19 lattice
S. Guo
a, Y. Feng
a,∗ , J. Jacob
a, F. Renard
b, P. Sagaut
aaAixMarseilleUniv,CNRS,CentraleMarseille,M2P2UMR7340,13451Marseille,France bCERFACS,Toulouse,France
a r t i c l e i n f o a b s t r a c t
Articlehistory:
Received24July2019
Receivedinrevisedform27April2020 Accepted13May2020
Availableonline20May2020
Keywords:
D3Q19lattice HighMach HybridthermalLBM Shocksensor Recursiveregularized
AnefficientlatticeBoltzmann(LB)modelrelyingonahybridrecursiveregularization(HRR) collisionoperator onD3Q19stencil is proposedfor thesimulation ofthree-dimensional high-speed compressible flows in both subsonic and supersonic regimes. An improved thermal equilibrium distribution function on D3Q19 lattice is derived to reduce the complexity ofcorrecting terms.Asimpleshock capturingschemeandanupwindbiased discretizationofcorrectiontermsareimplementedforsupersonicflowswithshocks.Mass and momentumequations are recoveredby anefficient streaming, collisionand forcing process onD3Q19 lattice.Thenanon-conservativeformulation ofthe entropyevolution equationis used,that issolvedusing afinitevolume method.The proposedmethodis assessed considering the simulation of i) 2D isentropic vortexconvection, ii) 3D non- isothermal acoustic pulse, iii)2D supersonicflow overabump,iv) 3D shock explosion inabox,v)2Dvortexinteractionwithshockwave,vi)2Dlaminarflowsoveraflatplate atMaof0.5,1.0and1.5.
1. Introduction
AccurateandefficientsolutionsofEulerandNavier-Stokesequationsforfullycompressibleflowshavebeensubjectto intensive researchin aerodynamics,combustionand aeroacoustic.Theyare veryimportant formanyfieldsofapplication includingaerospaceengineering,combustion-basedpropulsionandacousticnoisesimulations.
AsanalternativeapproachtosimulatefluidflowsbasedontheBoltzmannequation,thelatticeBoltzmannmethod(LBM) hasbeenprovedtobeverywell suitedforthesimulationofnearlyincompressible,athermalflows [1–6].Motivatedbyits advantagesformassivelyparallelcomputingaswell asits abilitytohandleverycomplexgeometries,thereare significant researcheffortsdevotedtoextendingLBMtothermalandsubsonictosupersonicapplications.
InachievingthatgoalofconstructingLBmodelsforfullycompressibleflowsathigherMachnumbers,mostofexisting attempts are restrictedto two-dimensional space andrely on finitevolume/difference/element discretization [7–12]. The superiorityofthoseLBmodelsremainsan openquestioncomparedwiththegaskineticschemes[13] anddiscreteveloci- tiesmethods[11,14–16].FocusingontheclassicalLBmethodswhicharecharacterizedbythecanonicalstream-and-collide algorithmthat amountsto aStrang-splittingapproach [17],it isrequiredtoconsiderhigh-order momentsof densitydis- tributionfunctionstorecoverthemacroscopicenergyconservationequationforthermallatticeBoltzmannmodel[18–23],
*
Correspondingauthor.E-mailaddress:[email protected](Y. Feng).
Table 1
Listofstream-collide LBmodelsforcompressibleaerodynamics. Theabbreviations:fractionalBGK(FBGK);en- tropicLB(ELB);ELBwithshiftedframe(ELB*);multiplerelaxationtime(MRT);fractionalMRT(FMRT);single distributionfunction(SDF);doubleDF(DDF);regularizedBGK(RBGK);recursiveregularizedBGK(RR);hybridRR BGK(HRR);Rayleigh-Taylor(RT);boundarylayer(BL);supersonic(sup.).
Representative refs. Discrete velocities Collision model Approach on energy Test cases
Alexander et al. [18] D2Q13 BGK SDF Couette flow
Shan et al. [19] D2Q17 etc. BGK SDF
Scagliarini et al. [20] D2Q21/V37 BGK SDF RT instability
Philippi et al. [21] D2V37 BGK SDF
Yu and Zhao [42] D2V17 BGK athermal sup. wedge
Yan et al. [43] D2V25 BGK SDF sup. cylinder
Prasianakis et al. [44] D2Q9 ELB SDF 1D shock tube
Li et al. [45] D2Q9 MRT DDF acoustic
Li et al. [46] D2V37 MRT SDF shock tube
Coreixas et al [25] D2V37 RR SDF shock tube
Mattila et al. [26] D2V37 RR SDF shock tube
Saadat et al. [47] D2Q9 ELB* DDF shock vortex
Feng et al. [40] D2Q9 HRR hybrid subsonic BL
Chen et al. [48] D3V40 BGK SDF shear wave
McNamara et al. [49] D3V27 FMRT SDF RB convection
Nie et al. [34] D3Q39 FBGK Hybrid transonic airfoil
Li et al. [50] D3Q39 RBGK Hybrid transonic airfoil
Frapolli et al. [22] D3Q343 ELB DDF sup. airfoil
Shan [51] D3Q103 BGK SDF
Fares et al. [52,53] D3Q39 BGK SDF nozzle, airliner
Latt et al. [54] D3Q39 BGK DDF sup. airfoil
usually relyingon extended-neighbor latticesets(D1Q7,D2Q37,D3Q343etc.)leading toLBmethodsreferred toasmulti- speed models [18–22,24–30].Thisapproachseemsratherexpensiveforindustrialapplicationsduetothehighnumberof discrete velocitiesandtheincreasedcomplexityfortheimplementationofboundaryconditionsandlocalgrid refinement.
A brief overviewofvarious 2D and3D stream-and-collide-type LB models forcompressible aerodynamics isreported in Table1.
The thermal LB models basedon the nearest-neighbor latticesets for highMach flows have attractedmanyresearch interestsrecently.Atwo-dimensionalthermallatticeBoltzmannmodelinthemannerofdouble-distributionfunction(DDF) was extended to high-subsonic flows using finite volume approach to improve numerical stability in [31]. A consistent two-distribution function thermal lattice Boltzmannwithentropy stabilizeron compressibleflows was proposed in [32].
In higherdimensions, aLB modelusingreductionof soundspeed [33] andhybridfinite differenceentropyequation was constructed for transonic andsupersonic flows on D3Q39 lattice set [34,35], which isthe closest one with3D standard lattices(i.e. D3Q19, D3Q27).A three-dimensionalDDF thermallatticeBoltzmann modelforthermalflows was developed forsimulationofshockexplosionina3Dbox [36].Recentbreakthroughshavebeenmadeonregularlatticesextendingthe hybrid RecursiveRegularizedschemeproposed in[37] to2D compressiblethermalflows[38,39] andthen to2D highMa flows[40,41].Inthelatterarticles,theenergyistakenintoaccountviaanentropyevolutionequationwritteninquasi-linear form,thatissolvedusingastabilizedfinitevolumeapproach.
Due tothethree-dimensionalintrinsicnature ofrealistic compressibleflows,itisnaturaltoseeka stableandefficient three-dimensional LB model which is able to simulate fullycompressible flows usingthe minimumnumber of discrete velocities. In contrast to D3Q27 model,the D3Q19 model is computationally less expensivebut hasmore flaws dealing withthebreakdownofGalileaninvariance,especiallyforhighMachnumberflows.Theobjectiveofthepresentpaperisto further extendtheapproach proposedin[40] to 3Dhigh-speedcompressibleflows,includingflows withshockwaves,on theD3Q19lattice.WeaimtoconstructanefficientLBmodelfor3Dcompressibleflowsusingonly19discretevelocitiesand 20 degreesoffreedom per cell(19 distributionfunctionsplusone thermodynamicscalar quantityforenergy),which can be considered asminimumnumberoffreedomper cell forcompressibleaerodynamicswithinthe frameworkofLBM. To thisend, boththeexpressionoftheequilibriumfunctionandtheGalilean-invariance-correctionterms arerevisited,along thestablediscretizationofthecorrectiontermsandentropyequation,aswellastheappropriateshockcapturingapproach.
The paperis organized asfollows:In section2, theproposed thermallattice Botlzmannmethodwitha newequilibrium distributionfunctiononD3Q19latticeisintroduced.Section 3presentstheoreticalanalysisandimplementationofentropy equation forenergyconservationlaw.Afterthat,theshockcapturingapproachandstablediscretizationofcorrectionterm in highMachflows isanalyzed anddiscussedin Sec.4.Section 5 givesthedetails oftheimplementation ofthepresent hybridLBmethodandboundaryconditions.Then,theresultsobtainedconsidering sixclassicaltestcasesarepresentedin Sec.6toassesstheproposedmethod.Finally,section7drawsconclusionsandperspectives.
Table 2
DiscretevelocitiesandcorrespondingweightsofD3Q27andD3Q19.
D3Q27 D3Q19
[ciα,wi] (0, 0, 0) 8/27 (0, 0, 0) 1/3 cyc(±1, 0, 0) 2/27 cyc(±1, 0, 0) 1/18 cyc(±1,±1, 0) 1/54 cyc(±1,±1, 0) 1/36 (±1,±1,±1) 1/216
2. HybridthermallatticeBoltzmannmethodonD3Q19lattice
Inthepresenthybridthermallattice Boltzmannmethod,massandmomentumequationsarerecoveredby anefficient streaming,collisiononD3Q19lattice.Thenathermodynamic scalarquantity forenergyissolvedbyusingafinitevolume method.
2.1. ThermallatticeBoltzmannnmodel
ThethermallatticeBoltzmannmodelinthisstudyaimsatsolvingdiscretevelocityBoltzmannBGKequationindiscrete physical space and time to obtain macroscopic density
ρ
and velocity uα. The lattice Boltzmann equation with hybrid recursiveregularizationcollisionmodelisusedinthisstudy,thatcanbeexpressedas [40]fi
(
xα+
ciαδ
t,
t+ δ
t) =
fieq(
xα,
t) + (
1−
1τ ) R (
fneq i
) + δ
t2
ψ
i(
xα,
t)
(1)IntheLBalgorithm,themacroscopicdensity
ρ
andmomentumρ
uα arecomputedandupdatedasρ =
i
fi
,
(2a)ρ
uα=
i
ciαfi
+ δ
t 2i
ciα
ψ
i (2b)InEq.(1),
τ = τ /δ
t+
1/
2 isnon-dimensionalrelaxationtimeandR(
fineq)
representsrecursivelyregularizedoff-equilibrium part ofthe density distribution functions fineq=
fi−
fieq+
δ2tψ
i. The Galilean-invariance correction termψ
i is given in formofaforceand fieqisthethermodynamicsequilibriumdistributionfunction.Theequilibriumdistributionfunctionand correctiontermonD3Q19latticeareintroducedanddiscussedinthefollowingsection.
2.2. ImprovedequilibriumdistributionfunctiononD3Q19lattice
The setup ofdiscrete equilibriumdistribution functionsandassociated velocitiesis one amongthekey issues forthe design ofthecompressible LBmodels. Followingthe approachdiscussed in[19,40], theequilibrium distributionfunction
feq couldbegiveninthethird-orderGrad-HermiteexpansionofMaxwell-Boltzmanndistributionas
fieq,Q
=
wi⎡
⎣ ρ +
ciαc2s
ρ
uα+ H
(2) iαβ
2c4s
A
(α0β)+ H
(3) iαβγ 6c6s
A
(α0β)γ⎤
⎦ ,
(3)where wi isthe ith weight coefficient associatedto discrete velocity ciα, cs is lattice soundspeed andthediscrete Her- mitepolynomialsaregivenas
H
(iα2)β=
ciαciβ−
c2s,H
(i3α)βγ=
ciαciβciγ−
c2s[
ciδ ]
αβγ and[
ciδ ]
αβγ=
ciαδ
βγ+
ciβδ
αγ+
ciγδ
αβ. The second and third-order terms in the equilibrium distribution function areA
(α0β)= ρ
uαuβ+ ρ
c2s(θ −
1)δ
αβ,A
(α0β)γ= ρ
uαuβuγ+ ρ
c2s(θ −
1)[
uδ]
αβγ with[
uδ]
αβγ=
uαδ
βγ+
uβδ
αγ+
uγδ
αβ.θ
is defined according to temperature T asθ =
R T/
c2s.Theparameter Q denotesthenumberofdiscretevelocities.Forthethree-dimensionallattices, therearetwo common discrete velocity models, namelythe nineteen-velocity model (D3Q19)and the twenty-seven-velocitymodel (D3Q27) as showninTable2,whichareassociatedtotheequilibriumfunctions fieq,19and fieq,27,respectively.
ConsideringtheequilibriumdistributionfunctionofEq. (3),thedeviationtermsonthethird-ordermomentduetothe defectofsymmetrycanbecalculatedasfollows
αβγ
=
eqαβ,Mγ−
eqαβ,Qγ (4)where
αβγ denotesdeviationtermsonthethird-ordermoment.
eqαβ,Mγ and
eqαβ,Qγ arerespectivelythethird-ordermoment computedbyexactMaxwelliandistributionandbyQ-sitevelocitiesdiscreteequilibriumdistributionfunctionasfollows
Table 3
Thethird-ordermomentof3Dlatticemodels.
eqαβγ D3Q27 (3) D3Q19 (3) D3Q19r (8) Maxwellian (7)
eqxxx ρux ρux ρux ρuxuxux+3pux
xxx ρux(θ−1+u2x) ρux(θ−1+u2x) ρux(θ−1+u2x) 0
eqxxy ρuxuxuy+puy θ+1
2 ρc2suy+ρuy(u2x−u22z) ρuxuxuy+puy ρuxuxuy+puy
xxy 0 ρuy(θ−61+u22z) 0 0
eqxyz ρuxuyuz 0 0 ρuxuyuz
xyz 0 ρuxuyuz ρuxuyuz 0
eqαβ,Mγ
=
cαcβcγfeq,Md3c
=
p[
uδ]
αβγ+ ρ
uαuβuγ,
(5)eqαβ,Qγ
=
Q
−1 i=0ciαciβciγfieq,Q (6)
wherethepressurep
= ρ
c2sθ
satisfiestheequationofstateofperfectgas. feq,M isMaxwell-Boltzmanndistributionfunction, whichiswrittenasfeq,M
= ρ
12
π
R T3 2
exp
− (ξ
α−
uα)
2 2R T(7)
where R isthegasconstant. Thethird-ordermoments
eqαβ,27γ and
eqαβ,19γ computedusingD3Q27andD3Q19latticesfol- lowingEq. (3) and
eqαβ,Mγ computedusingtheexactMaxwellianequilibriumdistributionfunctionsaswellastheassociated deviationtermsof
αβγ aresummarizedinTable3.Itisobservedfromthetablethatonly
xxx,
y y y,
zzz isnon-zeroin D3Q27lattice set,whichrenderthecorrectiontermmuchsimplercomparedwiththeoneobtainedontheD3Q19lattice [40].ConsideringthesymmetryofGaussian-Hermitemoment [55,56],thefollowingnon-isothermalequilibriumdistribution functiononD3Q19lattice(denotedasD3Q19r)isintroducedtoreducethedefectofthethird-ordermoment
fieq,19r
=
wi⎡
⎣ ρ +
ciαc2s
ρ
uα+ H
(2) iαβ
2c4s
A
(α0β)+ [ HA ]
(i,3Q,019r) 6c6s⎤
⎦
(8)=
wiρ +
ciαρ
uα c2s+
A(0) αβ
H
(iα2)β2c4s
+
1 6c6s3
( H
(i,3xxy)+ H
(i,3yzz))(
A(xxy0)+
A(yzz0)) + ( H
(i3,xxy)− H
(i,3yzz))(
A(xxy0)−
A(yzz0)) +
3( H
(i,3xzz)+ H
(i,3xy y))(
A(xzz0)+
A(xy y0)) + ( H
(i3,xzz)− H
(i,3xy y))(
A(xzz0)−
A(xy y0)) +
3( H
(i,3y yz)+ H
(i,3xxz))(
A(y yz0)+
A(xxz0)) + ( H
(i,3y yz)− H
(i3,xxz))(
A(y yz0)−
A(xxz0))
Thethird-ordermoments
eqαβ,19rγ stemmingfromthenewequilibriumfunctionfortheD3Q19latticegivenbyEq. (8) are alsosummarizedinTable3.Asshowninthetable,thethird-ordermomenttermsrelatedtocixcixcixandcixciyciz remain thesameasfortheoriginal fieq,19equilibriumfunctionwhenconsidering fieq,19r,buttheexacttermsforcixciyciy arefully recoveredby therevisedequilibriumdistributionfunction.Thedeviationterms
xyzand
xxxoncixciyciz andcixcixcix are balanced by introducinga correctingterm
ψ
i,which canbe appliedasaforcing terminlattice BoltzmannBGKequation (1).ψ
i= −
wiH
(iα2)β 2c4s∂
∂
xγαβγ
,
i
ciαciβ
ψ
i= − ∂
∂
xγαβγ (9)
Thecorrectionterm
ψ
ionD3Q19latticeisgiveninthefollowingsimpleform:ψ
i=
wi 2c4sH
(ixx2)∂
∂
x[ ρ
ux(
1− θ −
u2x)] − H
(iyz2)∂
∂
x( ρ
uxuyuz) + H
(iy y2)∂
∂
y[ ρ
uy(
1− θ −
u2y) ] − H
(ixz2)∂
∂
y( ρ
uxuyuz) + H
(izz2)∂
∂
z[ ρ
uz(
1− θ −
u2z) ] − H
(ixy2)∂
∂
z( ρ
uxuyuz)
(10)
FollowingtheChapman-Enskogmultiscaletechnique(seeAppendixA),themassandmomentumconservationequations canberecoveredasfollows
∂ ρ
∂
t+ ∂
∂
xα( ρ
uα) =
0,
(11a)∂
∂
t( ρ
uα) + ∂
∂
xβ( ρ
uαuβ+
pδ
αβ) = ∂
∂
xβ(
αβ),
(11b)where
αβ isstresstensor,
αβ
= μ ∂
uβ∂
xα+ ∂
uα∂
xβ−
2 3∂
uγ∂
xγδ
αβ(12)
μ
is dynamic viscosity, which is relatedwith non-dimensional relaxationtime throughμ =
p( τ −
0.
5)δ
t in the present thermallatticeBoltzmannmodel.2.3. AssociatedrecursiveregularizationonD3Q19lattice
Therecursivelyregularizedoff-equilibriumdistributionfunctiononD2Q9ororiginalD3Q19modelasgiveninRef. [40]
isexpressedasfollows
R (
fineq) =
wiH
(2)iαβ
2c4s
A
(α1β)+ H
(3) iαβγ 6c6s
A
(α1β)γ(13) where
A
(α1β)=
iciαciβfineqand
A
(α1β)γ≈
uαA
(β1γ)+
uβA
(γ α1)+
uγA
(α1β).Consideringthesamesymmetryfeatureofcoefficient of Hermite polynomialsforoff-equilibrium, the associated off-equilibrium on improvedD3Q19 modelis now recursively regularizedasfollowsR (
fineq) =
wi A(α1β)H
(i2α)β 2c4s+
16c6s
3
( H
(i,3xxy)+ H
(i,3yzz))(
A(xxy1)+
A(yzz1)) + ( H
(i,3xxy)− H
(i,3yzz))(
A(xxy1)−
A(yzz1)) +
3( H
(i,3xzz)+ H
(i3,xy y))(
A(xzz1)+
A(xy y1)) + ( H
(i,3xzz)− H
(i,3xy y))(
A(xzz1)−
A(xy y1)) +
3( H
(i,3y yz)+ H
(i,3xxz))(
A(y yz1)+
A(xxz1)) + ( H
(i,3y yz)− H
(i,3xxz))(
A(y yz1)−
A(xxz1))
(14)
Itisworthnotingthatthecoefficientofthesecondviscositybeing-2/3isnaturallyrecoveredbyD3Q19latticemodelin contrasttoD2Q9model[40].Inthesamemannerusedin[37,40],aparameterizedhybridrecursiveregularizedprocedure is adopted to suppress non-hydrodynamic modes by using
A
(α1β,HRR)= σ A
(α1β)+ (
1− σ ) A
(α1β,FD).σ ∈
[0,
1] is an arbitrary weightingcoefficient.A
(α1β,FD)isestimatedbyitsChapman-Enskogsolutionwhichisapproximatedbyasecond-orderfinite- differencescheme[40].3. Entropybasedenergyconservationequation
In the presentstudy, the thermodynamic quantity forenergy conservation is solved by a finite volume method. The numerical stability of the solution isintrinsically tiedto the control of the discrete energy of thesolution, which must remainbounded.AsdiscussedinthecaseofNavier-Stokessolutions,e.g.[57],thesolutionshouldpreservethe secondlaw ofthermodynamicforentropyevolution.Therefore,theexplicitcontrol oftheentropyappearsasanaturalwaytoenforce bothnumerical stabilityandphysicalevolutionofthe entropyatthesametime. Thisleadseveralgroupstowork onthe entropicvariablesto solvebothEulerandNavier-Stokesequations,e.g. [58], orto designnumericalmethodthatpreserve entropy insmooth flows [59–66], or toderive new LBM schemes basedon the preservationof an entropic principle for manufacturedentropyvariable[22,24,67–69].
Asamatteroffact,themassconservationisnotexplicitlyandstrictlyguaranteedinLBmethods,somethingthatcanbe shownconsidering theChapman-Enskogexpansion [70]. Thislackofexactmass conservationinLBMmust betakeninto
account whendesigningan hybridmethod.Forinstance,an errorterm ρ implicitlyexists inmassconservationequation recoveredbyLBM
∂ ρ
∂
t+ ∂
∂
xα( ρ
uα) =
ρ (15)where
ρ scales as
O (
Kn2 ∂3(ρuα)∂xα∂xβ∂xβ
)
by considering third-orderterms in the Chapman-Enskog expansion [70]. Here, the Knudsen number Kn isassumedto be a smallparameter, which istrue forthe class offlows considered in thepresent paper.Itisworth keepinginmindthatahierarchyofhydrodynamicmodelscanbederived fromtheBoltzmannequation thankstotheChapman-Enskogexpansion(byincreasingorderintermsofsmallparameterexpansion:Euler,Navier-Stokes, Burnett,super-Burnett...)showingthatthedeparturefromEulerandNavier-Stokesequationsisaphysicalphenomenon.Inordertoanalyzetheimpactof ρ ontheentropyevolution,adensity
ρ
c thatsatisfiestheexactmassconservationis introduced,i.e.∂ ρ
c∂
t+ ∂
∂
xα( ρ
cuα) =
0 (16)Now omittingviscous productiontermsforthesakeofsimplicitywithoutrestrictingthegenerality ofthedemonstration, andstartingfromnon-conservativeformoftheentropyequation
∂
s∂
t+
uα∂
s∂
xα=
0 (17)thefollowingusualconservativeformofentropyevolutionequationisobtainedbycombiningEqs.(16) and(17):
∂ ρ
cs∂
t+ ∂ ρ
cuαs∂
xα=
0,
(18)wherenospurioussourcetermappears,thankstotheexactmassconservation.
Thisequationmustbemodifiedtoaccountforthe ρ term.Startingfromtheconservativeformofentropyequation
∂ ρ
s∂
t+ ∂ ρ
uαs∂
xα=
0,
(19)andaccountingforEqs. (15), (16) and(19),thefollowingconservativeformoftheentropyequationisobtained
∂ ρ
cs∂
t+ ∂ ρ
cuαs∂
xα= − ρ
cρ
ρs.
(20)Consequently,theconservativeformofentropy-basedenergyconservationcouldinducespuriousentropysource,whilethis termisnotpresentwhenthenon-conservativeformulationisused.Itisworthnotingthatthesameconclusionholdswhen considering theuseofother thermodynamicalquantitiessuchasinternalenergyortotalenergy.Anumericalvalidationof thistheoreticalanalysisfornon-conservativeformentropyequationiscarriedoutinSec.6.1.Therefore,anon-conservative formofentropyequationisusedinthepaper.
∂
s∂
t+
uα∂
s∂
xα=
1ρ
T∂
∂
xα(λ ∂
T∂
xα) +
1ρ
Tαβ
∂
uα∂
xβ,
(21)wheres
=
cvln(
p/ ρ
γ)
istheentropywithcvbeingspecificheatcapacityatconstantvolumeandspecificheatratioγ
.λ
is heatconductivity.AnexplicitEulerschemeisadoptedastemporalintegration.Theconvectivefluxisconstructedusingthird-orderMUSCL scheme [71] and vanAlbada limiter [72], while the classical second-order central difference scheme is adopted for the diffusiontermandtermofviscousdissipation.
4. Shockcapturingtechniqueandimproveddiscretizationofcorrectionterm 4.1. Shockcapturingtechnique
Thecomputationofflowcontainingshockwavesisanextremelydifficulttaskbecausesuchflowsresultinsharp,discon- tinuouschangesinflowvariablessuchaspressure,temperature,density,andvelocityacrosstheshock.Inordertocapture the shockand increase numericalstability, the shocksensorand associatedartificial viscosityused in Jameson-Schmidt- Turkel(JST)scheme [73] isadoptedinthepresentLBmodeltodetecttheshockwavefornon-smoothcompressibleflows, whichisgivenas
ε
α= κ
pi−1−
2pi+
pi+1pi−1
+
2pi+
pi+1(22)
whereiistheindexofCartesiangrid.
κ
isafreeparameterintroducedtotunetheartificialviscosity.Thevalueofκ
isset tounityinallthesimulationsofthisstudy.Accordingly,aneffectiverelaxationtimecanbesummedasτ
e= μ
p
+
max[ ε
x, ε
y, ε
z] δ
t (23)Thenthenon-dimensionalrelaxationtime
τ = τ
e/δ
t+
0.
5 isactuallyemployedinthefollowingtestcaseswithshocks.Itis worthnotingthatthevariables,e.g.densityρ
,entropyscanbealternativelyusedinEq. (22).4.2. Upwind-biaseddiscretizationofcorrectionterm
The discretization of correctionsterm in Eq.(10) requires specific treatment in supersonicflows withrespect to the subsonicflowcasetoensurenumericalstability,consideringthatthetruncationerrorofitsfinitedifferenceapproximation maypotentiallyviolentGalileaninvariant.Thecorrectiontermisderivedfromthird-ordermomentofequilibriumdistribu- tionfunction,whichinvolvesconvectivefluxesoftheenergyequation.Althoughtheenergyequationisnotdirectlysolved bytheLBapproach,thediscreteenergyoftheLBsolutionobeysan evolutionequationthat canbederivedfromtheLBM scheme,exactlyasdoneforthediscreteenergyofNavier-Stokescomputationalsolution,e.g.,[74,75,61,62,57,76–80,63].Asa consequence,thethermalandkineticenergyoscillationscanimplicitlyweakenthenumeralstability.Therefore,adissipative termisintroduced inthemomentumequation inordertopreventspurious growthofthediscreteenergyofthesolution, whichappearsasasinkterminthediscreteenergyequation.ThedetailedChapman-Enskoganalysisoftheenergyequation ispresentedinAppendixA.
Inordertoimprovethenumericalstabilitybycontrollingthediscreteenergyofthesolution,alow-dissipativesecond- orderupwindschemeisadoptedinthisstudytodiscretizedthecorrectionterminthemomentumequation,e.g.,foru
>
0∂
∂
x=
14
x
(
i−2−
5i−1
+
3i
+
i+1)
(24)whereahalf centraldifferenceandahalf second-orderupwinddifferenceisusedinthisupwindschemetoapproximate thepartialdifferenceoperatorinthecorrectionterm.Itisincontrasttoisotropiccentraldiscretizationinthecompressible LBmodelforsubsonicflows[40].
5. Implementationofthemethod
ThefullprocedureofthehybridLBmethodforcompressibleaerodynamicsissummarizedasfollows
1. Initializethemacroscopicvariables
ρ
,uα,T,saswellasdensitydistributionfunctionandcorrectiontermψ
i. 2. Implementboundarytreatmentformacroscopicvariablesanddensitydistribution.i) Themacroscopicvelocitiesρ
B,uB,TB and pB ontheboundarynodesaredirectlycomputedfortheplanarboundariesorestimatedfromtheir neighbor fluidnodesusingShepard’sInverseDistanceWeighting(IDW)methodforcurvedboundaries,followingboundarycon- ditionscommonlyused inclassicalNavier-Stokessolvers. ii)thedensitydistributionfunction iscomputedby afinite differencereconstruction approach[81,40].iii) Theboundarycondition forentropyequation,entropy sB,iscalculated using
ρ
B and pB by thermodynamicclosure.Implementationdetailsarethesameasin[40] andwillnot berepeated here.3. PerformcollisionandstreamingprocedurebyEq.(1) atthen+1timestep.
4. Updatedensity
ρ
andvelocityuα atthen+1timestepbyusingEq.(2).5. Solveentropyequation(21) bythefinitevolumemethodandupdateT andpofthen+1timestepbyusingthermody- namicclosure.
6. Validation:numericalresultsanddiscussion
Theproposedmethodisassessedconsideringsixcasesdealingwithcompressiblesubsonictosupersonicflows:
1. 2Disentropicvortexconvection, 2. 3Dnon-isothermalacousticpulse, 3. 2Dsupersonicflowoverabump, 4. 3Dshockexplosioninabox,
5. 2Dvortexinteractionwithshockwave,
6. 2DlaminarflowwithMa=(0.5,1.0,1.5)overaflatplate.
Inthesesimulations,theinviscidflowsaretreatedasquasi-inviscid,withavery smallnon-dimensionalviscosity
μ =
10−15. The valueofσ
plays arole ofhyper-viscosity inthe HRR-LBMmodelandthehyper-viscosity decreases by increasingσ
, whichwasillustratedandinvestigatedin[37,40].Asamatteroffact,theglobalsecond-orderaccuracyofthemethodwithσ =
0.
5 iswell confirmed inthe caseofisentropicvortex convectionin Sec. 6. Thus, therecommended minimumvalueσ
isσ =
0.
5 inthein-viscidcompressibleflows,σ =
0.
7 intheviscoussupersonicflows,andσ =
0.
9 intheviscoushighFig. 1.Thedistributionsofdensityandvelocityonthemid-lineatt=50T (x=0.025).(Forinterpretationofthecolorsinthefigure(s),thereaderis referredtothewebversionofthisarticle.)
Fig. 2.Convergence rate study of the proposed LB. The relative error is computed throughL2error on density att=50T.
subsonicflows.Allofthe2Dand3DcomputationalexamplespresentedinthenextsectionwereobtainedwithintheD3Q19 frameworkintheProLBsolver[82].
6.1. Isentropicvortexconvection
TheproblemofisentropicvortexconvectionisfirstconsideredtoassesstheproposedHRR-LBmethodandtoinvestigate the influence of the formulationof the entropyequation. The size ofthe computational domain is
[
0,
10] × [
0,
10]
. The uniformfree-streamparametersareρ
∞=
1,
u∞=
1.
0,
v∞=
0,
p∞=
1,
Ma∞=
0.
84515.Attheinitialtime,thefollowing disturbanceisaddedtotheabovefree-stream:ρ =
1
− ( γ −
1)
b2 8γ π
2 e1−r2
γ−11,
p= ρ
γ,
(25)u
=
u∞−
b 2π
e1 2
1−r2
(
y−
yc) ,
(26)v
=
v∞+
b 2π
e1 2
1−r2
(
x−
xc) ,
(27)whereb
=
0.
5,
xc=
5,
yc=
5 andr=
(
x−
xc)
2+ (
y−
yc)
21/2.Inthissimulation,theHRRweightingparameteris
σ =
0.
5.Fig.1showsthedistributions ofdensityandvelocityalong thesymmetry lineofthedomainafter50flow-through-times, i.e.t
=
50T.These distributions areobtainedusing agrid size equaltox
=
0.
025. From thefigure, itcan be seenthat presentresultsmatchverywellwiththeanalyticalsolution.Inordertostudytheglobalspatialaccuracyofthepresentmethod,differentmeshsizesarenowconsidered,i.e.
x
=
0.
05,
0.
1,
0.
2.Fig.2displaystheconvergencerateoftheL2-normoftheerroroftheproposedLBmethod.ForthefinegridFig. 3.Thedensitycontours(from0.993to0.999with20levels).Left:resultsobtainedconsideringtheconservativeformoftheentropyequation;middle:
resultsobtainedusingthepresentLBmethodwithaconservativeentropyequation,butinwhichanauxiliarydensityfieldcomputedbysolvingtheexact massconservationequationwithafinitevolumesolverisused;right:presentLBmethodwithnon-conservativeentropyequation.
resolutions,itisobservedthatthepresentmethodexhibitsasuper-convergencepropertywithaslopecloseto3,asalready reportedforsome LBmethods[83].Theseresults assesstheaccuracyofpresentcompressibleHRR-LBMmethodequipped with3rd-orderMUSCLschemefortheentropyconvectionterm.
Asmentionedinsection3,theconservativeformofentropy-basedenergyconservationequationcouldinduceerroneous entropysources.Thispointwillnowbeillustratedbyadequatenumericalexperiments.Moreprecisely,threemethodswill becompared:
•
HRR-LBMsupplementedbyanequationforρ
swritteninconservativeform•
HRR-LBMsupplementedbyan auxiliaryequationforρ
cswritteninconservativeform,wherethe“exact”densityρ
c is computedsolvingan additionalequationby aclassicalfinitevolume method.Thismethodisintroducedhereonlyto assessthetheoreticalanalysisgivenabove,andisnotproposedasaregularmethodforapplications.•
HRR-LBMsupplementedbyanequationforswritteninnon-conservativeformResultsobtainedwiththesethreeapproachesaredisplayedinFig.3.Itcanbeseenfromtheseresultsthatthespurious entropyproductioncorrupts theevolutionofdensityveryquickly.However, boththeconservativeentropy withcorrected densityand non-conservative entropyexhibit very goodsolutions and numericalstability. Thispoint is further validated looking atthe time historyof theentropy field displayed in Fig.4. Itis observed that thenon-conservative formof en-
Fig. 4.Time history of the entropy obtained by the different forms of entropy equation.
Fig. 5.Thepressure,u-velocity,densityandtemperaturefieldsattimetend=1.0 obtainedusingpurerecursive-regularizationcollisionmodel(parameter σ=1)ongridresolutionofx=0.02.
tropy equation yields very satisfactory stableresults withconstant entropy, while the conservative formleads to a very rapid growthofentropy,duetospurious sourcetermsarising fromthelackofconsistencywiththeLBM massconserva- tion.
Fig. 6.Comparison of profiles along x-direction middle line. (Lines: present LBM, symbols: reference solution obtained by grid spacing ofx=0.0002).
6.2. Non-isothermalGaussianpulse
Here, we considera three-dimensional thermalacousticwave travelinginradial directionincluding temperatureevo- lution.The aim of thistest caseis to verifythe preservation ofisotropy by the presentD3Q19 modeland the coupling betweenvelocity,pressureandtemperature.Theinitialconditionisgivenby:
ρ =
1.
0,
p=
1+
exp(−
kr2),
u=
0,
v=
0,
w=
0 (28) wherer=
(
x−
xc)
2+ (
y−
yc)
2+ (
z−
zc)
21/2isthedistancefromthepulsecenter
(
xc,
yc,
zc) = (
0,
0,
0)
.Theperturbation parameteristakenequaltok=
40.The computationaldomainsize is[−
1,
1] × [−
1,
1] × [−
1,
1]
,withperiodicboundary conditions.Thepresentsimulationsareperformedon100×
100×
100 (x
=
0.
02)and200×
200×
200 (x
=
0.
01)grids withδ
t of0.00667and0.00333,respectively.Thepressure,u-velocity,densityandtemperaturefieldsattime tend
=
1.
0 obtained usingpurerecursive-regularization collision model(parameterσ =
1) ongrid resolution ofx
=
0.
02 arepresented inFig. 5.It is found that theisotropic evolutioniswellpreservedbythecompressibleD3Q19LBmodel.Fig.6displaystheprofilesofpressure,horizontalvelocity, densityandtemperatureobtainedbytheproposedLBmodel usingHRR parameter
σ =
0and1 on gridresolution ofx
=
0.
02 and 0.
01 at time tend=
1.
0.A very goodagreement withthereferencesolutionisobtained,showingthecapabilityofthepresentmethodtocapturethermodynamiccouplings andnonlinearwavepropagation.Thecomputationofthereferencesolutionwasperformedusingasecond-orderTVDfinite volume schemewiththe Osher type flux using104 cells in1D [84,85]. It isobserved that the smallvalue ofparameterσ
inducesafinitedissipatingoncoarsegridresolution.Thehyper-viscousfeatureoftheHRRcollisionmodelisconsistent withthetwo-dimensionalLBmodel [40].Fig. 7.Pressure, density and Mach number fields obtained by the present D3Q19 LB model on grid sizex=0.005.
6.3. Inviscidsupersonicflowovera4%circularbump
Thesecondcaseisaveryclassicalonetoinvestigatetheaccuracyandrobustnessofthenumericalmethodwhendealing with shockwave, i.e. theinviscid steadysupersonicflow in a channel with a bump atinlet Mach numberequal to 1.4.
The inviscid fluidbehavior ismimickedinthe presentLBM by enforcingavery smallmolecularviscosityalong withslip boundary conditionsatsolid wall(thereforepreventingthegrowthofboundarylayers).The domainofthe channelisx
∈ [−
1.
5,
1.
5] ×
y∈ [
0,
1]
.Thebumpissetonthebottomofthechannelfromx= −
0.
5 to0.
5.Theheightofthebumpis0.
04.Theinletboundaryofthedomainisasupersonicinflowwiththefixedvalues
ρ
∞=
1.
0,
p∞=
1/ γ ,
T∞=
p/ ρ ,
u∞=
1.
4.Thesupersonicoutflowconditionsareimplementedontheoppositeboundary.Otherboundariesarefree-slipadiabatic walls. Inthesimulations,thepresentLBmodelisassessedon600×
200×
1 (x
=
0.
005) and300×
100×
1 (x
=
0.
01) gridswiththetimestepδ
t being0.00166and0.00333,respectively.ThevalueofHRRparameterσ
issetto0.9.Fig.7showsthepressure,densityandMachnumberfieldsobtainedonthefinegrid.It canbeseenthatthereflection andinteractionoftheshockwavesarevery wellcapturedwithoutnonphysicalwiggles.Asa quantitativecomparison,the MachnumberdistributionsonthebottomandtopwallsareplottedinFig.8.Thereferenceresultsmarkedbythesymbols were reported in Ref. [86]. The reference solution was obtained using the artificial compression method (ACM) witha second-orderaccuracyon90
×
30 nonuniformbody-fittedgrids.Inthecomparison,itcanbefoundthatboththeresultson coarseandfinegridsareinexcellentagreementwiththereferenceresults.ThepressureandMachnumberprofilesalonghorizontal(y
=
0.
5)andvertical(x=
0)mid-lineareshowninFig.9.The referenceresultsareobtainedusingtheRoeschemeandJSTschemeimplementedinasecond-orderaccuratefinitevolume solver(FVM)fortheEulerequations.BoththesolutionsoftheLBMandtheFVMarecomputedontheuniformgridspacingx
=
0.
005.Fromthisfigure,itcanbeseenthattheresultsobtainedbythepresentLBMareveryclosetothosebytheFVM.6.4. Sphericalexplosionina3Denclosedbox
A spherical explosion ina 3D enclosed box is considered to assess capability of the presentmodel to capture three dimensionalcomplexshockwaves.Thenumericaltestisanunsteadycompressibleflow.Theinitialconditionofthisproblem areillustratedinFig.10.
Fig. 8.Mach number distributions obtained by the present D3Q19 LB model. (Lines: present results, symbols: reference solution in Ref. [86].)
Fig. 9.Machnumberandpressuredistributionsalongmid-line.ThereferencesolutioniscomputedusingaclassicalEulersolverbasedontheFiniteVolume Methodwiththesecond-orderRoeschemeandJSTscheme.
Fig. 10.Initial condition for spherical explosion in 3D enclosed box.
Fig. 11.Instantaneous density isosurface ofρ=1.8 in the 3D enclosed box.
Thecomputationaldomainisaunitcubeandalltheboundaryconditionsarefree-slipadiabaticwalls.Thecomputational gridresolutionis100
×
100×
100 andtimesteptakenequaltoδ
t=
0.
00333.TheHRRparameterσ
issetto0.7.The densityiso-surfaces
ρ =
1.
8 obtained att=
0.125, 0.25, 0.375 and 0.5 are shown in Fig. 11. The instantaneous evolutionagreeswellwiththereferencesolutionpresentedin[87].Inordertofurthercompareourresultswithothersolutions,thedensitycontoursinthez
=
0.
4 planeatt=
0.
5 obtained bypresentLBmodelandbythefinitevolumesolverarepresentedinFig.12.Itcanbefoundthatthecomplexflowfeatures such asthe shockwave interactionsarewell capturedbythepresentmodel.Thedensitycontours computedviaLBMare similar withthoseoftheFVMsolution.Forthequantitativecomparison,thedensity,temperatureandMa numberprofiles obtained by the above two methods at t=
0.
5 are shown inFig. 13. It is seen that the present LB results are in good agreementwiththeresultsofFVM.6.5. Shock-vortexinteractions
This test case deals with the interaction ofa stationarynormal shockwave witha single vortex.The shockwave is definedbyanupstreamMachnumberMs.Therightandleftstatesofthenormalshockareasfollows:
ρR=1.0 ρL= (γ+1)M2s 2+(γ−1)M2s
ρR pR=1.0 pL=( 2γ
γ+1M2s−γ−1 γ+1)pR TR=pR/ρR TL=pL/ρL
uR= −Ms uL= −2+(γ−1)M2s (γ+1)M2s
Ms vR=0 vL=0
Fig. 12.Densitycontoursina2Dslicethroughz=0.4 att=0.5.(a)thepresentsolutionobtainedbyHRR-LBmodelon100×100×100 grids,(b)the referencesolutioncomputedbyafinitevolumesolverwiththesecond-orderRoeschemeonthesamegridresolution.Thecontoursaredisplayedfrom0.1 to2.6with40levelsinthebothfigures.
Fig. 13.Density,temperatureandManumberprofilealongcrosslinesina2Dslicethroughz=0.4 att=0.5.ThepresentsolutionisobtainedbyHRR-LB modelon100×100×100 grids,andthereferencesolutioncomputedbyafinitevolumesolverwiththesecond-orderRoeschemeonthesamegrid resolution.
Theinitialdensity,pressure,tangentialandradialvelocitiesofthevortexareexpressedby
ρ
θ(
r) = [
1− γ −
12 M2vrexp
(
1−
r2)]
γ−11,
p(
r) =
1γ ρ
γ(
r).
(29)uθ
(
r) =
Mvrexp[ (
1−
r2)/
2] ,
ur(
r) =
0,
(30)wherethedistancefromthevortexcorerisnon-dimensionalizedbythevortexradiusR.
Theaboveflowfieldofvortexisaddedtotheupstreamoftheshockwaveatinitialtime.Thefollowingflowparameters areusedinthetest:
Ms
=
1.
2,
Mv=
0.
25,
Re=
800,
R=
1, γ =
1.
4 (31)TheReynoldsnumberisdefinedby Re
= ρ
RaRR/ μ
withaR beingthesoundspeedoftheupstreamoftheshock.Acompu- tationaldomain[-20R,8R]×
[-12R,12R]isconsideredinthesimulation.Initiallythesinglevortexislocatedatx=
2R and y=
0,andtheplanarshockwave isspecifiedatx=
0 by imposingdensity,velocityandpressurevariablescorresponding totheaboveleftandrightstatesofthenormalshock.Inthissimulation,thegridresolutionis1120
×
960×
1,thetimestepissettoδ
t=
0.
00833 andtheHRRparameterσ
is takenequalto0.7.ThepressurefieldsatdifferenttimeareshowninFig.14.Here,thesoundpressureisp
= (
p−
pL)/
pL. Thesoundpressurecontoursarefrom-0.48to0.16with60levels.Itcanbefoundthattheseresultsareverysimilarwith thesoundpressurefieldsgiveninRef. [88].Fig. 14.InstantaneoussoundpressurecontoursobtainedbyHRR-LBmodelon1120×960×1 grids.Thesoundpressurep=(p−pL)/pL contoursare from-0.48to0.16with60levels.
TheradialdistributionsofthesoundpressureareplottedinFig.15.Inthefigure,risthedistancefromthecenterofthe vortexwithafixedangle
θ = −
45◦.Fig.16isthecircumferentialdistributionsofthesoundpressureatt=
6T.Inthosetwo figures,theresultsrepresentedbysymbolsarefromRef. [88].Thosereferenceresultswereobtainedusingafinitedifference methodwithasixth-order-accuratecompactschemeinspaceandthefourth-orderRunge-Kuttaschemefortime-integration on1044×
1170 non-uniformgrids.ItcanbeobservedthattheresultsobtainedbyLBareinverygoodagreementwiththe referenceresults.6.6. Compressiblelaminarflowoverflatplate
Thecompressiblelaminarflowoverflatplatehasbeeninvestigatednumericallyandtheoreticallyovertheyears [89,90].
Here, we usethis problemtoassess thecapability ofthe presentmethodon handlingthe viscous effects.Consideringa compressibleflowwithupstreamMach numberMa∞
=
0.
5,
1.
0,
1.
5 over aplateoflength L,thecomputational domain is x∈ [−
0.
25,
1] ×
y∈ [
0,
h] ×
z∈ [
0,
x]
. Here,x denotes the mesh size which is
x
=
1.
25×
10−3. h is setto 1.
25Fig. 15.Radialdistributionsofthesoundpressurep.risthedistancefromthecenterofthevortexwithafixedangleθ= −45◦.Thesolidlinesrepresent thepresentLBsolutionandthesymbolsdenotethereferencesolutioninRef. [88].
Fig. 16.Circumferentialdistributionsofthesoundpressurepatt=6T.ThesolidlinesrepresentthepresentLBsolutionandthesymbolsdenotethe referencesolutioninRef. [88].
forMachnumber1
.
5 and1.
0.ForMach0.
5,onetakesh=
0.
25.The HRRparameterissettoσ =
0.
9 andthetimestepδ
t=
4.
166×
10−4.Theboundaryconditionsaresetasfollows:•
SymmetryBConat y=
0, −
0.
25≤
x<
0.•
No-slip,adiabaticBCony=
0,
0≤
x≤
1.•
InflowBCatx=
0 withρ
in=
1,and(
u,
v)
in= (
u∞,
0)
.•
Subsonicoutflowaty=
handx=
1 withpressure pout=
1/ γ
forMa∞=
0.
5.•
Supersonicoutflowat y=
handx=
1 forMa∞=
1.
0,
1.
5.Inorder toobtain asteadylaminarsolution,the Reynoldsnumberistaken as104.Avariable temperature-dependent viscositygivenby
ρμ = ρ
∞μ
∞isusedinthissimulation.ThePrandtlnumberistakenequalto1.0.TheseviscosityandP r aresetaccordingtothereferencesimilaritysolutionsofcompressibleboundarylayer [91].Fig.17displaysthecontoursofMachnumberobtainedbythepresentLBmodelatMa
=
1.
5.Fig.18showstheprofiles of horizontal velocity, temperature, densityand skin friction obtained by the presentLB model. In the figure,η
is the dimensionlesscoordinatewithIllingworthtransformwhichisdefinedastheone inreference [40]. Thereferencesolution oftemperatureanddensityareobtainedusingthewayin[40]. Cw istheChapman-Rubesinparameter whichisequalto 1undertheconditionofρμ = ρ
∞μ
∞.Fromthefigure,itcanbe foundthatthesimulatedvelocityprofilesandreference solutionareinaverygoodagreementatMa∞=
0.
5,
1.
0,
1.
5.Thiskindofgoodagreementcanalsobefoundbetweenthe skinfrictionpredictedbytheLBmethodandtheonesoftheBlasius solution.Forthedensityandtemperature,theresultsFig. 17.Mach number field of laminar boundary layer problem atMa∞=1.5.
Fig. 18.Profileofhorizontalvelocity,temperature,densityandskinfrictionobtainedbytheLBmethodonlaminarflowoverflatplateatMa∞=0.5,1.0 and1.5.ThesolidlinesrepresentBlasiussolutionatthecorrespondingManumber.