CMS-Flow Numerical Methods:General Transport Equation

From CIRPwiki
Revision as of 19:40, 31 July 2014 by Deleted (talk | contribs)
Jump to navigation Jump to search

General Transport Equation

All of the governing equations may be written in general form

 

(hϕ)tTemporal Term+(h bfUϕ)Advection Term=(Γhϕ)Diffusion Term+SSource Term

(8)

where ϕ is a general scalar, t is time, h is the total water depth, bfU is the depth averaged current velocity, Γ is the diffusion coefficient for ϕ, =(1,2) is the gradient operator, and S includes all other terms. Note that in the case of the continuity and momentum equations ϕ is equal to 1 and Ui respectively.

Spatial Discretization

Temporal Discretization

The temporal term of the momentum equations is discretized using a first order implicit Euler scheme

 

A(hϕ)tdA=tAhϕdA=hn+1ϕn+1hnϕnΔtΔA

(9)

where ΔA is the cell area, and Δt is the hydrodynamic time step.

Cell-face interpolation operator

The general formula for estimating the cell-face value of ϕ~f is given by

 

ϕ¯f=LϕN+(1L)ϕP+(ϕ)NL(x,Ox,N)+(ϕ)P(1L)(x,Ox,P)

(12)

where L is a linear interpolation factor given by L=Δx,P/(Δx,P+Δx,N) and is the gradient operator in the direction parallel to face f. By definition =2|n^1|+1|n^2|. Note that for neighboring cells without any refinement x,Ox,P and x,Ox,N are zero and thus the above equation is consistent with non-refined cell faces.

Advection Schemes

The advection scheme obtained using the divergence theorem as where is the outward unit normal on cell face f, is the cell face length and is the total water depth linearly interpolated to the cell face. Here the overbar indicates a cell face interpolation operator described in the following section. For Cartesian grids the cell face unit vector is always aligned with one of the Cartesian coordinates which simplifies the calculation. Defining the cell face normal velocity as the above equation simplifies to

 

A(h𝐔ϕ)dA=Lhϕ(𝐔𝐧)dL=fh¯fΔlf(n^iUi)fϕ~f

(10)

where 𝐧=n^𝐢=(n^𝟏,n^𝟐) is the outward unit normal on cell face f, Δlf is the cell face length and h¯f is the total water depth linearly interpolated to the cell face. Here the overbar indicates a cell face interpolation operator described in the following section. For Cartesian grids the cell face unit vector is always aligned with one of the Cartesian coordinates which simplifies the calculation. Defining the cell face normal velocity as Uf=Uifi the above equation simplifies to

 

fh¯fΔlf(n^iUi)fϕ~f=fnfFfϕ~f

(11)

where Ff=h¯fΔlfUf, nf=n=(e^in^i)f, with e^i=(e^1,e^2) being the basis vector. nf is equal to 1 for West and South faces and equal to -1 for North and East cell faces. Lastly, ϕ~f is the advective value of ϕ on cell face f, and is calculated using either the Hybrid, Exponential, HLPA (Zhu 1991) schemes. The cell face velocities Uf are calculated using the momentum interpolation method of Rhie and Chow (1983) described in the subsequent section. The advection value is calculated as ϕ~f=ϕ~fL(exp)+ϕ~fH(imp)ϕ~fL(imp), where the superscripts L and H indicate low and high order approximations and the superscripts (exp) and (imp) indicate either explicit and implicit treatment. The explicit term is solved directly while the implicit term is implemented through a deferred correction in which the terms are approximated using the values from the previous iteration step.


Diffusion term

The diffusion term is discretized in general form using the divergence theorem

 

A(Γhϕ)dA=SΓh(ϕ𝐧)dS=fΓ¯fh¯fΔlf(n^iiϕ)f

(13)

The discritization of the cell-face gradient is described in the next section. On a Cartesian grid the above expression may be further simplified as

 

fnfΓ¯fh¯fΔlf(ϕ)f=fDf[ϕNϕP+(ϕ)N(x,Ox,N)(ϕ)P(x,Ox,P)]

(14)

where ϕ is gradient in the direction perpendicular to the cell face and Df=Γ¯fh¯fΔlf|δx|.