geophysical ice flows: analytical and numerical...

35
Geophysical Ice Flows: Analytical and Numerical Approaches Will Mitchell University of Alaska - Fairbanks July 23, 2012 Supported by NASA grant NNX09AJ38G

Upload: others

Post on 04-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Geophysical Ice Flows:Analytical and Numerical Approaches

Will Mitchell

University of Alaska - Fairbanks

July 23, 2012

Supported by NASA grant NNX09AJ38G

Page 2: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Ice: an awesome problem

...velocity, pressure, temperature, free surface all evolve

Page 3: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Outline

I I. Introduction to viscous fluids

I II. Exact solutions

I III. Finite element solutions

Page 4: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Stress: force per unit area

A tornado sucks up a penny. At any time:

I The fluid into which n points exerts aforce on the penny

I Force / area = stress

I The stress vector is a linear function of n

I In a Cartesian system: stress = σ · nI σ is the Cauchy stress tensor

Quiz:Suppose there is no p ≥ 0 such that σ · n = −pn.Physical interpretation?

Page 5: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Decomposition of stress

I In a fluid at rest, σ · n = −pn, so

σ = −pI

I In general, choose p = −Trace(σ)/d , so

σ = −pI + τ

where τ has zero trace.

... this defines pressure p and deviatoric stress τ

Page 6: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Strain rate

I let u be a velocity field

I the gradient of a vector is the tensor (∇u)ij =∂uj

∂xi

I define Du =1

2(∇u +∇uT )

I in 2D: Du = 12

2∂u1

∂x1

∂u2

∂x1+∂u1

∂x2∂u1

∂x2+∂u2

∂x12∂u2

∂x2

I Du is the strain rate tensor.

True or False:“Since Du is a derivative of velocity, it measures acceleration.”

Page 7: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Constitutive Laws: Newtonian

How does a fluid respond to a given stress?

I For Newtonian fluids (e.g. water) a linear law:

τ = 2µDu

The proportionality constant µ is the viscosity.

Page 8: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Constitutive Laws: Glen’s

For glacier ice, a nonlinear law.

I define

‖τ‖ =

√1

2Tr(τT τ) and ‖Du‖ =

√1

2Tr(DuTDu)

I assume‖Du‖ = A ‖τ‖n

I the law is either of

τ = (A ‖τ‖n−1)−1Du

τ = A−1/n ‖Du‖(1−n)/n Du

A is the ice softness, n ≈ 3 is Glen’s exponent.

Page 9: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Stokes Equation

What forces act on a blob occupying a region Ω within a fluid?

I body force, gravity:∫

Ω ρg

I force exerted by surrounding fluid:∫∂Ω σ · n =

∫Ω∇ · σ

Force = rate of change of momentum∫Ωρg +∇ · σ =

∂t

∫Ωρu

=

∫Ω

D

Dtρu.

In glaciers, Fr=

∣∣∣∣ D

Dtρu

∣∣∣∣ :∣∣p∣∣ < 10−15 so

ρg +∇ · σ = 0.

Page 10: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Incompressible Stokes System (two versions)ρg +∇ · σ = 0

∇ · u = 0

∇ · σ = ∇ · τ +∇p

= 2µ∇ · ε−∇p

= µ∇ · (∇u) + µ∇ · (∇uT )−∇p

∇ · (∇u) =∂

∂xj

∂uj

∂xi=

∂xi(∇ · u) = 0

∇ · (∇uT ) =∂

∂xj

∂ui

∂xj= ∆u

−µ4u +∇p = ρg

∇ · u = 0

Page 11: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

The Biharmonic Equation

I for 2D, incompressible flow: u = (u, 0,w) and ∇ · u = 0

I there is a streamfunction ψ such that ψz = u, −ψx = w .

I take the curl of the Stokes eqn

∇×[− µ4u +∇p = ρg

]to get the biharmonic equation

ψxxxx + 2ψxxzz + ψzzzz = 0

or44ψ = 0.

Quiz: give an example of a function solving the biharmonic eqn.

Page 12: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Ice: an awesome problem

