Contents lists available atScienceDirect
C. R. Acad. Sci. Paris, Ser. I
www.sciencedirect.com
Numerical analysis/Mathematical problems in mechanics
An interface condition to compute compressible flows in variable cross section ducts
Conditions d’interface pour le calcul d’écoulements compressibles en conduite à section variable
Jean-Marc Hérard
a,b, Jonathan Jung
c,d,eaEDFR&D,MFEE,6,quaiWatier,78400,Chatou,France
bI2M,UMRCNRS7353,39,rueJoliot-Curie,13453 Marseille,France
cLMA-IPRA,UniversitédePauetdespaysdel’Adour,UMRCNRS5142,avenuedel’Université,64013Pau,France dINRIABordeauxSudOuest,CagireTeam,351,coursdelaLibération,33405 Talencecedex,France
eLJLL&LRCManon,4,placeJussieu,75005,Paris,France
a r t i c l e i n f o a b s t r a c t
Articlehistory:
Received19June2015
Acceptedafterrevision4November2015 Availableonline4February2016 PresentedbyOlivierPironneau
We proposeanimprovedinterfaceconditioninordertoaccountforheadlosses inpipe whensomediscontinuouscrosssectionsoccur.
©2015Académiedessciences.PublishedbyElsevierMassonSAS.Thisisanopenaccess articleundertheCCBY-NC-NDlicense (http://creativecommons.org/licenses/by-nc-nd/4.0/).
r é s um é
Nousproposonsd’améliorerlaconditiond’interfaceafindeprendreencomptelapertede chargepourunécoulementenconduiteàsectionvariablediscontinue.
©2015Académiedessciences.PublishedbyElsevierMassonSAS.Thisisanopenaccess articleundertheCCBY-NC-NDlicense (http://creativecommons.org/licenses/by-nc-nd/4.0/).
1. Introduction
We examinein thispapersome possible improvementofthe well-balancedstrategy inorder tocompute approxima- tionsofsolutionstoEuler-typemodelsinone-dimensionalgeometriescorrespondingbasicallytopipeconfigurations.From a practical point of view, these methods are very usefulin order to build stable and efficient algorithms. If
ρ
,u,p re- spectivelydenote thedensity,the velocityandthe pressureofthe fluid,andnotingasusual(p,
ρ
)the internalenergy, E=ρ
(p,
ρ
)+u2/2thetotalenergy,andA(x)the–steady–crosssectionofthepipe,thetargetsetofequationsis
⎧ ⎨
⎩
∂
t(
Aρ ) + ∂
x(
Aρ
u) =
0,
∂
t(
Aρ
u) + ∂
xA
ρ
u2+
Ap−
p∂
xA=
A(
x)
Sru,
∂
t(
A E) + ∂
x(
Au(
E+
p)) =
A(
x)
u Sru,
(1)
E-mailaddresses:[email protected](J.-M. Hérard),[email protected](J. Jung).
http://dx.doi.org/10.1016/j.crma.2015.10.026
1631-073X/©2015Académiedessciences.PublishedbyElsevierMassonSAS.ThisisanopenaccessarticleundertheCCBY-NC-NDlicense (http://creativecommons.org/licenses/by-nc-nd/4.0/).
andtheassociatedunknownisW=(A
ρ
,Aρ
u,A E)T.Thetermsontheright-handsideSrU standfortheregularheadlosses, which accountforviscous effectsonthe wallsofthe pipe.Thissetofequationsismeant whenthecross-section A(x)is regular (at least C2). In practice,this information is provided by the user. When convergent or divergent regions occur in the pipe, andwhen the meshesthat are used are rather coarse, the well-balancedstrategy naturally arises forthose who use FiniteVolumemethods. Inthat case, thecross section isassumedto be constantwithin each cell, andanother equation is added to (1), which is ∂tA=0. The idea is very appealing, and many authors have been investigatingthat particular topic, bothat thecontinuous anddiscrete levels,among whichwe mayatleastcite [2,3,8–10,12]. Thoughthe crosssection A(x)isknown,thenewunknownisnow W˜ =(A,Aρ
,Aρ
u,A E)T,andtermsoftheformψ(W)∂xA arenow partofthe convectivesubset.Meanwhile, asteadywave associatedwithλ=0,correspondingtothe “constraint”∂tA=0 arises. The one-dimensionalRiemannproblemassociatedwithsystem(1) complementedwith∂tA=0 anddiscontinuous initialconditionsmaythenbeinvestigated.Asaconsequence,thereisthetemptationtousethisapproachnotonlytodeal withregular crosssections,butalsoto applyitwhen discontinuitiesare presentinthe pipe,whichisobviouslyofmajor interest for practical computations in an industrial framework. In that case, the classical well-balanced strategy simply assumes thatinterface conditionsthat should beenforced atthesteadyinterface separatingtwo cells withdistinctcross sectionscorrespondtotheRiemanninvariantsofthesteadywave.InthecaseofEulerequations,thismeansthatquantities Q=Aρ
u,Q H whereH=(E+p)/ρ
andtheentropys(p,ρ
)shouldbepreservedacrossthesteadyinterface.Well-Balanced (WB) schemesrelyingonthisapproachcanthenbebuilt,andsomeofthembehavequitewellowingtotheirstabilityand abilitytomaintainwell-balancedinitialconditions,evenwhenthecrosssectionisdiscontinuous.ItevenseemsthattheWB techniqueismandatoryinordertoachievenumericalconvergencetowardsthecorrectsolutions(seeforinstance[6,11]).Nonetheless,amajordrawbackishiddeninthebasicformulation.Thisisduetothefactthatforthecaseofdiscontinu- ous crosssections,thephysicalsingularheadlosseshavenotbeenaccountedfor.Asaresult,thecomparisonofthe“true”
multi-dimensionalsolutionandoftheone-dimensionalwell-balancedcomputationalresultsisratherpoor;thisisdescribed in[7]forinstance.Oneretrievestheexpectedresultsthat arethefollowing:the quantities Q =A
ρ
u,Q H should remain constant acrossinterfacessupportingdiscontinuous crosssections,butthe entropydoesnot. Thisisdirectlylinkedto the factthatsomesingularcontributionhasbeenomittedinthemomentumequation.In order to cure that deficiency, at least two strategies may be proposed. A first one simply consistsin a modified one-dimensionalapproachthatwouldrelyonan integralformulationofthemulti-dimensionalsetofgoverningequations.
This scheme (called 1D+ in the sequel) hasbeen partially investigated in[1], andthisseems to be a ratherpromising technique in order to handle this difficulty. Anotherstrategy that is appealing in based on similar ideas, and it simply consistsinenforcinganewsetofinterfaceconditionsatthesteadyinterfaceassociatedwiththecross-sectiondiscontinuity.
The basicrequirementisthat thesemodifiedinterface conditionsshouldaccountforsingular headlossesduetopressure effects,atleastinaweakway.Thisispreciselythemainobjectiveofthepresentcontribution.
Thus the paperisorganized asfollows: we firstlyintroduce thenewinterface condition, we secondly explain howto compute left andrightstates satisfyingthe newinterface condition, we thirdly introduce thenumerical schemeandwe finallydosomenumericalvalidations.
2. Anewformulationforflowsinvariablecrosssectionducts 2.1. Thenewinterfacecondition
WeomittheregularheadlossesinSystem(1),whichmeansthatSru=0 inSystem(1).Integratingthemulti-dimensional Eulerequationsonthephysicaldomain(seeFigurebelow),wemaynowproposethreenaturalcandidatesforthesteady interfaceconditions
⎧ ⎨
⎩
[Q]+−
=
0,
[Q u
+
Ap]+−−
p[A]+−=
0,
[Q H]+−=
0,
(2)
withp
=
p−,
ifA−>
A+,
p+
,
otherwise,
(3)wherewenoteby·+(resp.·−)thevalueofthequantityontheright(resp.theleft)sideofthediscontinuousinterface.The choice ofthewallpressure pisbasedonthetwo-dimensionalapproach.Indeed,ifwe haveacontractionwith A−>A+ (resp.anexpansionwith A−<A+),thepressureontherestrictedwallistheleft(resp.right)pressure.
2.2. Computationofleftandrightstatessatisfyingtheinterfacecondition(2)
Weassumethatthefluidsatisfiesaperfectgasequationofstates:p=(
γ
−1)ρ
. W+=W+W−
:weassumethatW−isknownandwecomputeW+suchthattheinterfacecondition(2)issatisfied.For givenvalueofW−,wecancompute Q−=A−
ρ
−u−andH−=γγ−1ρp−−+(u−2)2.Thefirsttwoconditionsin(2)giveu+
=
Q−A+
ρ
+ and p+
=
p−+
Q− minA−
,
A+u−
−
Q− A+ρ
+.
Injectingthesetwoquantitiesinthethirdconditionof(2),wededucethat
ρ
+isarootofthesecond-orderpolynomial:P−
(
X) =
H−X2− γ γ −
1p−
+
Q− minA−
,
A+u−X
+
Q−2A+
γ
γ −
1 1 minA−
,
A+−
1 2A+=
0.
(4)W−=W−(W+): we now assume that W+ isknown andwe compute W− asa function of W+. Given W+, we com- pute Q+=A+
ρ
+u+andH+=γγ−1ρp+++(u+2)2.Wegetatonce:u−
=
Q+A−
ρ
− and p−
=
p++
Q+ minA−
,
A+u+
−
Q+ A−ρ
−where
ρ
− isarootofP+
(
X) =
H+X2− γ γ −
1p+
+
Q+ minA−
,
A+u+X
+
Q+2A−
γ
γ −
1 1 minA−
,
A+−
1 2A−=
0.
(5)Ifequations(4)and(5)havetwodistinct realsolutions,we choosetheonethat hasthesamesonicityasthestateon theothersideoftheinterface.Ifthereisonlyonesolution,wechoosethisuniquesolution.Whenthereisnorealsolution, thealgorithmisstopped.
2.3. Numericalscheme
Wepresentaschemeforapproximatingsolutionstosystem(1)on[xmin,xmax],relyingontheargumentsintheprevious sections.Given an uniform time step t anda mesh size x= xmax−Nxmin, setting xj=xmin+jx,j=0· · ·N, andtn= nt,n∈N,we denoteby Wnj the approximationof thevalues W(xj,tn) oftheexact solutionto system(1).The WB–HJ schemeisdefinedby
Wnj+1
=
Wnj−
tx FRus Wnj
,
Wnj+1−−
FRus Wnj−1+,
Wnj(6)
where
Wnj+1 −
= W−
Wnj+1
,
Wnj−1 +
= W+
Wnj−1
are computed in Section 2.2, and the numerical flux FRus(Wl,Wr)istheRusanovflux
FRus
(
Wl,
Wr) =
F(
Wl) +
F(
Wr)
2
−
max( |
ul| +
cl, |
ur| +
cr)
2
(
Wr−
Wl)
(7)with F(W)=(Q,Q u+Ap,Q H)T. The WB–HJscheme is an adaptation ofthe scheme ofKröner andThanh [12], called WB–KT inthesequel,forwhichtheclassicalinterfaceconditionon
Q,s=ρpγ,H
isreplacedbythenewinterfacecondi- tion(2).
Proposition1.TheschemeWB–HJiswell-balanced:ifforall j, Q0j =Q0, I0j=I0and H0j=H0where I:=Q u+A(p−p),then forall j andforall n,
Qnj
=
Q0j=
Q0,
Inj=
I0j=
I0 and Hnj=
H0j=
H0.
(8) 3. NumericalresultsForalltest cases,we chooseaperfectgas equationofstate: p=(
γ
−1)ρ
, whereγ
issetto 7/5.The time stept satisfiestheCFLconditionwheretheCFLconstanthasbeensetto 0.4.3.1. Astationaryflowforthenewinterfacecondition(2)
We start witha test casewhereinitial conditions are Well-Balancedin thesense of (8) forthe newinterface condi- tion(2).Inpractice,weconsiderthefollowingvalues
(
A, ρ ,
u,
p) (
x,
t=
0) =
(
2,
4.
711, −
10.
614,
38.
588) ,
ifx<
0,
(
1,
10, −
10,
100) ,
otherwise. (9)Fig. 1.Astationaryflowforthenewinterfacecondition(2):densityρ (topleft),meandischargeQ (topmiddle),totalenthalpyH(topright),physical entropys(bottomleft)andthevariationofthenewinvariantI=Q u+A(p−p)(bottomright)attimet=0.2 sforaninitialconditionsatisfyingthe newinterfacecondition(2).
Fig. 2.AclassicalRiemannproblem:densityρ(left),velocityu(middle)andL1normoftheerrorforthedensity(right).Thecoarserandfinermeshes usedforthecomputationoftheerrorcontainN=200 andN=15000 regularcells.
The computational domain is [−0.5,0.5], the mesh contains 4000 nodes. In Fig. 1, we plot the density, the mean dis- charge Q, the total enthalpy H, the physical entropy s and the variation of the new invariant I=Q u+A(p−p) at time t=0.025 s. Acrossthe interface x=0, Q and H arepreservedby thethreeschemes: 1D+[1],WB–HJandWB–KT.
Thedifferencebetweentheselasttwoschemesisontheinvariant I:WB–HJpreservesI,whilesispreservedbytheWB–KT scheme.
3.2. AclassicalRiemannproblem
OneadvantageoftheWB–HJschemeagainstthediscrete 1D+scheme[1]isthatwecancompareourresulttotheexact solutiontoaclassicalRiemannproblem.Theexactsolutioniscomputedwiththeclassicalapproachwhereweusethethree invariants(Q,I,H)atthesteadycontactdiscontinuity.WeconsidertheRiemann probleminvolvingashockwaveon the leftoftheinterfacediscontinuity
(
A, ρ ,
u,
p) (
x,
t=
0) =
(
2,
2.
970,−
9.
093,
20) ,
ifx<
0,
(
1,
10, −
10,
100) ,
otherwise. (10)Thefinal timeofcomputation ist=0.03 s.InFig. 2,weplotthedensity
ρ
andthevelocity uobtainedwith 4000 nodes.The approximatedsolutionisclosetotheexactsolution.Wealsoperformaconvergencestudyonthedensityvariable.It maybecheckedthattheconvergencerateisverycloseto 0.8 inL1norm.
Fig. 3.A shock wave hitting a section contraction: densityρ(left), velocityu(middle) and pressurep(right).
3.3. Ashockwavehittingasectioncontraction Weconsiderthefollowinginitialdata
(
A, ρ ,
u,
p) (
x,
t=
0) =
⎧ ⎨
⎩
0.
2,
0.
167,
100,
1.
5×
104,
ifx< −
0.
1,
0.
2,
0.
125,
0,
104,
if−
0.
1≤
x<
0,
0.
1,
0.
125,
0,
104,
otherwise.(11)
Ashockwavestartingfromx= −0.1 travelstotherightandhitsthesectioncontractionlocatedatx=0.Partoftheshock waveisreflectedandpartistransmittedthroughtheright.Wecomparetheresultsobtainedwiththethreeone-dimensional schemes(WB–HJ,WB–KTand 1D+)with 4000 nodestotheresultsobtainedwithatwodimensionalsetofEulerequations onaveryfinemeshcontaining 216000 cells(1200 inx-direction),usingRusanovscheme.Thetwo-dimensionalresultsare averagedinthe y-direction. Thecomputation wasdone usingthetoolbox CDMATH[4,5].InFig. 3,weplotthedensity
ρ
, thevelocityu andthepressure pattimet=12×10−4 s.Wetakethe2D-averagingsolutionasthereferencesolution.The WB–HJ schemegivesbetter resultsthan WB–KT and 1D+ schemes. It remains tostudythe Riemannproblemassociated withsystem(1)together withthe newinvariant (Q,I,H) atthesteadyinterface. Itis alsoplannedto develop asimple solver[3]associatedwiththenewinterface condition(2).Thisnewsolvercouldbe morerobust thantheWB–HJscheme.Finally,weemphasizethatthepresentinterfaceconditioncanbeeasilyextendedtootherconservativesystems.
References
[1] B.Audebert,J.-M. Hérard, X.Martin, O.Touazi, A simple integralapproachto computeflows inducts with variablecross section,EDF report H-I85-2014-05201-EN,https://hal.archives-ouvertes.fr/hal-01239393v1,submittedforpublicationinrevisedformin2014.
[2]E.Audusse,F.Bouchut,M.O.Bristeau,R.Klein,B.Perthame,Arobustandentropy-satisfyingnumericalschemeforfluidflowsindiscontinuousnozzles, SIAMJ.Sci.Comput.25(2004)2050–2065.
[3]F.Bouchut,Non-LinearStabilityofFiniteVolumeMethodsforHyperbolicConservationLawsandWellBalancedSchemesforSources,Frontiersin Mathematics,Birkhäuser,2004.
[4] CDMATH,ToolboxCDMATH,https://github.com/PROJECT-CDMATH.
[5] S.Dellacherie,K.Herilus,J.Jung,A.Mekkas,PrésentationdelalibrairielibreCDMATHcoupléeàSALOMEetPARAVIEW.Applicationàlarésolutionde systèmesdeloideconservationdansdesdomainescomplexes,inpreparation.
[6]L.Girault,J.-M.Hérard,Atwo-fluidhyperbolicmodelinaporousmedium,ESAIM:Math.Model.Numer.Anal.44(2010)1319–1348.
[7] L.Girault,J.-M. Hérard,Multidimensionalcomputations ofatwo-fluid hyperbolic modelinaporous medium, Int.J.Finite Vol.7(2010)1–33, https://hal.archives-ouvertes.fr/hal-01114209v1.
[8]L.Gosse,Awell-balancedschemeusingnon-conservativeproductsdesignedforhyperbolicsystemsofconservationlawswithsourceterms,Math.
ModelsMethodsAppl.Sci.11(2001)339–365.
[9]L.Gosse,A.Y.Leroux,Unschéma-équilibreadaptéauxloisdeconservationscalairesnon-homogènes,C.R.Acad.Sci.Paris,Ser.I323(1996)543–546.
[10]J.-M.Greenberg,A.-Y.Leroux,Awell-balancedschemeforthenumericalprocessingofsourcetermsinhyperbolicequations,SIAMJ.Numer.Anal.33 (1996)1–16.
[11] J.Jung, Schémas numériquesadaptésaux accélérateursmulticoeurs pourles écoulementsbifluides, PhDthesis, UniversitédeStrasbourg, 2013, https://tel.archives-ouvertes.fr/tel-00876159v2.
[12]D.Kröner,M.D.Thanh,Numericalsolutionstocompressibleflowsinanozzlewithvariablecross-section,SIAMJ.Numer.Anal.43(2006)796–824.