• 沒有找到結果。

A least squares augmented immersed interface method for solving Navier-Stokes and Darcy coupling equations

N/A
N/A
Protected

Academic year: 2022

Share "A least squares augmented immersed interface method for solving Navier-Stokes and Darcy coupling equations"

Copied!
16
0
0

加載中.... (立即查看全文)

全文

(1)

ContentslistsavailableatScienceDirect

Computers and Fluids

journalhomepage:www.elsevier.com/locate/compfluid

A least squares augmented immersed interface method for solving Navier–Stokes and Darcy coupling equations

Zhilin Li

a,

, Ming-Chih Lai

b

, Xiaofei Peng

c

, Zhiyue Zhang

d

a Center for Research in Scientific Computation (CRSC) and Department of Mathematics, North Carolina State University, Raleigh, NC 27695, USA

b Department of Applied Mathematics, National Chiao Tung University, Taiwan

c School of Mathematical Sciences South China Normal University, Guangzhou 510631, China

d School of Mathematical Sciences, Nanjing Normal University, Nanjing 210023, China

a rt i c l e i nf o

Article history:

Received 6 December 2016 Revised 2 August 2017 Accepted 9 March 2018 Available online 13 March 2018 MSC:

65M06 65M85 76M20 Keywords:

Navier-Stokes and Darcy coupling Coupled fluid flow with porous media Least squares augmented IIM Fast Poisson/Helmholtz solver Analytic solution for Navier–Stokes and Darcy coupling

Interface relations

a b s t ra c t

Anew finitedifferencemethodbasedonCartesianmeshes andfastPoisson/Helmholtz solversispro- posedtosolvethecouplingofafluidflowmodeledbytheincompressibleNavier–Stokesequationsand aporousmediamodeledbytheDarcy’slaw.Thefinitedifferencediscretizationintimeisbasedonthe pressurePoissonequationformulation.Ateachtimestep,severalaugmentedvariablesalongtheinterface betweenthefluidflowandtheporousmediaareintroducedsothatthecoupledequationscanbede- coupledintoseveralPoisson/Helmholtzequationswiththoseaugmentedvariablesactingasjumpsofthe unknownsolutionand somedirectionalderivatives.Theaugmentedvariablesshouldbechosensothat theBeavers–Joseph–Saffman(BJS)orBeavers–Joseph(BJ)andotherinterfaceconditionsaresatisfied.It hasbeentestedthatadirectextensionoftheaugmentedideain[27]doesnotworkwellwhenthefluid flowismodeledbytheNavier–Stokesequations.Oneofthenewideasofthispaperistoenforcethedi- vergencefreeconditionattheinterfacefromthefluidside.Inthisway,theSchurcomplementmatrixfor theaugmentedvariablesisover-determinedandtheleastsquaressolutionisusedforthecouplingprob- lem.ThenewaugmentedapproachenablesustosolvetheNavier–StokesandDarcycouplingefficiently withsecondorderaccuratevelocityandpressureintheLnormfortestedproblems.Theproposednew ideainenforcingthe divergencefreecondition attheinterfacefromthefluidside hasalsobeenuti- lizedtosolve theStokesand Darcycouplingequations and showntooutperformthe originalmethod in[27].Inadditionaltothedetailedaccuracycheckforthepresentmethod,someinterestingnumerical simulationsforNavier–StokesandDarcycouplinghavebeenconductedinthispaperaswell.

© 2018ElsevierLtd.Allrightsreserved.

1. Introduction

Inthispaper,weintendtofindnumericalsolutionsforthecou- plingofafluidflowandporousmedia.Forself-containedpurpose, westatethegoverningequations,theboundaryandinterfacecon- ditions,andthephysical parametersin detailalthough they have appearedintheliterature.

The fluidflowismodeledbytheincompressibleNavier–Stokes equations,

ρ

f



uf

t +uf·

uf



+

pf=

μ

f



uf+F,

· uf=0,

x



f, (1)

Corresponding author.

E-mail addresses: zhilin@math.ncsu.edu , zhilin@ncsu.edu (Z. Li).

whereufisthefluidvelocity,pfisthepressure,andF=(F1,F2)is an externalbody force.The physicalparameters

μ

f>0and

ρ

f>0 are the viscosityanddensity ofthe fluid,respectively, which are assumed to be constant in f. The porous media is modeled by theDarcy’slawas

uD=− K

μ

D

pD=−K1

pD,

· uD=0,

x



D, (2)

where uD and pD are the corresponding fluid velocity and the pressure in the porous media, and K is the permeability which is assumedto be a constant in thispaper. Forsimplicity, we set K1=K/

μ

D.Notethat,thenumericalmethodpresentedinthispa- percanbeextendedtoaddafluidsourcetermsuchas

· uD=

φ

intheporousmediaregionwithoutmuchdifficulties.

Fig.1 illustrates thecoupling probleminwhicha porous me- dia is modeled by the Darcy’s law inside of a closed interface

 while an incompressible fluid flow is modeled by the Navier–

https://doi.org/10.1016/j.compfluid.2018.03.032 0045-7930/© 2018 Elsevier Ltd. All rights reserved.

(2)

Fig. 1. A diagram of a fluid flow and porous media. In the diagram, n and τare the unit normal and tangential directions, respectively.

Stokesequationsoutsideoftheinterface.Weassumethat theve- locity isprescribed along the outer boundary

f (either no-slip or givenflow boundaryconditions). Our methodcan also handle the case where the fluid flow is inside while the Darcy’s lawis outside. In such a case, the velocity normal component uD· n is usually prescribed along the outer boundary

