Lecture 5&6: Kernel methods for modeling geophysical...
Transcript of Lecture 5&6: Kernel methods for modeling geophysical...
![Page 1: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/1.jpg)
DRWA 2013Lecture 5/6
*This work is supported by NSF CMG grants ATM 0801309 and DMS 0934581
Grady B. Wright
Boise State University
2013 Dolomites Research Week on Approximation
Lecture 5&6: Kernel methods for modeling geophysical fluids: shallow water equations on a sphere and mantle convection in a spherical shell.
![Page 2: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/2.jpg)
DRWA 2013Lecture 5/6Shallow water wave equations
Shallow water wave equations on a rotating sphere
![Page 3: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/3.jpg)
DRWA 2013Lecture 5/6
Shallow water equations (SWE) on a rotating sphere● Model for the nonlinear dynamics of a shallow, hydrostatic, homogeneous, and inviscid fluid layer.
● Idealized test-bed for the horizontal dynamics of all 3-D global climate models.
Equations Momentum Transport
Sphericalcoordinates
Cartesiancoordinates
Singularity at poles!
Smooth over entire sphere!
![Page 4: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/4.jpg)
DRWA 2013Lecture 5/6
Numerical Example I: Global RBF collocation method
Forcing terms added to the shallow water equations to generate a fow that mimics a short wave trough embedded in a westerly jet. (Test case 4 of Williamson et. al. 1992)
Initial velocity field Initial geopotential height field
![Page 5: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/5.jpg)
DRWA 2013Lecture 5/6Errors after trough travels once around the sphere
Error as a function of time and N Error height field, t = 5 days
(Flyer & W, 2009)● Results of the RBF Shallow Water Model:
![Page 6: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/6.jpg)
DRWA 2013Lecture 5/6Comparison with commonly used methods
Time-step for RBF method: Temporal Errors = Spatial ErrorsTime-step for other methods: Limited by numerical stability
● RBF method runtime in MATLAB using 2.66 GHz Xeon Processor
For much higher numerical accuracy, RBFs uses less nodes & larger time steps
![Page 7: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/7.jpg)
DRWA 2013Lecture 5/6Numerical Example II: RBF-FD method
Flow over a conical mountain (Test case 5 of Williamson et. al. 1992)Height field at t=0 days Height field at t=15 days
(Flyer, Lehto, Blaise, Wright, and St-Cyr. 2012)
Remarks:● The mountain is only continuous, not differentiable.
● No analytical solution.
● Comparisons in numerical solutions are done against some reference numerical solutions at a high resolution.
![Page 8: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/8.jpg)
DRWA 2013Lecture 5/6Convergence comparison: 3 reference solutions
Standard Literature/Comparison: NCAR's Sph. Har. T426, Resolution ≈ 30 km at equator New Model at NCAR Discontinuous Galerkin – Spectral Element, Resolution ≈ 30 km RBF-FD model, Resolution ≈ 60 km
Convergence plot RBF-FD with stencil size of m=31
![Page 9: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/9.jpg)
DRWA 2013Lecture 5/6
Error vs. runtime comparison
Machine: MacBook Pro, Intel i7 2.2 GHz, 8 GB Memory
Comparison of error vs. runtime DG Reference
R1
R2
R3
● Further improvements for both methods may be possible using local mesh/node refinement near the mountain.
![Page 10: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/10.jpg)
DRWA 2013Lecture 5/6Numerical Example III: RBF-FD method
● Evolution of a highly non-linear wave: (Test case from Galewsky et. al. Tellus, 2004) Rapid cascade of energy from large to small scales resulting in sharp vorticity gradients● RBF-FD method with N=163,842 nodes and m=31 point stencil.
Visualization of the relative vorticity
Day 3 Day 4
Day 5 Day 6
![Page 11: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/11.jpg)
DRWA 2013Lecture 5/6
Geophysical modeling on the sphere: Part II
Thermal convection in a 3D spherical shell with applications to the Earth's mantle.
![Page 12: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/12.jpg)
DRWA 2013Lecture 5/6
Simulating convection in the Earth's mantle
● Model assumptions:
● Boundary conditions:
● Rayleigh, Ra, number governs the dynamics. ● Model for Rayleigh-Bénard convection
(Wright, Flyer, and Yuen. Geochem. Geophys. Geosyst., 2010)
● Non-dimensional Equations:
![Page 13: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/13.jpg)
DRWA 2013Lecture 5/6
Global method for discretizing the equations● Use a hybrid RBF-Pseudospectral method
➢ N RBF nodes on each spherical surface (angular directions) and➢ M Chebyshev nodes in the radial direction.
● Collocation procedure using a 2+1 approach with
N RBF nodes (ME) on a spherical surface
3-D node layout showing M Chebyshev nodes in radial direction
![Page 14: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/14.jpg)
DRWA 2013Lecture 5/6
Global method for discretizing the equations
![Page 15: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/15.jpg)
DRWA 2013Lecture 5/6
Steps of computational algorithm
![Page 16: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/16.jpg)
DRWA 2013Lecture 5/6
Ra=7000 benchmark: validation of methodPerturbationinitial condition:
● Comparisons against main previous results from the literature:
Steady solution:
N = 1600 nodes on each spherical shellM = 23 shells Blue=downwelling, Yellow= upwelling, Red=core
Nu = ratio of convective to conductive heat transfer across a boundary
![Page 17: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/17.jpg)
DRWA 2013Lecture 5/6
Fully convective simulation: Ra=106
● Convection dominated fow ● N = 6561 RBF nodes, M = 81 Chebyshev nodes● Time-step O(10-7), which is about 34,000 years● Simulation time to t=0.08 (4.5 times the age of the earth)
Model setup:
Results:
Simulation:
Blue=downwelling, Yellow= upwelling, Red=core
![Page 18: Lecture 5&6: Kernel methods for modeling geophysical ...emis.maths.adelaide.edu.au/journals/DRNA/pdf/wright-2013-lecture0… · Lecture 5/6 Numerical Example III: RBF-FD method Evolution](https://reader033.fdocuments.in/reader033/viewer/2022052106/6041312808116f123a0efe44/html5/thumbnails/18.jpg)
DRWA 2013Lecture 5/6
Current focus● Improving computational efficiency using RBF-FD.
● First step is to do RBF-FD on each spherical surface instead of global RBFs.
● Ultimate goal is to go to fully 3D RBF-FD formulas (no tensor-product structure):
Flyer, W, & Fornberg (2013)