Alexandra Metallinou Log
a,∗, Svend Tollak Munkejord
b, Morten Hammer
baNorwegian 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/ )
[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ρ
uAEA A
⎞
⎟ ⎠
, F(
U)
=⎛
⎜ ⎝ ρ
uA( ρ
u2+p)
A(
E+p)
uA 0⎞
⎟ ⎠
, S=⎛
⎜ ⎝
0 p∂∂Ax
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=u−c,λ
2=u,λ
3=u+c.Notethatanyoftheeigenvalues
λ
1,λ
2,λ
3maycoincidewithλ
0, giving rise toresonance inthe system[28].The system ofequa- tionsishyperbolicawayfromthepointswhereλ
1=λ
0orλ
3=λ
0andnonstrictlyhyperbolicwhen
λ
2=λ
0[28]. 2.1. TheRiemannproblemConsidertheRiemannproblemforcompressibleductflow,
Ut+F
(
U)
x=S, (3)U
(
x,0)
= UL, ifx<0UR, 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.TheRiemanninvariantsares, u+2c
across
dx1
dt =u−c (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].ThePREOSisgivenbyp= RT
v
m−b−α
av
2m+2bv
m−b2, (11) wherev
misthespecificmolarvolumeofthefluidandRisthegas constant.a,bandα
aredefinedasa=0.45724R2Tc2
pc , (12)
b=0.07780RTc
pc, (13)
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ω
21−
T Tc2
,
(14) where Tc, pc and
ω
arethe critical temperature, criticalpressure andtheacentricfactorofthespecies.ForCO2,thesearepc=7.3773MPa, Tc=304.35K, and
ω
=0.2236. (15) ThePREOSonlygivesresidualheatcapacities,cresp ,cresv .Inorderto compute the total heat capacities cp=cidealp +cresp ,cv in JK−1kg−1 weusethefollowingestimate,cidealp =479.107+1.524318T−1.078176·10−3T2+
+3.38976·10−7 T3+2.8876·10−11 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/2−Fj−1/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=xj−1/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 F−j+1/2−F+j−1/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, ifv
Lt≤x<v
Ct, URHLLC, ifv
Ct≤x<v
Rt, UR, ifx≥v
Rt,(19)
where
v
L andv
R are thefastestsignal velocities arising fromthe initial conditionofthe Riemann problem, andv
C is thespeed of thecontactwave.TheintermediatestatesULHLLC,URHLLC areapprox- imatedtobeconstant,ULHLLC= 1
t
( v
C−v
L)
tvC
tvL
U
(
x,t
)
dx (20)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, ifv
L≤0<v
C, FRHLLC, ifv
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,RcanbeexpressedasFKHLLC=FK+
v
K(
UKHLLC−UK)
, (24) wheretheintermediatestatesareapproximatedbyUKHLLC=
ρ
KAKv
K−uKv
K−v
C 1v
C EKρK+
( v
C−uK)
v
C+ρK(vpKK−uK), (25)
K=R,L, (25)
and
v
C= pR−pL+ρ
LuL( v
L−uL)
−ρ
RuR( v
R−uR)
ρ
L( v
L−uL)
−ρ
R( v
R−uR)
. (26)4.2. Wave-speedestimates
The HLLC solver needs estimates for the wave speeds
v
L andv
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)(UR−UL)=F(UL,UR)
R2A(UL,UR)hasrealeigenvaluesandisdiagonalizable,and R3A(UL,UR)→A(U)smoothlyasUL,UR→U,
whereinF(UL,UR)isformulatedas
F
(
UL,UR)
=⎛
⎜ ⎝
{ ρ
uA} { ( ρ
u2+p)
A}
−pˆ{
A}
{ (
E+p)
uA}
0
⎞
⎟ ⎠
. (28)Here,
{
x}
=xR−xL, (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+ρ
RAR2 , (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 Aj−Aj−1
0 0
⎞
⎟⎠, ifuj>0andSj=pjx
⎛
⎜⎝ 0 Aj+1−Aj
0 0
⎞
⎟⎠,ifuj≤0.
(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−(
FR−FL)
+Sv
R−v
L , (36)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
F−j+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:
F−j+1/2=FR−S, (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+=1tvCtvC 0
U
(
x,t
)
dx UR++=t(v1R−vC)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
FL−−FL=
v
L(
UL−−UL)
, (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+−FL−−S=
v (
UR+−UL−)
=0, (44)FR++−FR+=
v
C(
UR++−UR+)
, (45)FR−FR++=
v
R(
UR−UR++)
. (46) ItcanbeshownthattheRHrelations(43)-(46)areenoughtosat- isfytheconsistencycondition(36).Toclosethesystem,weimpose theRiemanninvariantsacrossthestationarywaveandthecontact discontinuity,u++R =u+R =
v
Cp++R =p+R
, (47)
(
Aρ
u)
−L =(
Aρ
u)
+Rs−L =s+R
(
u22+h)
−L =(
u22+h)
+R}
. (48) TheRHconditionacrossthewaveassociatedwiththewave speedv
L givesρ
L−=ρ
Lv
L−uLv
L−u−L , (49)p−L =pL+
ρ
L( v
L−uL)(
u−L −uL)
, (50)E−L =
ρ
Lv
L−uLv
L−u−LE
L
ρ
L+(
u−L −uL)
u−L +pL
ρ
L( v
L−uL)
, (51)andthe RH conditionacross the wave associated withthe wave speed
v
R givesρ
R++=ρ
Rv
R−uRv
R−u++R , (52)p++R =pR+
ρ
R( v
R−uR)(
u++R −uR)
, (53)E++R =
ρ
Rv
R−uRv
R−u++RE
ρ
RR+(
u++R −uR)
u++R + pRρ
R( v
R−uR)
.(54)
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 p−L, p+R =p++R orthevelocitiesu−L,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 p−L,p+R as the independent variables to ensure pressurepositivitywhensearchingforsolutionsofthesystem.
Wethereforeexpressu−L andu+R =u++R using p−L andp+R, u−L
(
p−L)
=uL+ p−L −pLρ
L( v
L−uL)
, (55) u+R(
p+R)
=uR+ p+R−pRρ
R( v
R−uR)
. (56)We then havethatUL−=UL−(p−L), suchthat s−L =s−L(p−L),anden- forcing the Riemann invariant s−L =s+R =s, we have that s+R = s+R(p−L).The relationformassflux andthe relationforstagnation enthalpythengivethefollowing:
f=
ALρL−(p−L)u−L(p−L)−ARρR+ p+R,s(p−L)
u+R(p+R) h+R
p+R,s(p−L) +12
u+R(p+R)2
−! h−L
p−L,s(p−L) +12
u−L(p−L)2"
=0.
(57) Thesearetwoequationsforthetwoindependentvariablesp−L,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−(p−L),UR+(p−L,p+R)providewavespeed estimateswhichsuggestsubsonicflow.
C2 The solution has the highest entropy s−L(p−L)=s+R =s of the self-consistentsolutions.
If there areno solutions, we approximate p−L,p+R as thepoint whichminimizestheabsolutevalue f1(p−L,p+R)+f2(p−L,p+R)of f.
Oncep−L andp+R aredetermined,thestateUL−canbecalculated using Eqs. (55), (49) and (51). Withthis we can finally find the unknownfluxesFL−andFR+ fromEq.(43)andEq.(44),giving FL−=FL+
v
L(
UL−−UL)
, (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−−, UL−andUR+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+u2L2 =hR+u2R
2, sL=sR. (60) TheexactsolutionfortheRiemannproblem(3)–(4)withthetwo statesUL,URisajumpfromUL toURattheareachange.Thesolu- tionwhichsatisfiesthecriteriaC1andC2isp−L =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
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
(
AR−AL)
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,wegetthatSFS-=FR+−FL−−+
v
C(
UL−−UL−−)
. (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
TheHLLCSmethodapproximatesthefluxfunctionsF−j+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>0thenFL−=FL FR+=FL−+S end
if
v
L≤0andv
R>0thencallsolver,returning
v
Candintermediatestates;if
v
C≥0thenFL−=FL+
v
L(UL−−UL) FR+=FL−+Selse
FR+=FR−
v
R(UR−UR+) FL−=FR+−Send end
if
v
R≤0then FR+=FR FL−=FR+−S endSetF−j+1/2=FL−andF+j+1/2=FR+.
Remark: Note that for a (subsonic) steady-state wave across thearea change,applyingSFS willgive that F−j+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 −