...velocity, pressure, temperature, free surface all evolve

Page 13: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Slab-on-a-slope: a tractable problem

g = (g1, g2) = ρg(

sin(α),− cos(α))

...no evolution

Page 14: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Stokes bvp

find a velocity u = (u,w) and pressure p such that

−∇p + µ4u = −g on Ω

∇ · u = 0 on Ω

u(0, z)− u(L, z) = 0 for all z

ux(0, z)− ux(L, z) = 0 for all z

u = f on z = 0w = 0 on z = 0

wx + uz = 0 on z = H2wzx − (uxx + uzz) = g1/µ on z = H

wheref (x) = a0 +

∑∞n=1 an sin(λnx) + bn cos(λnx).

Page 15: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

biharmonic bvp

find a streamfunction ψ such that

44ψ = 0 on Ω

ψz(0, z)− ψz(L, z) = 0 for all z

ψxz(0, z)− ψxz(L, z) = 0 for all z

ψx(0, z)− ψx(L, z) = 0 for all z

ψxx(0, z)− ψxx(L, z) = 0 for all z

ψ(x , 0) = 0 for all x

ψz(x , 0) = f for all x

ψzz(x ,H)− ψxx(x ,H) = 0 for all x

3ψxxz(x ,H) + ψzzz(x ,H) = −g1/µ for all x .

(1)

Page 16: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

biharmonic bvp, subproblem: f = 0

ψ(x , z) =g1H

2µz2− g1

6µz3 −→

u(x , z) =g1H

µz − g1

2µz2

w(x , z) = 0

...this is Newtonian laminar flow, a well known solution.

Page 17: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

biharmonic bvp, subproblem: f 6= 0

strategy:

I separate variables: ψ(x , z) = X (x)Z (z)

I periodicity: take X (x) = sin(λx) + cos(λx) for λ =2πn

LI the biharmonic eqn reduces to an ODE:

0 = 42(XZ ) = X[λ4Z − 2λ2Z ′′ + Z (iv)

]I for λ > 0 this gives

Z (z) = a sinh(λz) + b cosh(λz) + cz sinh(λz) + dz cosh(λz)

I homogeneous bcs determine b, c , d in terms of a

I weighted sum gets the nonzero condition

Page 18: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Exact Solutions

Horizontal Component of Velocity:

u(x , z) = a0 +g1H

µz − g1

2µz2 +

∞∑n=1

λnH2(an sin(λnx) + bn cos(λnx))

λ2nH2 + cosh2(λnH)

Z ′n(z)

where

Z ′n(z) = − 1

Hcosh(λnH)

(sinh(λn(z − H)) + λnz cosh(λn(z − H))

)+

cosh(λnH)− λnH sinh(λnH)

λnH2·(

cosh(λn(z − H))

+ λnz sinh(λn(z − H)))

+ λn cosh(λnz).

Page 19: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Exact Solutions

Vertical Component of Velocity:

w(x , z) =∞∑n=1

λ2nH2

λ2nH2 + cosh2(λnH)

(bn sin(λnx)− an cos(λnx))Zn(z)

where

Zn(z) = sinh(λnz)− 1

Hcosh(λnH)z sinh(λn(z − H))

+

(cosh(λnH)

λnH2− sinh(λnH)

H

)z cosh(λn(z − H))

Page 20: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Exact Solutions

Pressure:

p(x , z) = g2z − g2H

+ 2µ∞∑n=1

λ3nH(an cos(λnx)− bn sin(λnx))

λ2nH2 + cosh2(λnH)

×[sinh(λnz)− cosh (λnH)

λnHcosh (λn(z − H))

].

... this is new.

Page 21: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite
Page 22: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

The finite element method

I numerical approximation of p and u

I requires a mesh of the domain:

I leads to a system of linear equations Ax = b

Page 23: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Variational Formulation: incompressibility

Incompressibility: ∇ · u = 0.

We seek a u ∈ H1(Ω) such that for all q ∈ L2(Ω), we have∫Ω

q∇ · u = 0.

u is a trial function;q is a test function.

Page 24: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Variational Formulation: Stokes