D.Notice that, it is equivalent to impose the normal derivative of the pressure as

pD

n =−uD· n/K1.The well-posedness andregularity oftheabove couplingproblemhasbeeninvestigatedintheliteraturesuchasin [25]andthereferencestherein.

Therelationofvelocityandpressureacrosstheinterfaceofthe fluid flow and the porous media has been studied and is well- knownnowadays.The normalvelocity iscontinuous,which leads to

uf· n=uD· n, (3)

whereagainweassume thatnistheunitnormaldirectionatthe interface pointing outward tothe fluid side. The stress actingon the interface shouldbe balanced which leadstwomore interface relations

[p]=2

μ

fn· Df· n, (4)

α

K

(

uf− uD

)

·

τ

=2

τ

· Df· n or

α

Kuf·

τ

=2

τ

· Df· n, (5) where Df=12



uf+

Tuf



is the deformation tensor,

τ

is the

unit tangent vector, and αK is the friction constant arising from the experimental data and dimensional analysis [25]. For conve- nience,wedenoteK2=αK.Thejumpinthepressureisdefinedas [p]=pf− pD andthisdefinitionwillbeappliedtoothervariables throughoutthepaper.Thuswehave[u· n]=0and[

· u]=0.The second equation in (5) is so called the Beavers–Joseph–Saffman (BJS) condition while the first one is called the Beavers–Joseph (BJ) condition. Most numericalmethods inthe literature use the BJS equation as a valid approximation while our augmented ap- proachcanhandlethemorecomplicatedtangentialslipcondition as shownin the first equation in (5)or non-homogeneouscases asshowninsome ofournumericalexamples.Intheremainingof thepaper,forthesakeofsimplicity,we omitthesubscriptsfand D in notationsofuf, uD,pf andpD ifthere isno confusionsince thepresentcoupledequationswillbesolvedasonewholesystem.

Notethat ifwe know[u·

τ

] and[u· n] (which iszero accord- ingtothefirstinterface condition),wecangetthejumprelations ofthevelocity foreach component. At apoint X=(X,Y)on the interface,let

θ

be theanglebetweenthe normaldirectionofthe

interface andthex-axis, see thediagram inFig. 1.Then theunit normaldirectionisn=(cos

θ

,sin

θ

).Ifwedefine

[u·

τ

]=q5, (6)

andcombinewith[u· n]=0,weget

0=[u]cos

θ

+[

v

]sin

θ

, (7)

q5=−[u]sin

θ

+[

v

]cos

θ

. (8)

By solving the jumps of [u] and [v] from the above system, we obtain

[u]=−q5sin

θ

, [

v

]=q5cos

θ

. (9)

There are many applications of the interactions between a fluid flow and a porous media, which has attracted a lot of atten- tionsintheliterature.Earlierworkshavebeenfocusedonsolving StokesandDarcycouplingequations,particularlyusingfinite ele- mentsordomaindecompositionmethods,seeforexample,[1–5,7–

10,12,14–17,19,20,23–25,32–36]andthereferencestherein.Forthe Navier–StokesandDarcycoupling,theoreticalanalysisandnumer- icalmethods,particularlyfiniteelementmethodshavebeencatch- ingup,seeforexample,[5,11,13,18]foran incompletelistandthe referencetherein.

In the above mentioned literature, almost all the numerical methodsare basedon finiteelementformulations ordomainde- compositionmethods.In[27],an alternativeapproachbasedon a finitedifferencediscretizationandaCartesianmeshwasproposed for solving the Stokes and Darcy coupling. The idea of the ap- proachistotransformtheoriginalcouplingproblemtothreePois- son equationswithasource anddipoledistributions correspond- ingtothejumps inthesolutionandthe normalderivative ofthe Poissonequations.Someaugmentedvariablesareintroducedalong theinterfacesothatthesolutionsofthevelocityandpressuresat- isfy originalinterface conditionsasshownin Eqs.(3)–(5). Oneof advantagesisthatafastPoissonsolvercanbeutilizedontherect- angulardomain.The methodproduces second orderaccurate ap- proximationforthevelocitybutfirstorderaccurateapproximation forthepressure.

Inthispaper,we propose aCartesian finitedifference method to solve Navier–Stokes and Darcy coupling equations based on some of ideas in [27]. We first rewrite the Navier–Stokes equa- tions in the fluid domain using the equivalent pressure Poisson equationformulationintroduced by JohnstonandLiu[21,22],and then alsorewrite the Darcy’s equations inthe porous media do- mainbytakingthedivergenceoperatortothevelocityfieldsothat the couplingequations can be written asone whole system, see the details in next section. We attempted to use the augmented approach in[27] combined witha Navier–Stokes solver to simu- latethe Navier–StokesandDarcycouplingproblems.The attempt workedonlyforafewtimestepsbeforethecomputedsolutionei- ther blows up or loses accuracy. After some careful analysisand numericalexperiments,wecame totheideatoenforcethediver- gencefreeconditionattheinterfacefromthefluidsideasanextra augmentedequation(constraint).ThustheresultantSchurcomple- mentmatrixfortheaugmentedvariablesindiscretizationisover- determinedandtheleastsquaressolutionisusedforthecoupling problem.Thatis whythenewmethodis calledthe leastsquares augmentedimmersedinterfacemethod.

Belowwebrieflysummarizethenoveltyofthispaper.

