• No results found

HLLC-type methods for compressible two-phase flow in ducts with discontinuous area changes

N/A
N/A
Protected

Academic year: 2022

Share "HLLC-type methods for compressible two-phase flow in ducts with discontinuous area changes"

Copied!
15
0
0

Laster.... (Se fulltekst nå)

Fulltekst

(1)

Alexandra Metallinou Log

a,

, Svend Tollak Munkejord

b

, Morten Hammer

b

aNorwegian University of Science and Technology, Department of Physics, Department of Energy and Process Engineering, Trondheim NO-7491, Norway

bSINTEF Energy Research, P.O. Box 4761 Torgarden, Trondheim NO-7465, Norway

a rt i c l e i nf o

Article history:

Received 18 December 2020 Revised 16 April 2021 Accepted 26 May 2021 Available online 29 May 2021 Keywords:

Finite-volume method HLLC solver Compressible flow Non-conservative system Two-phase flow Variable cross-section Nozzle flow

a b s t r a c t

Inthiswork,theHarten-Lax-vanLeerContact(HLLC)approximateRiemannsolverisextendedtotwo- phaseflowthroughductswithdiscontinuouscross-sections. Twomain strategiesareexploredregard- ingthetreatmentofthenon-conservativetermarisinginthegoverningequations.Inthefirst,labelled HLLC+S, the non-conservativeterm is discretized separately. In the second, labelled HLLCS, the non- conservativetermisincorporatedintheRiemannsolver.Themethodsareassessedbynumericaltests forsingleandtwo-phaseflowofCO2,thelatteremployingahomogeneousequilibriummodelwherethe thermodynamicpropertiesarecalculatedusingthePeng–Robinsonequationofstate.Themethodshave differentstrengths,butingeneral,HLLCSisfoundtoworkbest.Inparticular,itisdemonstratedtobe equallyaccurateandmorerobustthanexistingmethodsfornon-resonantflow.Itisalsowell-balanced forsubsonicflowinthesensethatitconservessteady-stateflow.

© 2021 The Authors. Published by Elsevier Ltd.

