CMS-Flow:Hydro Eqs: Difference between revisions

From CIRPwiki
Jump to navigation Jump to search
Deleted (talk | contribs)
Deleted (talk | contribs)
Line 37: Line 37:
where <math> {{L}_{\bot }} </math> is a linear interpolation factor given by <math> {{L}_{\bot }}=\Delta {{x}_{\bot ,P}}/(\Delta {{x}_{\bot ,P}}+\Delta {{x}_{\bot ,N}}) </math> and <math> {{\nabla }_{\parallel }} </math> is the gradient operator in the direction parallel to face f. By definition <math> \parallel \,=2\left| {{{\hat{n}}}_{1}} \right|+1\left| {{{\hat{n}}}_{2}} \right| </math>. Note that for neighboring cells without any refinement <math< {{x}_{\parallel ,O}}-{{x}_{\parallel ,P}} </math> and <math>{{x}_{\parallel ,O}}-{{x}_{\parallel ,N}} </math> are zero and thus the above equation is consistent with non-refined cell faces.  
where <math> {{L}_{\bot }} </math> is a linear interpolation factor given by <math> {{L}_{\bot }}=\Delta {{x}_{\bot ,P}}/(\Delta {{x}_{\bot ,P}}+\Delta {{x}_{\bot ,N}}) </math> and <math> {{\nabla }_{\parallel }} </math> is the gradient operator in the direction parallel to face f. By definition <math> \parallel \,=2\left| {{{\hat{n}}}_{1}} \right|+1\left| {{{\hat{n}}}_{2}} \right| </math>. Note that for neighboring cells without any refinement <math< {{x}_{\parallel ,O}}-{{x}_{\parallel ,P}} </math> and <math>{{x}_{\parallel ,O}}-{{x}_{\parallel ,N}} </math> are zero and thus the above equation is consistent with non-refined cell faces.  


== Diffusion term ==
=== Diffusion term ===
The diffusion term is discretized in general form using the divergence theorem  
The diffusion term is discretized in general form using the divergence theorem  
{{Equation| <math> \int\limits_{A}{\nabla \cdot \left( \Gamma h\nabla \phi  \right)}\text{d}A=\oint\limits_{S}{\Gamma h\left( \nabla \phi \cdot \mathbf{n} \right)}\text{d}S=\sum\limits_{f}^{{}}{\bar{\Gamma }_{f}^{{}}{{{\bar{h}}}_{f}}\Delta {{l}_{f}}{{\left( {{{\hat{n}}}_{i}}{{\nabla }_{i}}\phi  \right)}_{f}}} </math> |2=7}}
{{Equation| <math> \int\limits_{A}{\nabla \cdot \left( \Gamma h\nabla \phi  \right)}\text{d}A=\oint\limits_{S}{\Gamma h\left( \nabla \phi \cdot \mathbf{n} \right)}\text{d}S=\sum\limits_{f}^{{}}{\bar{\Gamma }_{f}^{{}}{{{\bar{h}}}_{f}}\Delta {{l}_{f}}{{\left( {{{\hat{n}}}_{i}}{{\nabla }_{i}}\phi  \right)}_{f}}} </math> |2=7}}



Revision as of 17:04, 6 April 2011

Governing Equations

The depth-averaged 2-D continuity equation may be written as

  ht+(h𝐔)=S (1)

where h is the total water depth h=ζ+η, η is the water surface elevation, ζ is the still water depth, 𝐔=(U1,U2) is the depth-averaged current velocity, S is a source term due to precipitation and evaporation, and =(1,2) is the divergence operator.

The momentum equation can be written as

  (hUi)t+(h𝐔Ui)𝐁𝐔=ghiη+(νthUi)+1ρ(τwi+τSiτbi) (2)

where g is the gravitational constant, 𝐁=(0fcfc0) where fc is the Coriolis parameter, νt is the eddy viscosity, τwi is the wind stress, τSi is the wave stresses, and τbi is the combined wave-current mean bed shear stress.

Numerical Methods

General Transport Equation: Discretization

All of the governing equations may be written in general form

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

where ϕ is a general scalar, t is time, h is the total water depth, 𝐔 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.

Temporal Term

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 (3)

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

Advection Term

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 (4)

where 𝐧=n^i=(n^1,n^2) 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 (5)

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.

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) (6)

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 <math< {{x}_{\parallel ,O}}-{{x}_{\parallel ,P}} </math> and x,Ox,N are zero and thus the above equation is consistent with non-refined cell faces.

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 (7)

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)] (8)

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

Cell-centered node-based gradient operator

Cell-centered face-based gradient operator

Cell-face gradient operator

Source terms

Hydrodynamic Solver


Symbol Description Units
t Time sec
h Total water depth h=ζ+η m
ζ Still water depth m
η Water surface elevation with respect to the still water elevation m
Uj Current velocity in the jth direction m/sec
S Sum of Precipitation and evaporation per unit area m/sec
g Gravitational constant m/sec2
ρ Water density kg/m3
pa Atmospheric pressure Pa
νt Turbulent eddy viscosity m2/sec

Documentation Portal