WiththisnewleastsquaresaugmentedIIMapproach,wehave developed a finite difference scheme to efficiently solve the

(3)

Navier–StokesandDarcycouplingequationswithsecond order accuracybothinthevelocityandpressure.

Withthenewmethod,wehaveobtainedsomeinterestingsim- ulation results for time dependent problems that cannot be solvedusingthemethodin[27]forStokesandDarcycoupling.

The method in this paper is different from that in [27] for StokesandDarcycouplingequationsnot onlyforsolvingdifferent couplings,butalsointhe methodologywiththenewidea inen- forcingthedivergenceconditionalong theinterface.Inthispaper, wealso presentsome comparison resultsofthe two approaches.

For stationary Stokes and Darcy coupling equations, both meth- odscanwork.However,asthemeshgetsfiner,thefive-equations methodin[27]maybelessaccuratecomparedwiththatobtained fromthenew(six-equations)approachastheaugmented variable may loose accuracy due to the larger condition number of the Schurcomplement.

The restofthe paperisorganizedasfollows.Inthe nextsec- tion,we explain the theoretical aspects ofthe leastsquares aug- mented method for the Navier–Stokes andDarcy coupling equa- tions. The mathematical equivalence of the original and trans- formed problems will also be discussed. In Section 3, we intro- ducethe time discretization forthetransformed equationsbased onavariantofthepressurePoissonequationformulationandde- rivethe resultant Schur complementmatrix. Numerical accuracy checkandthecomparisonswithpreviousmethodwillbegivenin Section2.2,whilesome interesting flow simulationswithvarious shapesandorientationsoftheinterfacewillbegiveninSection5. Conclusionsandacknowledgementsare giveninthelast twosec- tions.

2. TheleastsquaresaugmentedmethodforNavier–Stokesand darcycouplingequations

Inthissection,weexplainthetheoreticalbasisoftheproposed numericalmethod.Wetransformtheoriginalgoverningequations (1) and (2) to an equivalent form so that we get several Pois- son/Helmholtzequationsthatare easierto solverseparately.Note that,the theoreticaljustificationof thetransformforthe Navier–

Stokes part is based on the pressure Poisson equation formula- tiondiscussed in[21,22]. Byapplying the divergenceoperator to themomentum equation ofthe Navier–Stokesequations andthe Darcy’slaw,theentireproblemcanbere-writtenas



p=

 ∇

· F

ρ∇

·

(

u·

u

)

, x



f,

0, x



D, (10)

[p]=q1, [pn]=q2, on



;



u=

⎧ ⎨

1

μ



px− F1+

ρ



u

t +u·

u



, x



f,

−K1



px, x



D,

(11)

[u]=−q5sin

θ

, [un]=q3, on



;

 v

=

⎧ ⎨

1

μ



py− F2+

ρ

 ∂v

t +u·

∇v



, x



f,

−K1



py, x



D,

(12)

[

v

]=q5cos

θ

, [

v

n]=q4, on



,

· u=0, (13)

where pn=

p· n=np is the normal derivative of pand [pn]=

pf

npnD. Similar definitions are applied to [un] and [vn]. Here,

q1,...,q5areintroducedaugmentedvariablesalongtheinterface. Theaugmentedvariablesarepartofunknownswithco-dimension onewhosesolutionssatisfytheinterfaceconditions(3)–(5).Inthe Darcy’sregion,wealsohavetheDarcy’slaw

uD=−K1

pD

x ,

v

D=−K1

pD

y, (14)

in addition to

· uD=0. In this way, we decouple the original problemtothreeseparatedHelmholtz/Poissonequationsliterately and an explicit expression (14). Note that from above equations, we cannot conclude

· uf=0 untilit istruealong the interface andtheboundaryfromthefluidside.Thatisthestartingpointof thenewmethod.

2.1. Augmentedequations

The above Navier–Stokes and Darcy governing equations are coupledbysixinterfaceconditionsalongtheinterface,

[p]=2

μ

n· Df· n, (15)

K2



uf− uD



·

τ

=2

τ

· Df· n, or K2uf·

τ

=2

τ

· Df· n, (16)

pf

n =

μ 

uf· n+



F

ρ 

uf

t +uf·

uf



· n, (17)

pD

n =

1

K1

(

uD· n

)

, (18)

[u·

τ

]=q5, (19)

· uf =0. (20)

The first five equations are similar to those for the Stokes and Darcycouplingdescribedin[27].However, we imposeextraaug- mented equation (20) on the interface. Since there are only five augmented variables q1, ..., q5, in discretization, we would have more equationsthan unknowns. Thatis whythe newmethod is calledtheleastsquaresaugmentedmethod.

2.2. Equivalenceoftheoriginalandtransformedgoverningequations

The well-posedness of theStokes and Darcy;andthe Navier–

Stokes andDarcycouplinghasbeen well addressedinthelitera- ture,forexample,[25].Assumethattheoriginalmodelsare well- posedwithsuitableregularityineachsub-domain;thatis,theso- lutions existandareunique exceptforthepressure upto acon- stant. Then the solutions to the transformed problem Eqs. (10)– (14)withaugmentedEqs.(15)–(20)alsoexistsincetheyareallde- finedfromoriginalvariablesandsatisfythetransformedequations which are exactly derived fromthe original governing equations.