Put σ = τ − pI in the Stokes equation:

0 = ∇ · τ −∇p + ρg

Dot with v ∈ H1 and integrate over Ω. Integration by parts gives∫Ωτ : ∇v −

∫Ω

p∇ · v −∫∂Ω

n · σ · v = ρ

∫Ωg · v.

More manipulation gives

1

∫Ω

(∇uT +∇u

):(∇v +∇vT

)−∫

Ωp∇ · v = ρ

∫Ωg · v.

Page 25: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Variational Formulation

Find (u, p) ∈ H1E × L2 such that for all (v, q) ∈ H1

E0× L2 we have

1

∫Ω

(∇uT +∇u

):(∇v +∇vT

)−∫

Ωp∇·v+

∫Ω

q∇·u = ρ

∫Ωg·v.

Still a continuous problem: (u, p) satisfy many conditions.

Make a discrete problem using finite-dimensional spaces.

Page 26: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Pressure Approximation space

Continuous functions that are linear on each triangle:

a 16-dimensional space with a convenient basis.

Page 27: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Velocity Approximation space

Continuous functions that are quadratic on each triangle:

a 49-dimensional space (per component) with a convenient basis.

Page 28: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite
Page 29: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Implementation I

...based on [Jar08] but with an important difference

1 from d o l f i n impor t ∗2 #Set domain pa ramete r s and p h y s i c a l c o n s t a n t s3 Le , He = 4e3 , 5 e2 #length , h e i g h t (m)4 a lpha = 1∗ p i /180 #s l o p e ang l e ( r a d i a n s )5 rho , g = 917 , 9 .81 #d e n s i t y ( kg m−3) , g r a v i t y (m sec −2)6 mu = 1e14 #v i s c o s i t y (Pa sec )7 G = Constant ( ( s i n ( a lpha ) ∗g∗ rho ,− cos ( a lpha ) ∗g∗ rho ) )8 #Def i n e a mesh and some f u n c t i o n space s9 mesh = Rec tang l e (0 , 0 , Le , He , 3 , 3 )

10 V = Vecto rFunc t i onSpace (mesh , ”CG” , 2) #pw quad r a t i c11 Q = Funct ionSpace (mesh , ”CG” , 1) #pw l i n e a r12 W = V ∗ Q #product space13 ””” De f i n e the D i r i c h l e t c o n d i t i o n at the base ”””14 de f LowerBoundary ( x , on boundary ) :15 r e t u r n x [ 1 ] < DOLFIN EPS and on boundary16 S l i pRa t e = Exp r e s s i o n ( ( ” (3+1.7∗ s i n (2∗ p i/%s ∗x [ 0 ] ) ) \17 /31557686.4 ”%Le , ” 0 .0 ” ) )18 bcD = D i r i c h l e tBC (W. sub (0 ) , S l i pRa t e , LowerBoundary )

Page 30: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Implementation II19 #Def i n e the p e r i o d i c c o n d i t i o n on the l a t e r a l s i d e s20 c l a s s Pe r i od i cBounda r y x ( SubDomain ) :21 de f i n s i d e ( s e l f , x , on boundary ) :22 r e t u r n x [ 0 ] == 0 and on boundary23 de f map( s e l f , x , y ) :24 y [ 0 ] = x [ 0 ] − Le25 y [ 1 ] = x [ 1 ]26 pbc x = Pe r i od i cBounda r y x ( )27 bcP = Per iod i cBC (W. sub (0 ) , pbc x )28 ””” De f i n e the v a r i a t i o n a l problem : a (u , v ) = L( v ) ”””29 ( v i , q i ) = Tes tFunc t i on s (W)30 ( u i , p i ) = T r i a l F u n c t i o n s (W)31 a = (0 . 5∗mu∗ i n n e r ( grad ( v i )+grad ( v i ) .T, grad ( u i ) \32 +grad ( u i ) .T) − d i v ( v i ) ∗ p i + q i ∗ d i v ( u i ) ) ∗dx33 L = i n n e r ( v i , G) ∗dx34 ”””Matr i x as semb ly and s o l u t i o n ”””35 U = Funct i on (W)36 s o l v e ( a==L ,U , [ bcD , bcP ] )37 ””” S p l i t the mixed s o l u t i o n to r e c o v e r u and p”””38 (u , p ) = U. s p l i t ( )