ThisisanopenaccessarticleundertheCCBYlicense(http://creativecommons.org/licenses/by/4.0/)

1. Introduction

The simulation of two-phase flow through ductswith discon- tinuouscross-sectionsisessentialinseveralindustrialapplications.

Such simulationsareneededformodellinge.g. two-phaseflow in wellbores inthe oiland gasindustry [1],nuclear reactor coolant flows[2],emergencyventingofhydrocarbonpipelines[3]andcav- itation inrefrigeration systems[4].Systemslike thosementioned above can often be modelledasquasi one-dimensional withdis- continuous changes in cross-sectional area of the flow. The sys- temofequationsmodellingsuchflowcontainsanon-conservative term, andthis termcomplicatesnumericalsimulations greatly as itcancausenumericaloscillations[5,6]anddivergence[5].

Several authors have constructed numerical methods for the compressiblenozzleflowequations[1,5,7–9],andsystemsofsim- ilar form [10–16], developing “well-balanced” [17,18] schemes to capturetheflowbehaviouratdiscontinuities.Mostoftheearlyre- search has focused on thespecial caseof single-phaseflow with the ideal gas equation of state (EOS). Notable schemes include KrönerandThanh’swell-balancednumericalschemebasedonthe Lax-Friedrichsflux[19],whichwasextendedforresonantcasesin [5],Rochetteetal.’sVFRoebasedscheme[6]andCuongetal.’sGo-

Corresponding author.

E-mail addresses: [email protected] , [email protected] (A.M.

Log).

dunovschemebasedonan exactRiemannsolver[8].Brownetal.

[20] proposed thefirst methodologyfor resolvingtwo-phase CO2 flow inpipeswithdiscontinuouscross-sectional areachanges for thehomogeneous equilibriumtwo-phase flow model(HEM)with the Peng-Robinson (PR) EOS [21] using the AUSM+-up scheme.

Recently, Abbasi etal. [1]developed a Godunov-type schemefor thetwo-phasedrift-fluxmodelwithvariablecross-section,though withsimpleEOSsforliquidandgas.

A HLLC-type method hasyet to be tested on the problem of compressible flow with discontinuous cross-sections. Note, how- ever,thattheHLLC-schemehasbeenextendedfortheEulerequa- tions in ducts ofsmoothly varying crosssections [22].HLLC-type schemesapplyinformationabouttheeigenstructureofthegovern- ingequationsintheirsolution[10,11,23],makingtheschemesless dissipativethangeneralmethodssuch asAUSM+-up [24].Forthe applicationontwo-phaseflow,theHLLC-scheme’saccurateresolu- tionofcontactdiscontinuities[23]isparticularlydesirableasthis alsomakesthe schememoreaccurateinresolving transitionsbe- tweengas,liquid,andmixtureflows. Astheeigenstructureofthe one-dimensional compressibleduct flow equationsis known, the advantagesabovemotivates theconstruction ofaHLLC solverfor thissystem.

Thisisfurther motivatedasaugmentedversionsof HLLChave beenconstructedforsimilarsystems,whereabruptchangesareac- counted for[10,11]. An augmented version of HLLC forthe Baer- Nunziato(BN)equations[25]wasdeveloped byTokareva andToro

https://doi.org/10.1016/j.compfluid.2021.105023

0045-7930/© 2021 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY license ( http://creativecommons.org/licenses/by/4.0/ )

(2)

[10], giving promising results for many test cases. The method involves a nonlinear systemwhich was further linearizedby Lo- chonetal.[26].MurilloandGarcía-Navarro[11]alsodevelopedan augmented version ofHLLCforthe shallow-waterequations.This method produced promising results as well, though the authors note difficulties such as the need fora “source-fix” to avoid un- physicalsolutionsincertaincases.

Thecontributionofthisworkistodevelopandinvestigatetwo modifiedHLLCsolversforcompressibleductflowandassesstheir strengths and weaknesses. In particular, we will consider two- phase flow of CO2, due to its use as a natural working fluid in refrigerationengineering, andtheimportance ofsafeandefficient CO2 transportation as part of CO2 capture and storage (CCS) as a climate-change mitigation technology [27]. We show that the presentmethodisbothrobustandaccuratewhensolvingchalleng- ingtwo-phaseRiemannproblems.

We willfirst presentthe equation system in more detail and briefly discuss theRiemann problemforthesystemin Section 2. The HEMandthe PR EOSareoutlined in Section3. Thenumeri- cal methodsarederivedinSection4,themethodsareassessedin Section5,andfinallysomeconcludingremarksandsuggestionsfor furtherworkaregiveninSection6.

2. GoverningequationsandtheRiemannproblem

The system of equations describing compressible one- dimensional flow of a single fluid in a rigid duct of variable cross-sectionalarea,A,is

Ut+F

(

U

)

x=S, (1)

where

U=

⎜ ⎝ ρ

A

ρ

uA

EA A

⎟ ⎠

, F

(

U

)

=

⎜ ⎝ ρ

uA

( ρ

u2+p

)

A

(

E+p

)

uA 0

⎟ ⎠

, S=

⎜ ⎝

0 pAx

0 0

⎟ ⎠

.

Here,

ρ

isthedensity,uthevelocity, E=

ρ

(e+12u2)thetotalen- ergy,ethespecificinternalenergy,andpthepressureofthefluid.

S is a non-conservative term. The set of Eq. (1) belongs to the classofnon-conservativeresonantsystems[5,28]meaningthatthe waveswhichariseinthissystemcaninteractand“resonate” with each other.Forsmooth solutions,thesystem(1)canberewritten inquasi-linearform,

Ut+A

(

U

)

Ux=0, (2)

whereAisthe Jacobianmatrixofthesystem. Notethatthenon- conservative termhas now been moved to the left-hand side of theequation.AfullderivationofAforageneralEOScanbefound in[29,AppendixD],andwehaveincludedthefullexpressionofA inAppendixA.

Itcanbeshown[19,28,29]thattheeigenvaluesofAare;

λ

0=0,

λ

1=uc,

λ

2=u,

λ

3=u+c.

Notethatanyoftheeigenvalues

λ

1,

λ

2,

λ

3maycoincidewith

λ

0, giving rise toresonance inthe system[28].The system ofequa- tionsishyperbolicawayfromthepointswhere

λ

1=

λ

0or

λ

3=

λ

0

andnonstrictlyhyperbolicwhen

λ

2=

λ

0[28]. 2.1. TheRiemannproblem

ConsidertheRiemannproblemforcompressibleductflow,

Ut+F

(

U

)

x=S, (3)

U

(

x,0

)

=

UL, ifx<0

UR, ifx≥0 , (4)

where UL and UR are two different constant states. A thorough analysis on the characteristic fields, Riemann invariants and the solutionto thisRiemann problemispresented by Andrianovand Warneckein[28].

WhenthereisnochangeinA,AL=AR,thesystem(1)reduces totheEulerequations.Wethenhavethesamecharacteristicsand RiemanninvariantsasfortheEulerequationsassociatedwiththe eigenvalues

λ

1,

λ

2,

λ

3.TheRiemanninvariantsare

s, u+2c

across

dx1

dt =uc (5)

u,p across dx2

dt =u (6)

s,u−2c

across

dx3

dt =u+c, (7)

wheresisthespecificentropyandisthefirstGrüneisenparam- eter,

=

ρ

1

p

e

ρ= 1

ρ

cv

p

T

ρ. (8)

Here,cvisthespecificheatcapacityatconstantvolume.Admissi- blewaves forthesolution tothe Riemannproblemare then rar- efactionsandshocksassociatedwith

λ

1,

λ

3 anda contactdiscon- tinuityassociatedwith

λ

2.

Atpointswithdiscontinuousarea change,thereisastationary contactdiscontinuityassociatedwiththeeigenvalue

λ

0=0[19],the 0-wave.Acrossthe0-wavewehavethefollowingRiemanninvari- antsasshownin[28]

A

ρ

u, s, h+12u2, across ddxt0 =

λ

0=0, (9)

where h=e+ρp is thespecific enthalpy of thefluid. The invari- ants describe the conservationof massflux, entropy andstagna- tion enthalpy overthe area change. Theaddition of thiswave in thesolutiontotheRiemannproblemcausescomplicationssuchas non-uniqueness[28] andresonance[5,19,30].InFig.1weprovide anexampleofthestructureofaRiemannproblemsolutioninthe caseof subsonic flow i.e.

|

u

|

<c fromleft to right. The example wascreatedusingAndrianov’sprogram[31](CONSTRUCT).

3. Thermodynamicmodels

Inthiswork,wemodelthefluidasanidealgasforbenchmark testsof numericalsolvers of theequation system(1),defined by theequationofstate(EOS)

p=

ρ ( γ

1

)

e, (10)

where

γ

istheratioofspecificheats

γ

= ccpv.Inadditiontobench- marktesting, it is alsorelevant to studythe system(1)for two- phase flowof liquidandgas.To modelthis, we apply thehomo- geneousequilibriummodel(HEM)withthePeng-Robinson(PR)EOS [21].ThePREOSisgivenby

p= RT

v

mb

α

a

v

2m+2b

v

mb2, (11) where

v

misthespecificmolarvolumeofthefluidandRisthegas constant.a,band

α

aredefinedas

a=0.45724R2Tc2

pc , (12)

b=0.07780RTc

pc, (13)

(3)

Fig. 1. The characteristics of a Riemann problem for 1D compressible duct flow with subsonic flow where ρL> ρR, p L> p Rand A L> A R, giving a rarefaction to the left, a stationary contact discontinuity (red), then a contact discontinuity and a shock to the right. Created using [31] . (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)

Fig. 2. A one dimensional interval subdivided into grid cells, j, with cell centers at x jand faces x j−1/2, x j+1/2.

and

α

=

1+

0.37464+1.54226

ω

−0.26992

ω

2

1−

T Tc

2

,

(14) where Tc, pc and

ω

arethe critical temperature, criticalpressure andtheacentricfactorofthespecies.ForCO2,theseare

pc=7.3773MPa, Tc=304.35K, and

ω

=0.2236. (15) ThePREOSonlygivesresidualheatcapacities,cresp ,cresv .Inorderto compute the total heat capacities cp=cidealp +cresp ,cv in JK1kg1 weusethefollowingestimate,

cidealp =479.107+1.524318T−1.078176·103T2+

+3.38976·107 T3+2.8876·1011 T4. (16) In theHEMitis assumedthatthe twophasesare inthermal, chemical andmechanicalequilibrium,whichisvalidifthephases are well-mixed. Mixture properties are then used in the flow Eq. (1). Inthiswork, SINTEF’s thermodynamic library[32,33] has been applied to providesolutions for the HEMwiththe PR EOS.

Detailsonthespecificmethodsappliedinthelibrarytoobtainrel- evant variables are presentedin [34], though we ignoreherethe presenceofanysolid.

4. Numericalmethods

The computational domain isdiscretized in finitevolumes j

asdepictedinFig.2.Weusetwo differentkinds offinite-volume methods(FVMs)tosolveEq.(1)onthisgrid.ThefirstFVMisanal- ogous tothespatialdiscretizationthatBrownetal.applyin[20], withanEulertimestepgiving

Unj+1=Unj

t

x

Fj+1/2Fj1/2

+

tSj, (17)

Fig. 3. The flux function F +j−1/2approximates the flux F j−1+ /2just to the right of the interface at x j−1/2. The flux function F j+1/2approximates the flux F j+1/2just to the left of the interface at x j+1/2.

where F=F(UL,UR) is a numerical flux function approximating theaverage fluxF atthecell interfacesx=xj1/2,x=xj+1/2, and Sj approximatesthe contributionofthenon-conservative termin cell j.

The second FVMis aconservative Godunovscheme whichin- cludes thenon-conservative termin thenumericalflux functions [11].TheFVMtakesthefollowingform

Ujn+1=Unj

t

x

Fj+1/2F+j1/2

, (18)

whereagainanEulertimestepisusedforthetemporaldiscretiza- tion. Here, F±=F±(UL,UR,S) are numerical flux functions ap- proximatingtheaverageflux, F, rightnextto theeast, Fj+1/2,and west,Fj−1+ /2,cellfacesasillustratedinFig.3.

Inthe following,we will briefly review theHLLC methodand thensuggesttwomodifiedHLLC-typemethodstoapproximatethe fluxesforthecompressibleductflow.

4.1. TheHLLCapproximateRiemannsolver

TheHLLC method,proposedby Toro,SpruceandSpeares [23], approximatesthecellinterfaceRiemannproblembyathree-wave solution;

U

(

x/t

)

=

⎧ ⎪

⎪ ⎩

UL, ifx<

v

Lt, ULHLLC, if

v

Ltx<

v

Ct, URHLLC, if

v

Ctx<

v

Rt, UR, ifx

v

Rt,

(19)

where

v

L and

v

R are thefastestsignal velocities arising fromthe initial conditionofthe Riemann problem, and

v

C is thespeed of thecontactwave.TheintermediatestatesULHLLC,URHLLC areapprox- imatedtobeconstant,

ULHLLC= 1

t

( v

C

v

L

)

tvC

tvL

U

(

x,

t

)

dx (20)

(4)

and

URHLLC= 1

t

( v

R

v

C

)

tvR

tvC

U

(

x,

t

)

dx, (21)

theyarehoweverunknownandmustbeestimated.HLLCapproxi- matesthenumericalfluxfunctionby

Fj+1/2=

⎧ ⎪

⎪ ⎩

FL, if0<

v

L, FLHLLC, if

v

L≤0<

v

C, FRHLLC, if

v

C≤0<

v

R, FR, if0≥

v

R.

(22)

Theintermediatestatefluxes,FLHLLCforpositivesubsonicflow,and FRHLLC for negative subsonic flow, are also unknown. In order to determine the fluxes, Rankine-Hugoniot (RH) relations are used across the waves and the additional set of Riemann invariants acrossthecontactdiscontinuityisappliedtoclosethesystem.The RHrelationstatesthatacrossawave

F=

v

U, (23)

where

v

isthespeedofthewave.Forcompressibleduct flow,we findthroughsomemanipulationthattheintermediatefluxesFKHLLC, K=L,Rcanbeexpressedas

FKHLLC=FK+

v

K

(

UKHLLCUK

)

, (24) wheretheintermediatestatesareapproximatedby

UKHLLC=

ρ

KAK

v

KuK

v

K

v

C

1

v

C EK

ρK+

( v

CuK

)

v

C+ρK(vpKK−uK)

, (25)

K=R,L, (25)

and

v

C= pRpL+

ρ

LuL

( v

LuL

)

ρ

RuR

( v

RuR

)

ρ

L

( v

LuL

)

ρ

R

( v

RuR

)

. (26)

4.2. Wave-speedestimates

The HLLC solver needs estimates for the wave speeds

v

L and

v

R.Thereare severaldifferentapproachestoestimate thesewave speeds, some of which are outlined in [35], Section 10.5. In this work, the Roe average wave speed estimate [36] is used. Both Davis[37]andEinfeldt[38]suggestusingtheRoeaveragedeigen- valuesforthewavespeeds;

v

L,j+1/2=min

λ

1

(

Uj

)

,

λ

1

(

Uj+1/2

)

,

v

R,j+1/2=max

λ

3

(

Uj+1

)

,

λ

3

(

Uj+1/2

)

, (27)

whereUistheRoeaverageoftheconservedvariables.TheRoeav- eragedvariablescanbefoundbytheRoeaveragedmatrixA(UL,UR) [36],whichmustsatisfycertainconditions.

We follow the approachof Evje andFlåtten [39] andMunke- jord [40] for the two-fluid model, which also involves a non- conservative term, andsearch fora Roeaveraged matrixAwhich satisfiesthefollowingconditions:

R1A(UL,UR)(URUL)=F(UL,UR)

R2A(UL,UR)hasrealeigenvaluesandisdiagonalizable,and R3A(UL,UR)A(U)smoothlyasUL,URU,

whereinF(UL,UR)isformulatedas

F

(

UL,UR

)

=

⎜ ⎝

{ ρ

uA

} { ( ρ

u2+p

)

A

}

pˆ

{

A

}

{ (

E+p

)

uA

}

0

⎟ ⎠

. (28)

Here,

{

x

}

=xRxL, (29)

and pˆ is a particular average of the pressures from the left and rightstatespˆ=pˆ(UL,UR),similarlyto

α

k(UL,UR)in[39],[40].

Acan be determined by finding a specialaverage of thestate vectorsUL andUR,U(UL,UR),such thatA=A(U), pˆ=pˆ(U).Aset ofaveragessatisfyingR1–R3are:

ρ

A=

ρ

LAL+

ρ

RAR

2 , (30)

Aˆ=AL+AR

2 , (31)

ˆ u=

ρ

LALuL+

ρ

RARuR

ρ

LAL+

ρ

RAR , (32)

Hˆ=

ρ

LALHL+

ρ

RARHR

ρ

LAL+

ρ

RAR , (33)

whereHk=hk+12u2k,k=L,R.

4.3. HLLCwithaddednon-conservativeterm,HLLC+S

TheHLLC schemeassumesathreewave solution,howeverwe can still apply the scheme to compressible duct flow provided that we also account for the fourth, stationary wave. We apply the FVM (17) with the HLLC numerical flux function. This FVM requires a representation of the non-conservative term, Sj. The discretizationof thistermrequiresspecialcare toensure numer- ical stability. We follow the approach of Brown et al. [20] for their AUSM+-up scheme and apply a discretization of the non- conservativetermwhichsatisfiesthenon-disturbancerelationdis- cussed by Liou et al. [41]. The relation states that under steady conditionswithu=0andp=const.

(

Ap

)

x =p

A

x. (34)

The following discretization, which satisfies the non-disturbance relation,isused:

Sj= pj

x

⎜⎝ 0 AjAj−1

0 0

⎟⎠, ifuj>0andSj=pjx

⎜⎝ 0 Aj+1Aj

0 0

⎟⎠,ifuj0.

(35) 4.4. HLLCSapproximateRiemannsolver

We willhere derive an augmented version ofHLLC, following in part the approach of Murillo and García-Navarro [11] for the shallow-water equations and the approach of Tokareva and Toro [10]forthe Baer-Nunziatoequations.Wefollowthe namingcon- vention of Murillo and García-Navarro [11] and call this method

“HLLCS”,emphasizingthatourmethodisverysimilartotheirdis- cretizationofthesourcetermintheshallow-waterequations.The HLLCS approximateRiemannsolverassumesa four-wave solution instead of a three-wave solution, incorporating the 0-wave. Sim- ilarly to HLLC, we will assume that the waves separate constant intermediatestates.

ForsystemsintheformofEq.(1),MurilloandGarcía-Navarro derivedthefollowingconsistencyconditionwhichtheapproximate intermediatestatesmustsatisfy:

1

t

( v

R

v

L

)

tvR tvL

U

(

x,

t

)

dx=

v

RUR

v

LUL

(

FRFL

)

+S

v

R

v

L , (36)

(5)

Fig. 4. Integration control volume [ x L, x R] ×[0 , t] in the x t plane. The control volume contains the two fastest signal velocities, vLand vRfrom the Riemann prob- lem. The solution consists of three inner states separated by the stationary wave at x = 0 and the contact discontinuity of positive speed, vC.

where S= 1

t xR

xL

t 0

Sdt dx. (37)

Two differentestimates of S are used in thiswork and they are presentedinSection4.4.4.HLLCSwillbedevelopedtoensurethe subsoniccasesatisfiesthecondition(36).Forsupersonicflow,the fluxesareeasilyfoundaswillbeshownbelow.

4.4.1. Supersonicflow

Forpositivesupersonicflow,theflux justtotheleft ofthein- terface,x=0,issimplyFL,giving

Fj+1/2=FL. (38) The flow just to the right of the interface has passed the area changesuchthat

F+j+1/2=FL+S. (39) Similarly fornegativesupersonicflow, thenumericalfluxesatt become:

Fj+1/2=FRS, (40)

F+j+1/2=FR. (41) 4.4.2. Subsonicflow

An illustrationofa controlvolume containingthewave struc- tureofaRiemannproblemforpositivesubsonicflowisshownin Fig. 4. In this casethere are three unknown intermediate states separatedbythestationarywaveatx=0andthecontactdiscon- tinuity,UL,UR+andUR++.

Weapproximatetheintermediatestates,UL,UR+andUR++by UL=1tvL

0 tvL

U

(

x,

t

)

dx UR+=1tvC

tvC 0

U

(

x,

t

)

dx UR++=t(v1RvC)

tvR

tvC

U

(

x,

t

)

dx

⎫ ⎪

⎪ ⎪

⎪ ⎪

⎪ ⎪

⎪ ⎪

⎪ ⎭

. (42)

In ordertoestimate theintermediate fluxes, theRH condition is applied across all thewaves in the problem. The RH relations are

FLFL=

v

L

(

ULUL

)

, (43)

Fig. 5. Integration control volume [ x L, x R] ×[0 , t] in the x t plane. The control volume contains the two fastest signal velocities vL, vRfrom the Riemann problem.

The solution consists of three inner states separated by the stationary wave at x = 0 and the contact discontinuity of negative speed, vC.

FR+FLS=

v (

UR+UL

)

=0, (44)

FR++FR+=

v

C

(

UR++UR+

)

, (45)

FRFR++=

v

R

(

URUR++

)

. (46) ItcanbeshownthattheRHrelations(43)-(46)areenoughtosat- isfytheconsistencycondition(36).Toclosethesystem,weimpose theRiemanninvariantsacrossthestationarywaveandthecontact discontinuity,

u++R =u+R =

v

C

p++R =p+R

, (47)

(

A

ρ

u

)

L =

(

A

ρ

u

)

+R

sL =s+R

(

u22+h

)

L =

(

u22+h

)

+R

}

. (48) TheRHconditionacrossthewaveassociatedwiththewave speed

v

L gives

ρ

L=

ρ

L

v

LuL

v

LuL , (49)

pL =pL+

ρ

L

( v

LuL

)(

uLuL

)

, (50)

EL =

ρ

L

v

LuL

v

LuL

E

L

ρ

L+

(

uL uL

)

uL +

pL

ρ

L

( v

LuL

)

, (51)

andthe RH conditionacross the wave associated withthe wave speed

v

R gives

ρ

R++=

ρ

R

v

RuR

v

Ru++R , (52)

p++R =pR+

ρ

R

( v

RuR

)(

u++RuR

)

, (53)

E++R =

ρ

R

v

RuR

v

Ru++R

E

ρ

RR+

(

u++RuR

)

u++R + pR

ρ

R

( v

RuR

)

.

(54)

(6)

Fig. 6. The graphs show for which values of p L, p +R that f 1= 0 (blue) and f 2= 0 (red) for Mod. A (a) and Mod. B (b). For Mod B, an estimate of the point where |f| is minimized is marked with an x. (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)

Eqs.(49)-(51)and(52)-(54)withtheRiemanninvariantsconstitute a nonlinear systemwhich canbe solved iteratively.Tokareva and Toro[10]obtainedasimilar, butlargersystemofequationswhich mustbesolvedfortheBaer-Nunziatoequations.

Both forcompressible duct flow andthe Baer-Nunziato equa- tions,eitherthepressures pL, p+R =p++R orthevelocitiesuL,u+R = u++R can bechosen as independent variables to solvethe system.

As statedin [10],there is no difference between the approaches fromatheoreticalpointofview asthetworepresentationsofthe system are mathematically equivalent. Following Tokareva et al.

[10], we choose pL,p+R as the independent variables to ensure pressurepositivitywhensearchingforsolutionsofthesystem.

WethereforeexpressuL andu+R =u++R using pL andp+R, uL

(

pL

)

=uL+ pLpL

ρ

L

( v

LuL

)

, (55) u+R

(

p+R

)

=uR+ p+RpR

ρ

R

( v

RuR

)

. (56)

We then havethatUL=UL(pL), suchthat sL =sL(pL),anden- forcing the Riemann invariant sL =s+R =s, we have that s+R = s+R(pL).The relationformassflux andthe relationforstagnation enthalpythengivethefollowing:

f=

ALρL(pL)uL(pL)ARρR+ p+R,s(pL)

u+R(p+R) h+R

p+R,s(pL) +12

u+R(p+R)2

−! hL

pL,s(pL) +12

uL(pL)2"

=0.

(57) ThesearetwoequationsforthetwoindependentvariablespL,p+R. Thesystem(57)canbesolvediterativelybye.g.Newton-Raphson’s methodanditmayhavezeroorupto threesolutions.Ifthe sys- temhasmultiplesolutions,wechoosethesolutionwhichsatisfies thefollowingcriteria:

C1 The solution is self-consistent in the sense that the Riemann problemforthestatesUL(pL),UR+(pL,p+R)providewavespeed estimateswhichsuggestsubsonicflow.

C2 The solution has the highest entropy sL(pL)=s+R =s of the self-consistentsolutions.

If there areno solutions, we approximate pL,p+R as thepoint whichminimizestheabsolutevalue f1(pL,p+R)+f2(pL,p+R)of f.

OncepL andp+R aredetermined,thestateULcanbecalculated using Eqs. (55), (49) and (51). Withthis we can finally find the unknownfluxesFLandFR+ fromEq.(43)andEq.(44),giving FL=FL+

v

L

(

ULUL

)

, (58)

FR+=FL+S. (59)

Fig. 7. Comparison of the exact density solution (black line) and the solutions of HLLC+S (red circles), HLLCS with RS (blue plus signs) and HLLCS with FS (green crosses) at t/t ref= 0 . 02 for Test 1. (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)

Thenegativesubsonicflowcasecanbeseenassimplythemir- rorimage ofthepositiveflowcase.We nowhavethestatesUL−−, ULandUR+as illustrated inFig. 5.

Anequivalentsystemto(57)canbefoundforthiscaseandthe samecriteriaC1andC2canbeappliedtochooseavalidsolution.

4.4.3. Solutionforstationarywaves

Supposenow thatwe havethestatesUL,UR whichsatisfy the conditionsforastationarywaveacrosstheareachange,

(

A

ρ

u

)

L=

(

A

ρ

u

)

R, hL+u2L

2 =hR+u2R

2, sL=sR. (60) TheexactsolutionfortheRiemannproblem(3)–(4)withthetwo statesUL,URisajumpfromUL toURattheareachange.Thesolu- tionwhichsatisfiesthecriteriaC1andC2ispL =pL andp+R =pR. TheintermediatestatesthenbecomeUL=UL andUR+=UR++=UR. This means that forstationary waves, when the correct solution ischosen,theintermediatestatesfoundintheHLLCSapproximate Riemannsolverareexact.

4.4.4. Thenon-conservativetermforHLLCS

Inthiswork,twonon-conservativetermsaretestedtoestimate the fluxesbased on the HLLCS approximateRiemann solver. The

(7)

Fig. 8. Results of the convergence test for HLLC+S (red line with circles) and HLLCS with RS (blue line with plus signs) for Test 1. (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)

Fig. 9. Density solution of HLLC+S (red dashed line), HLLCS with RS (blue dotted line) and HLLCS with FS (green dash-dotted line) compared to the exact solution (black line) for Test 2 at t/t ref= 0 . 1 , with N cells= 10 0 0 . (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.)

firstapproximatenon-conservativetermisgivenby

SRS=

⎜ ⎝

0 ˆ

p

(

ARAL

)

0 0

⎟ ⎠

, (61)

where pˆ is the Roe-averaged pressure introduced in Section 4.2. We thereforecallthistheRoe-average-basedterm(RS). RSis for- mulated generallysuch that itmaybe appliedon subsonic,sonic andsupersonicflow.

Forsubsonicflow,thenonlinearsystemofequationsdetermin- ing theapproximate intermediatestatesandfluxesis solved.The non-conservative term is then given implicitly by the RH condi- tions.Forpositivesubsonicflow, wegetthatthenon-conservative termmustbe

SFS+=FR++

v

C

(

UR++UR+

)

FL. (62) Similarlyfornegativesubsonicflow,wegetthat

SFS-=FR+FL−−+

v

C

(

ULUL−−

)

. (63) Asthenon-conservativetermincludestheapproximatefluxes,we callittheflux-basedterm(FS).Notethatthisestimate onlyholds iftheHLLCSapproximateRiemannsolverhasasolution.FSisonly formulated for subsonic flow andmay therefore only be applied forsubsonicflowproblems.

4.4.5. TheHLLCS-basedfluxes

TheHLLCSmethodapproximatesthefluxfunctionsFj+1/2and F+j+1/2 neededfortheFVM(18)asshowninAlgorithm1.

Algorithm1:TheHLLCS solver.Ifsubsonic flowisidentified, asolveriscalledtofindavalidsolutionsatisfyingC1andC2 or an optimization method is used to minimize f. When a solutionisfound,

v

C andtheintermediate statesUL,UR+and UL−−orUR++are returned.

Result:FluxesfortheHLLCSsolver,FR+andFL. if

v

L>0then

FL=FL FR+=FL+S end

if

v

L≤0and

v

R>0then

callsolver,returning

v

Candintermediatestates;

if

v

C≥0then

FL=FL+

v

L(ULUL) FR+=FL+S

else

FR+=FR

v

R(URUR+) FL=FR+S

end end

if

v

R≤0then FR+=FR FL=FR+S end

SetFj+1/2=FLandF+j+1/2=FR+.

Remark: Note that for a (subsonic) steady-state wave across thearea change,applyingSFS willgive that Fj+1/2=FL=FL and F+j+1/2=FR+=FR.InsertingthisintheFVM(18),wefindthat

Ujn+1=Unj

j, (64)

i.e.theHLLCS-basedFVMwithFSconservesthesteady-statesolu- tionexactly.ThismeansthattheFVMiswell-balanced.

4.5. Summary

Inthiswork,weapplytwo finite-volumemethodsHLLC+Sand HLLCS.ThenumericalschemefortheHLLC+Ssolverisgivenby Ujn+1=Unj

t

x

Fj+1/2Fj1/2

+

tSj, (65)

Referanser

RELATERTE DOKUMENTER

The dense gas atmospheric dispersion model SLAB predicts a higher initial chlorine concentration using the instantaneous or short duration pool option, compared to evaporation from

Figure 5.3 Measured time series of the pressure for HK 416 N at two different directions from the shooting direction, with and without flash suppressor, at 84 cm from the muzzle..

Faraday rotation receivers on the rocket and the EISCAT UHF incoherent scatter radar provided simulta- neous electron density profiles whereas the ALOMAR Na lidar and meteor

Right: after the fit; cyan: true circles with true centers, blue: signal points of the primary circle, green: signal points of the secondary circle, red: background points,

Besides the isothermal NSK equations, in the thermal NSK equations, a highly non-linear equation for the total energy is coupled with the mass and momentum conservation equations,

Therefore we propose to use the tracked contact point and the intersection points of the first two grid lines parallel to the wall with the zero contour line of the signed

Lower panel: velocities measured in the photosphere ( green line and dashed black line ) , low chromosphere ( red line ) , and transition region ( solid black line ) as a function

Experimental data (black circles), estimated release efficiency curve (solid black line) with CIs (dashed black curves), and distribution of the fish measured for the three square