Inother words,thesolutions totheoriginal problemare alsoso- lutionstothetransformedproblemiftheregularityconditionsare satisfied in each sub-domain. More precisely, let u and v, andp bethesolutiontotheoriginalproblem.From thesequantities,we define q1=[p], q2=[pn],...,q5=[u

τ

according to (10)–(13).

Fromthe definitionsofuandv,p,andq1,...,q5,they satisfythe transformedEqs.(10)–(14)andaugmentedEqs.(15)–(20).Thusthe existenceofthesolutionstothetransformedsystemshasbeenes- tablished.

The uniqueness of the solution is more subtle. The issue has beenaddressedto someextentfortheStokesandDarcycoupling in[27].Thekeyiswhethertheincompressibility conditionissat- isfieduptotheboundary.Theargumentin[27]isthattheincom- pressibilityconditionalong theboundary/intefaceisredundantat leastnumericallyandtherefore canbe discarded. Theoretically,it

(4)

isstill anopen questionthatthevelocity ofthetransformedsys- temisdivergencefree.Inournewapproach,wesimplyenforcethe divergence freecondition along theinterface forthe transformed equations. Thus the solutionto the transformed system isalso a solution to the original problemsince all original equations now are satisfied. Thesensitivity ofnew formulationstill needs to be investigated.

3. ThealgorithmfortheNavier–StokesandDarcycoupling

In this section, we explain the method for the Navier–Stokes andDarcycoupling.TheNavier–Stokessolveristheonebasedon thepressurePoissonequationformulationdevelopedin[21,22,31]. Thealgorithmisdescribedindetailinthissection.

Weassumetheentirecomputationaldomain=fDisa rectangle[a,b]× [c,d].Weuseauniformgrid,

xi=a+ihx, i=0,1,...M, hx= b− a

M ; (21)

yj=c+jhy, j=0,1,...N, hy= d− c

N , (22)

where thevelocity andpressure are all definedatthe collocated gridpoints(xi,yj). Notethat,itispossibletousetheMAC(mark- and-cell) grid,whichusually providesbetter resultsanddoesnot require the boundary condition for the pressure. However, the presence of an arbitraryinterface wouldmake the programming muchmorecomplicatedwhenusingtheMACgrid.Inournumeri- cal experimentsshowninlatersections,wedonotencounterany stabilityissuewhenweusethecollocatedgridsincetheReynolds number considered here is modest. The augmented equationsat theinterfaceandtheboundaryalsomakenumericalschemesmore stable. The interface between the flow and porous media is dis- cretized bya setofcontrolpoints(Xl,Yl),l=1,2...Nb connected byacubicspline[28].Thejumpandinterface conditions,andthe augmentedvariables arealldefinedatthose controlpointsinthe discretization.Weuseatimemarchingschemetoobtainapproxi- matesolutionsatdifferenttimeleveltkwithaknowninitialcon- dition at t0=0. Here the time step size is a constant for sim- plicity although we can use an adaptive one. From time step tk totk+1=tk+t,we denotethediscretesolution (approximation to p, u,andv) attime step tk as

{

Pi jk

}

,

{

Ui jk

}

,and

{

Vi jk

}

which to-

gether form a vector u˜k withdimension O(3MN), where M and N arethenumberofgridlinesinthex-andy-directions,respec- tively.We alsodenotethe discretesolution (approximationtoq1, q2,..., q5) at time steptk asQ1k,l, Q2k,l,..., Q5k,l, l=1,2,...,Nb, whichtogethertoformavectorQkR5Nb.

3.1. Timemarchingschemefromtimetktotk+1.

Assumethat wehavealreadycomputedthevelocity (Ui jk,Vi jk), thepressurePi jk,attimelevelk,weusetheCrank–Nicholsontype discretizationandtheaugmentedideatocomputethesolutionsat thenexttimeleveltk+1.

Given an augmented vector Qk+1, we solve the pressure in Eq.(10)usingtheIIMtoget

{

Pi jk+1

}

fromthefollowing,



pk+1=

 ∇

· Fk+1/2

ρ∇

·

(

u·

u

)

k+1/2, x



f,

0 x



D, (23)

[pk+1]=qk1+1,

pk+1

n

=qk2+1, on



. (24)

Intheexpressionsabove,we useasecondorderAdams-Bashforth schemetoapproximatethenon-lineartermas

·

(

u·

u

)

k+1/2=32

·

(

u·

u

)

k12

·

(

u·

u

)

k−1. (25)

Onceweobtainthepressure,wecansolvetheHelmholtzequa- tions(11)–(13)togetthepredictedvelocityfromthefollowing,



u− 2

ρ μ 

tu=

⎧ ⎪

⎪ ⎪

⎪ ⎪

⎪ ⎨

⎪ ⎪

⎪ ⎪

⎪ ⎪

2

μ

pkx+1

ρ



tuk





uk

+2

μ 

ρ (

u·

u

)

k+1/2− F1k+1/2



, x



f,

−K1



pkx+1+2K1

ρ

μ 

tpkx+1, x



D, (26)

[u]=−qk5+1sin

θ

,

u

n

=qk3+1, on



;

 v

− 2

ρ μ 

t

v

=

⎧ ⎪

⎪ ⎪

⎪ ⎪

⎪ ⎨

⎪ ⎪

⎪ ⎪

⎪ ⎪

2

μ

pky+1

ρ



t

v

k



 v

k

+2

μ

 ρ (

u·

∇v )

k+1/2− F2k+1/2



, x



f,

−K1



pky+1+2K1

ρ

μ 

tpky+1, x



D, (27)

[

v

]=−qk5+1cos

θ

,

∂v

n

=qk4+1, on



;

Notethat inthe Darcy’sregion, we add theterm−μ2ρtu to the left so that the right hand side becomes 2μK1ρt

pk+1 (since u=

−K1

p). Thus, the intermediate velocity can be solved by a fast Helmholtzsolverintheentirerectangulardomain1

Finally,wecanproceed withthe projectionsteptoensure the divergencefreeconditionforthecomputedvelocity,

⎧ ⎪

⎪ ⎨

⎪ ⎪

 ψ

k+1=

· u



t , x



∂ψ

k+1

n

 

∂

=0,

 ψ

k+1



=0,

∂ψ

k+1

n

=0, on



; (28)

uk+1=u



t

ψ

k+1. (29)

Althoughwehavetheupdatedvelocityinthewholedomain, westillreplacethevelocitybytheDarcy’slawinD as

ukD+1=−K1

pkD+1

x ,

v

kD+1=−K1

pkD+1

y , (30)

sothattheDarcy’slawcanbe exactlysatisfied.Theprevious step isto make use ofa fast Helmholtzsolver forthe velocity in the fluidregion.Thediscretizationofthefirstandsecondorderderiva- tivesinvolvedabove isbased onthestandard centered five-point finitedifferenceformulas.

3.2.AugmentedvariablesandtheSchurcomplementmatrix

The solutions to the three Poisson/Helmholtz equations (23)– (27)withjumps inthe solutionandthenormal derivativein the matrix-vectorformcanbewrittenas

Au˜k+1+BQk+1=k1+1 (31)

1 A direct application of IIM will lead to O (1) local truncation errors near the in- terface because of O (h/ t) = O (1) , and thus a first order accurate solution globally.

(5)

forsomevector k1+1 andsparsematricesAandB.

The next step is to evaluate the residual of the augmented equations(15)–(20).This step involveslocal interpolations andit isequivalenttodiscretizetheinterfaceconditions(15)–(20).

At each control point Xl, we interpolate the discrete solution

{

Pi jk+1

}

,

{

Ui jk+1

}

,and

{

Vi jk+1

}

togettheirvalues,normalandtangen-

tialderivativesfromeach side ofthe interface,Plk+1,±, (Pn)kl+1,±, (∂τP)kl+1,± and so on. Note that, for a Poisson/Helmholtz equa- tionwithknownjumpconditionsinthesolution andthe normal derivative, the computed solution and first order partial deriva- tives at grid points have been proved to be second order accu- rateusing theIIM [6]. From the second order accurate values at gridpoints, we alsogetsecond orderaccurate valuesatthe con- trolpointssincethecoefficientsoftheinterpolationsareO(1).

The discretization ofthe interface conditions(15)–(20)can be formallywrittenas

R

(

Qk+1

)

=Cu˜k+1+DQk+1− ˜Fk2+1 (32)

forsomesparsematricesCandD.Thesolution(u˜k+1,Qk+1)satis- fiesR(Qk+1)=0 andEq.(31) sowe havethefollowingsystemof equations,

A B

C D



u˜k+1

Qk+1



=



k1+1 k2+1



. (33)

Therefore,theSchurcomplementforQk+1is

(

D− CA−1B

)

Qk+1=˜Fk2+1− CA−1k1+1=¯Fk+1, or

SQk+1=¯Fk+1. (34)

It has been shown in [29] and other related papers, that the matrix-vectormultiplicationSQk+1 givenQk+1 issimply

SQk+1=R

(

Qk+1

)

+¯Fk+1=R

(

Qk+1

)

− R

(

0

)

, (35)

whereR(Qk+1)=SQk+1− ¯Fk+1.TherighthandsideofSQk+1=¯Fk+1 canbecomputedfrom−R(0)correspondingtotheresidualofthe interfaceconditionswithzerovalueofaugmentedvariableswhich resultsfromthethreeregularPoisson/Helmholtzequationsonthe rectangulardomain.Inournumericaltests,we formthematrixS, butnot A, B,C, andD, by using Qk+1=ei, i=1,2,...,5Nb. The coefficient matrix has a rectangular form with the dimension of 6Nb× 5Nb.Wethenusethesingularvaluedecomposition(SVD)to findtheleastsquares solutionofthe system. Weoutline thenu- mericalalgorithmfromtimesteptktotk+1asfollows.

Step1:FindtherighthandsideoftheSchurcomplement ¯Fk+1 bysettingQk+1=0,solving thetransformedproblem(10)–(14)to get u˜k+1(0),andusing u˜k+1(0)andQk+1=0tointerpolateinter- face quantities needed in Eqs. (15)–(20). The residual of the in- terfaceconditionsistherighthandsideoftheSchurcomplement withanegativesign.

Step2:Fori=1,2,...,5Nb,wesetQk+1=ei,thei-thunitvec- tor,solvethe transformedproblem(10)–(14)toget u˜k+1(Q),and theninterpolate u˜k+1(Q)toget theresidualoftheinterface con- ditions(15)–(20).Thei-thcolumnoftheSchurcomplementisthe residualof theinterface conditions(15)–(19) plus theright hand side ¯Fk+1.Note that, fora fixed interface andconstant time step size,thisstepjustneedstobedoneonceinitially.

Step3:SolvetheSchurcomplementsystemtogetthesolution Qk+1usingtheSVDdecomposition.

Step 4: Solve the transformed problem (10)–(14) with com- putedQk+1togetthepressureandvelocityu˜k+1.

3.3. Someimplementationdetails

There are some major differences between the algorithm for solving the Navier–Stokes and Darcy coupling and that for the StokesandDarcycoupling.Weoutlineafewasbelow.

FortheStokesandDarcycoupling,weneedtosolvethreePois- sonequations.FortheNavier–StokesandDarcycoupling,weneed to solve a Poisson equation forthe pressure, but two Helmholtz equationsforthepredictedvelocityu.Thecoefficient−μ2ρt isof 1/t∼ 1/hintheNavier–Stokesequationsbutitshouldbezerofor theDarcy’sequation.ThisO(1/h)jumpinthecoefficient oftheu terminthe Helmholtzequations wouldlead toO(h) errorinthe solution,seeforexample,[26,29].However,thereisnosuchissue fortheStokesandDarcycoupling.Inpresentapproach,weaddthe term−μ2ρtu to both sidesof the Darcy’s equation. In thisway, wecan getridofthediscontinuityinthecoefficient,andstill are abletousethefastHelmholtzsolverintheentirerectangulardo- main.ThevalueofuintheDarcy’sregionisjustaghostvalueto makethecomputationinthewholedomainmoreaccurateandef- ficient.Afteruintheflowregionhasbeencomputed,wereplace thevalueinDarcy’sregionbyuk+1=−K1

pk+1.

UsingthepressurePoissonequation formulation,howtocom- puteu· nalongthe boundary

andtheinterface iscrucial to thestabilityofthe algorithm.A directinterpolation fromuto getuoftenleadstoinstability.Thereareafewdiscussionsinthe literature about how to compute u· n if the velocity is known along rectangularboundaries, see forexample, [21,30]. Itis quite challengingforcurvedboundaries/interfacesanddifferentbound- ary/interfaceconditions.Weusetherelation

μ 

uf=

ρ



uf

t +uf·

uf



+

pf− Ff (36)

togetthevalueofufatgridpoints,theninterpolatethemtoget thevalues atthecontrol pointsneededfortheaugmented equa- tions.Notethattherighthandsideonlyinvolvesfirstorderderiva- tivesofthosefluidquantities.

Again, usingthe pressurePoissonequation formulation, ithas been discussed in the literature that it is not necessary to per- form the projection step. We have tested both approaches with andwithoutthe projection step.The methodwiththe projection givesbetterresultseventhoughnotsignificantly.Furthermore,the enforcement ofthe incompressibility condition wouldensure the equivalenceoftheoriginalandtransformedproblemsasdiscussed earlier.Notethat,forfixed interfacesandtimeindependentinter- faceconditions(15)–(20),theSchurcomplementmatrixSisafixed time-independentmatrixso theSVDdecompositionjustneeds to beperformedonce.

4. Numericalaccuracytestsandcomparisons

Inthissection,weshowsomenumericalaccuracytestsforthe presentalgorithm andthe comparisonwithprevious one in[27]. We use a uniformmesh withhx=hy=h=4/N for various N so thatwe canutilizeafastPoisson/Helmholtzsolver.The computa- tionaldomainis[−2, 2]× [−2, 2].Theinterfaceisexpressedusing the cubicspline package [28].Throughout thissection, theinter- faceisaunitcirclex2+y2=1andallphysicalparameterssuch as

ρ

,

μ

, K1,K2 are all set to be one forsimplicity, unlessother- wise stated. The errors of thecomputed solutions are definedin Lnormas

Ep

N=max

i, j



p

(

xi,yj,T

)

− Pi jK



, (37)

Eu

N=maxi, j

 

u

(

xi,yj,T

)

− Ui jK



2

+



v (

xi,yj,T

)

− Vi jK



2

,(38)

(6)

Fig. 2. Velocity plot of a fluid flow and a porous media (inside the domain) modeled by the Navier–Stokes and Darcy coupling. (a) and (b), the interfaces are ellipses. (c) and (d), the interface is r = 0 . 5 + 0 . 1 sin 5 θin the polar coordinates. For smaller K ’s, the porous media acts as some sort of obstacles while for larger ones, the flow can go through easily. In all the simulations, the final time is T = 6 . 5 . The inflow condition is u = 1 , v = 0 . K = K 1 .

forameshsizeNbyN,whereKisthefinaltimestepcorrespond- ing tothe final timeT=Kt.The orderofaccuracy isgivenap- proximatelyby

order=log2



Ep

N/

Ep

2N



(39)

for the pressure and similarly for the velocity. Unless otherwise stated,wechoosethenumberofcontrolpointsNb=N.

4.1. Accuracycheckagainstanalyticsolutions

Tovalidateournumericalalgorithm,wefirstcomparethecom- putedsolutions againstanalyticsolutions.Thefirstexamplehasa

discontinuoustangentialslipforthevelocity fieldwhilethepres- sure is continuous along the interface . The normal derivative ofthe pressureis alsodiscontinuousacross the interface.On the other hand, the second example has a continuous tangentialve- locity but the pressure is discontinuous along the interface. The normalderivativesofthevelocitycomponentsarealsodiscontinu- ousacrosstheinterface. Thediscontinuitiesarevaryingalong the interfacein thesecond example.Noticethat, bothexamples have continuousnormal velocity along the interface since it is one of therequiredinterface conditionsasdiscussed earlier.Wedemon- strate that our present algorithm can handle both cases well so moregeneralexamplescanworkwithoutanydifficulty.

(7)

Fig. 3. Velocity plot of a porous media and a fluid flow (inside the domain) modeled by (a) the Darcy and Stokes coupling; and (b) the Darcy and Navier–Stokes coupling.

The parameters are μ= 0 . 2 , K 1 = 0 . 05 , K 2 = 1 . 3 with the mesh N = 100 and N b = 80 . The interface is r = 0 . 5 + 0 . 1 sin 5 θin the polar coordinates; (c)–(d) simulation results for the Darcy and Navier–Stokes coupling with the interfaces, x 2 / 0 . 4 2 + y 2 / 0 . 6 2 = 1 and r = 0 . 5 + 0 . 2 sin 5 θ, respectively. The parameters are set as μ= 0 . 02 , K 1 = 0 . 5 , and K 2 = 1 . 3 . The initial data is obtained using the solution of the Darcy and Stokes coupling.

4.1.1. Example1

TheanalyticsolutionoftheNavier–Stokesequationsis uf =g

(

t

)

y

(

x2+y2− 1

)

+2y



,

v

f =g

(

t

)

− x

(

x2+y2− 1

)

− 2x



, pf =g

(

t

)

x2+y2



, (40)

definedoutsideoftheunitcirclex2+y2=1whiletheanalyticso- lutionfortheDarcy’ssystemisuD=

v

D=0,andpD=g(t).Atthe interfacex2+y2=1,wehave

n=[x,y]T,

τ

=[−y, x]T, pf =g

(

t

)

, pD=g

(

t

)

,

uf=2yg

(

t

)

,

v

f=−2xg

(

t

)

, uD=0,

v

D=0,

uf

n =4yg

(

t

)

,

∂v

f

n =−4xg

(

t

)

,

uf

∂τ

=2xg

(

t

)

,

∂v

f

∂τ

=2yg

(

t

)

,

n· Df· n=0

τ

· Df· n=0. (41)

It iseasy tocheck that theabove solutions uf anduD satisfy the Navier–StokesandDarcy’sequations,respectively,withthesource term F in the Navier–Stokes equations being computed directly fromtheanalyticsolution.Theinterfacecondition(4),[p]=2

μ

n· Df· nwith

μ

=1issatisfied.TheBJS condition(thesecond inter- face condition in Eq.(5)) is also satisfied. However, the solution

(8)

Fig. 4. Navier–Stokes and Darcy coupling with a sharp angled interface with different parameters at T = 3 . 5 . In (a)-(b), the fluid flow is outside and the Darcy’s law is inside of the interface; while in (c)-(d), the fluid flow is inside while the Darcy’s law is outside of the interface. The parameters are μ= 0 . 1 , K 1 = 0 . 02 , and K 2 = 10 −4 in (a);

μ= 0 . 1 , K 1 = 0 . 02 , and K 2 = 10 −3 in (b); μ= 0 . 02 , K 1 = 0 . 25 , and K 2 = 1 . 3 in (c); and μ= 0 . 02 , K 1 = 0 . 5 , and K 2 = 10 −4 in (d). The corners do have significant influences on the flow patterns.

doesnotsatisfythefirstcondition(BJ)inEq.(5)since

τ

· Df· n=0 while −(uf− uD)·

τ

=2g(t). Nevertheless, the present algorithm candealwitheitherinterfaceconditionsinEq.(5).

In Table1,we show agrid refinementanalysisforg(t)=sint atthefinal time T=5.Inthe table,thefirstcolumnisthemesh size inboth x-andy-directions;the second, fourthcolumnsare themaximumerrorsofthepressure andvelocity, whilethethird andfifthcolumnsarecorrespondingorderofaccuracy,respectively.

The sixthandseventh columnsare theconditionnumbersofthe Schur complement matrix definedas cond(S)= maxminiσi

iσi, where

σ

i

arenon-zerosingularvaluesoftheSchurcomplementmatrix,with

andwithouttheaugmentedequation

· uf

|

=0alongtheinter- face,respectively.Onecanobservethattheconditionnumberwith theconstraintissignificantsmallerthanthatofwithoutit,which wouldalsoaffecttheaccuracyforthecomputedvelocity andthe pressure.InTable1(a),wehavethesamenumberofcontrolpoints ontheinterfaceasthemeshsize,thatis,Nb=N.Theaverageor- dersforthepressure andvelocity are 2.0231and3.2327,respec- tively. With the cubic spline representation of the interface, we canusefewercontrolpointswithoutaffectingtheaccuracyforthe pressure andthe velocity.For an interface with a modest curva- ture,ourcubicsplinepackage hasorderofaccuracyO(h3s),where

(9)

Fig. 5. Darcy and Navier–Stokes coupling with an interface and various parameters and different locations of the interface. The Darcy’s law is defined outside of the interface.

(a), μ= 0 . 1 , K 1 = 0 . 5 , K 2 = 10 −4 . (b), μ= 0 . 002 , K 1 = 0 . 02 , K 2 = 10 −3 . The interface is rotated counterclockwise by π/6. (c), μ= 0 . 002 , K 1 = 0 . 02 , K 2 = 10 −3 . The interface is rotated by π/3 counterclockwise. (d), μ= 0 . 002 , K 1 = 0 . 02 , K 2 = 10 −3 . The interface is rotated by 3 π/4 clockwise.

Table 1

A grid refinement analysis of Example 1 at time T = 5 . The parameters are μ= 1 , ρ= 1 , K 1 = 1 , K 2 = 1 . (a) the re- sults with N b = N. (b) the results with fewer control points N b < N . The CPU times are 0.5462, 1.5884, 5.9216, 34.272, 226.9478 s for (b), respectively.

(a) The average order of accuracy for the pressure and velocity are 2.0231 and 3.2327, respectively. ( N b = N)

N E p N order E u N order cond-6eq cond-5eq

16 1.8890 1 . 9839 e − 01 8 . 0806 e + 01 1 . 2104 e + 02

32 5 . 6152 e − 01 1.7502 2 . 1319 e − 02 3.2182 2 . 9443 e + 02 1 . 3904 e + 03 64 1 . 4805 e − 01 1.9232 1 . 7205 e − 03 3.6313 1 . 0435 e + 03 1 . 7704 e + 04 128 3 . 5373 e − 02 2.0654 1 . 4974 e − 04 3.5223 7 . 0632 e + 03 3 . 6746 e + 05 256 6 . 9209 e − 03 2.3536 2 . 5414 e − 05 2.5588 7 . 0651 e + 04 1 . 2520 e + 07 (b) The average order of accuracy for the pressure and velocity are 2.0221 and 3.2110, respectively. ( N b < N )

N N b E p N order E u N order cond-6eq cond-5eq

16 16 1 . 8890 e − 00 1 . 9839 e − 01 8 . 0806 e + 01 1 . 2104 e + 02 32 22 5 . 7256 e − 01 1.7221 2 . 2640 e − 02 3.1314 2 . 0234 e + 02 7 . 3228 e + 02 64 30 1 . 4790 e − 01 1.9528 1 . 7365 e − 03 3.7046 7 . 7313 e + 02 6 . 7254 e + 03 128 42 3 . 5359 e − 02 2.0645 1 . 5333 e − 04 3.5015 3 . 0480 e + 03 8 . 4892 e + 04 256 68 6 . 9394 e − 03 2.3492 2 . 6986 e − 05 2.5064 1 . 0844 e + 04 1 . 0888 e + 06

(10)

Fig. 6. Navier–Stokes and Darcy coupling with an interface and various parameters and different locations of the interface. The Darcy law is defined inside of the interface.

(a), μ= 0 . 1 , K 1 = 0 . 02 , K 2 = 10 −3 . (b), μ= 0 . 1 , K 1 = 0 . 02 , K 2 = 10 −3 . The interface is rotated by π/3 clockwise. (c), μ= 0 . 1 , K 1 = 0 . 02 , K 2 = 10 −3 . The interface is rotated by π/6 counterclockwise. (d), μ= 0 . 05 , K 1 = 0 . 1 , K 2 = 10 −3 . The interface is rotated by π/4 counterclockwise.

hs is the meshsize of the spline interpolation. Thus to maintain secondorderaccuracy,weneedtohaveroughlyO(h3s)∼ O(h2),or Nb∼ N2/3. In our simulation, we use roughly Nb∼ 16+N2/3. The number 16 is used to make sure that there are enough initial pointsontheinterface.InTable1(b),weperformthesameexper- iments but with fewer control pointsNb which leads to smaller Schur complement matrix and obviously the condition number becomes slightly smaller. However, the average accuracy orders 2.0221 forthe pressureand 3.2110forthe velocity remain about thesame.

InTable.2,wealsoshowhowwelltheinterfaceconditionsare satisfied.Wecanseethatalltheresidualsarerelativelysmalland decrease quadraticallyforthisexample.Ifonlyfive equationsare

used,the residualsare then proportional tocond(S)



,where



is

themachineprecisionandcond(S)istheconditionnumberofthe Schurcomplement.

4.1.2. Example2

Inthepreviousexample,althoughthevelocityhasatangential slipalongthe interface butitis aconstant inthe Darcy’sregion.

Here,wepresentanexamplewithacontinuoustangentialvelocity butdiscontinuouspressure alongthe interface.More importantly, thevelocity and pressureare non-trivial inboth regions and the normalderivativesofthevelocitycomponentsarealsodiscontinu- ousacrosstheinterface.TheanalyticsolutionoftheNavier–Stokes

數據

Fig. 1. A diagram of a fluid flow and porous media. In the diagram, n and  τ are the  unit normal and tangential directions, respectively
Fig. 2. Velocity plot of a fluid flow and a porous media (inside the domain) modeled by the Navier–Stokes and Darcy coupling
Fig. 3. Velocity plot of a porous media and a fluid flow (inside the domain) modeled by (a) the Darcy and Stokes coupling; and (b) the Darcy and Navier–Stokes coupling
Fig. 4. Navier–Stokes and Darcy coupling with a sharp angled interface with different parameters at T = 3
+6

參考文獻

相關文件

Too good security is trumping deployment Practical security isn’ t glamorous... USENIX Security

substance) is matter that has distinct properties and a composition that does not vary from sample

Wang, Solving pseudomonotone variational inequalities and pseudocon- vex optimization problems using the projection neural network, IEEE Transactions on Neural Networks 17

Then, we recast the signal recovery problem as a smoothing penalized least squares optimization problem, and apply the nonlinear conjugate gradient method to solve the smoothing

Then, we recast the signal recovery problem as a smoothing penalized least squares optimization problem, and apply the nonlinear conjugate gradient method to solve the smoothing

Chen, The semismooth-related properties of a merit function and a descent method for the nonlinear complementarity problem, Journal of Global Optimization, vol.. Soares, A new

Courtesy: Ned Wright’s Cosmology Page Burles, Nolette &amp; Turner, 1999?. Total Mass Density

Define instead the imaginary.. potential, magnetic field, lattice…) Dirac-BdG Hamiltonian:. with small, and matrix