Page 31: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

Convergence to Exact Solutions

Errors in FEM velocity and pressure plotted against maximumelement diameter, together with convergence rates m.

Page 32: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

References I

[Ach90] D. J. Acheson. Elementary Fluid Dynamics. OxfordUniversity Press, New York, 1990.

[AG99] Cleve Ashcraft and Roger Grimes. SPOOLES: anobject-oriented sparse matrix library. In Proceedings ofthe Ninth SIAM Conference on Parallel Processing forScientific Computing 1999 (San Antonio, TX), page 10,Philadelphia, PA, 1999. SIAM.

[Bat00] G. K. Batchelor. An Introduction to Fluid Dynamics.Cambridge University Press, Cambridge, UK, 2000.

[BR85] M. J. Balise and C. F. Raymond. Transfer of basalsliding variations to the surface of a linearly viscousglacier. Journal of Glaciology, 31(109), 1985.

[CP10] K. M. Cuffey and W. S. B. Paterson. The Physics ofGlaciers. Academic Press, Amsterdam, Boston, 4thedition, 2010.

Page 33: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

References II

[DH03] J. Donea and A. Huerta. Finite Element Methods forFlow Problems. Wiley, New York, 1st edition, 2003.

[DM05] L. Debnath and P. Mikusinski. Introduction to HilbertSpaces with Applications, Third Edition. AcademicPress, 3rd edition, 2005.

[Ern04] A. Ern. Theory and Practice of Finite Elements.Springer, Berlin, Heidelberg, 2004.

[ESW05] H. C. Elman, D. J. Silvester, and A. J. Wathen. FiniteElements And Fast Iterative Solvers - With Applicationsin Incompressible Fluid Dynamics. Oxford UniversityPress, New York, 2005.

[GB09] R. Greve and H. Blatter. Dynamics of Ice Sheets andGlaciers (Advances in Geophysical and EnvironmentalMechanics and Mathematics). Springer, 1st edition.edition, 8 2009.

Page 34: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

References III

[Goo82] A. M. Goodbody. Cartesian tensors - with applicationsto mechanics, fluid mechanics and elasticity. E.Horwood, Chichester, 1982.

[Jar08] A. H. Jarosch. Icetools: A full stokes finite elementmodel for glaciers. Computers & Geosciences,34:1005–1014, 2008.

[Joh92] Tomas Johannesson. Landscape of Temperate Ice Caps.PhD thesis, University of Washington, 1992.

[LJG+12] W. Leng, L. Ju, M. Gunzberger, S. Price, and T. Ringler.A parallel high-order accurate finite element nonlinearstokes ice sheet model and benchmark experiments.Journal of Geophysical Research, 117, 2012.

Page 35: Geophysical Ice Flows: Analytical and Numerical Approachespism.github.io/uaf-iceflow/WMitchell-slides-july2012.pdfI I. Introduction to viscous uids I II. Exact solutions I III. Finite

References IV

[LMW12] A. Logg, K. Mardal, and G. Wells, editors. AutomatedSolution of Differential Equations by the Finite ElementMethod: The FEniCS Book (Lecture Notes inComputational Science and Engineering). Springer,Berlin, Heidelberg, 2 2012.

[Pir89] O. Pironneau. Finite element methods for fluids. Wiley,New York, 1989.

[QV94] A. Quarteroni and A. Valli. Numerical Approximation ofPartial Differential Equations. Springer, Berlin,Heidelberg, 1st edition, 1994.

[TS63] A. N. Tikhonov and A. A. Samarskii. Equations ofMathematical Physics. Pergamon Press, Oxford, 1963.Translated by A.R.M. Robson and P. Basu and edited byD. M. Brink.

[Wor09] G. Worster. Understanding Fluid Flow. CambridgeUniversity Press, Cambridge, 1st edition, 2009.