1 The Spectral Method. 2 Definition where (e m,e n )=δ m,n e n = basis of a Hilbert space (.,.): scalar product in this space In L 2 space where f * :

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Finite Difference Discretization of Elliptic Equations: 1D Problem Lectures 2 and 3.
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
An Introduction to Numerical Methods
Series-Expansion Methods
Finite differences Finite differences.
Chapter 8 Elliptic Equation.
Numerical Method for Computing Ground States of Spin-1 Bose-Einstein Condensates Fong Yin Lim Department of Mathematics and Center for Computational Science.
Session: Computational Wave Propagation: Basic Theory Igel H., Fichtner A., Käser M., Virieux J., Seriani G., Capdeville Y., Moczo P.  The finite-difference.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
Atms 4320 Lab 2 Anthony R. Lupo. Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Recall that.
Computational Fluid Dynamics I PIW Numerical Methods for Parabolic Equations Instructor: Hong G. Im University of Michigan Fall 2005.
Orthogonal Transforms
Chapter 15 Fourier Series and Fourier Transform
Introduction to G-RSM (Spectral method for dummies) Masao Kanamitsu Scripps Institution of Oceanography University of California, San Diego.
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Systems of Linear Equations Iterative Methods
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
Taylor-Galerkin Schemes
Most physically significant large-scale atmospheric circulations have time scales on the order of Rossby waves but much larger than the time scales.
Lecture 22 MA471 Fall Advection Equation Recall the 2D advection equation: We will use a Runge-Kutta time integrator and spectral representation.
Grating reconstruction forward modeling part Mark van Kraaij CASA PhD-day Tuesday 13 November 2007.
Computing Spherical Harmonic Transforms on CUDA-Compatible GPUs Wangqun Lin, Fengshun Lu College of Computer National University of Defense Technology.
1 LES of Turbulent Flows: Lecture 14 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Fall 2014.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
A cell-integrated semi-Lagrangian dynamical scheme based on a step-function representation Eigil Kaas, Bennert Machenhauer and Peter Hjort Lauritzen Danish.
Discontinuous Galerkin Methods Li, Yang FerienAkademie 2008.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 8.
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
Vector Norms and the related Matrix Norms. Properties of a Vector Norm: Euclidean Vector Norm: Riemannian metric:
3.3.3: Semi-Lagrangian schemes AOSC614 class Hong Li.
7. Introduction to the numerical integration of PDE. As an example, we consider the following PDE with one variable; Finite difference method is one of.
1 Complex Images k’k’ k”k” k0k0 -k0-k0 branch cut   k 0 pole C1C1 C0C0 from the Sommerfeld identity, the complex exponentials must be a function.
1 Finite Elements. 2 Finite elements Formally identical to spectral technique Dependent variables expanded as linear combinations of basis local, non.
1 MODELING MATTER AT NANOSCALES 4. Introduction to quantum treatments The variational method.
The status and development of the ECMWF forecast model M. Hortal, M. Miller, C. Temperton, A. Untch, N. Wedi ECMWF.
Engineering Analysis – Computational Fluid Dynamics –
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
Recent Developments in the NRL Spectral Element Atmospheric Model (NSEAM)* Francis X. Giraldo *Funded.
Offenbach Semi-Implicit Time Integration (NH Schemes of the Next Generation) J. Steppeler, DWD.
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
L 7: Linear Systems and Metabolic Networks. Linear Equations Form System.
Numerical methods 1 An Introduction to Numerical Methods For Weather Prediction by Mariano Hortal office 122.
CHAP 3 WEIGHTED RESIDUAL AND ENERGY METHOD FOR 1D PROBLEMS
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Discretization for PDEs Chunfang Chen,Danny Thorne Adam Zornes, Deng Li CS 521 Feb., 9,2006.
Lecture 17 - Approximation Methods CVEN 302 July 17, 2002.
1 Solving the algebraic equations A x = B =. 2 Direct solution x = A -1 B = = Applicable only to small problems For the vertical in the spectral technique.
The story so far… ATM 562 Fovell Fall, Convergence We will deploy finite difference (FD) approximations to our model partial differential equations.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 32.
1 LECTURE 6 Stability of Parabolic PDEs. 2 Aim of Lecture Last week we discussed Parabolic PDEs –Looked at Explicit and Implicit Methods –Advantages and.
Computational Physics (Lecture 14) PHY4061. What happens if the string is not light, and/or carries a mass density ρ(x) that is not a constant? This is.
Regional Weather and Climate Modeling:
EEE 431 Computational Methods in Electrodynamics
Lecture 4: Numerical Stability
Introduction to Numerical Methods I
Simple FD Gerard T. Schuster.
CSE 245: Computer Aided Circuit Simulation and Verification
Finite Volume Method for Unsteady Flows
Chapter 27.
topic4: Implicit method, Stability, ADI method
Chapter 8 The Discrete Fourier Transform
Chebyshev Spectral Method with Domain Decomposition
topic4: Implicit method, Stability, ADI method
6th Lecture : Numerical Methods
EE 616 Computer Aided Analysis of Electronic Networks Lecture 12
Presentation transcript:

1 The Spectral Method

2 Definition where (e m,e n )=δ m,n e n = basis of a Hilbert space (.,.): scalar product in this space In L 2 space where f * : complex conjugate of f Discretization: limit the sum to a finite number of terms (consistent if the e m ’s are appropriately ordered)

3 The Galerkin procedure Linear case If e m ’s are eigenfunctions of H: He m =λ m e m H: linear space operator R: discretization error we assume R to be a function of the omitted e m ’s only therefore R is orthogonal to e m (m ≤ M) (alternatively we minimize ||R|| 2 ) || δ m,n || 0 analytical solution (no need to discretize in t) compute once and store

4 One-dimensional linear advection equation periodic boundary conditions Analytical solution phase speed: γ=cte (rad/s) Basis functions: Fourier functions e imλ (eigenfunctions of ∂ / ∂ λ) ω being a real field ==> ω -m (t)= ω m * (t); we need to solve only for 0≤m ≤M Galerkin procedure this is a system of 2M+1 equations (decoupled) for the (complex) ω n coefficients

5 One-dimensional linear advection equation (2) Exact solution ω n (0) nγ/2π - in physical space the same form as the analytical solution no dispersion due to the space discretization because the derivatives are computed analytically

6 Calculation of the initial conditions computation of ω m (0) given ω(λ,0) - Direct Fourier transform where A m : normalization factor - Inverse Fourier transform B m : normalization factors Discrete Fourier transforms - Direct : - Inverse : Transformations are exact if K  2M+1 Procedure: Fast Fourier Transform (FFT) algorithm Products of two functions have no aliassing if K  3M+1

7 The linear grid Unfitted function Fitted with quadratic grid Fitted with linear grid 3M+1 points in λ ensure no aliassing in computations of quadratic terms (case of Eulerian advection) Quadratic grid 2M+1 points in λ ensure exact transforms of linear terms to grid-point and back Linear grid

8 Stability analysis Leapfrog scheme no need to discretize in time if we do not have other terms in the equation Substituting and dividing by W (n-1) conditionally stable and neutral - Comparison with finite differences U 0 =Rγ M~N/2 Δx=2πR/N if using the quadratic grid M~N/3 ---->

9 Graphical representation

10 Non-linear advection equation = there are more wavenumbers on the r.h.s. than in the original function Galerkin procedure k=0 …. M therefore F m m>M are not used but no aliassing produced because of misrepresentation

11 Non-linear advection equation (cont) Calculation of F k Interaction coefficients I jnk ---> interaction coeff. matrix I is not a sparse matrix Transform method I. FFT f(λ l ); l=1, … L g(λ l ); l=1, … L I. FFT F(λ l ) = - f(λ l ) g(λ l ) D. FFT can be shown to have no aliassing if L  3M+1

12 One-dimensional gravity-wave equations Galerkin procedure no need to discretize in time

13 One-dimensional gravity-wave equations (cont) Explicit time stepping (leapfrog) no need to transform to grid-point space Stability and dispersion (von Neumann method) assume substituting: smaller than with finite differences dispersion due solely to the time discretization

14 One-dimensional gravity-wave equations (cont) Implicit time stepping substituting Decoupled set of equations because the basis functions e imλ are eigenfunctions of the space operator ∂ / ∂ λ with eigenvalues im Stability and dispersion using von Neumann we get stable dispersion larger than in leapfrog scheme

15 Shallow water equations Linearize about a basic state U 0, V 0, Φ 0 and assume f=cte=f 0 (f-plane approx) substitute and neglect products of perturbations

16 Leapfrog (explicit) time scheme Stability according to von Neumann assume and substitute

17 Leapfrog (explicit) time scheme stability (cont) or, calling where

18 Leapfrog (explicit) time scheme stability (cont) calling this system has non-trivial solutions if for α to have a real solution The most restrictive case is when which gives

19 Semi-implicit time scheme stability Following the same steps as in the explicit scheme we arrive at: therefore if

20 Spherical harmonics Orthogonal basis for spherical geometry m: zonal wavenumber n: total wavenumber λ= longitude μ= sin(θ) θ: latitude P n m : Associated Legendre functions of the first kind

21 Spectral representation n-|m|: effective meridional wavenumber spectral transform Since X is a real field, X n -m =(X n m )* Fourier coefficients direct Fourier transform or inverse Legendre transform

22 Some spherical harmonics (n=5)

23 Spherical harmonics (cont) Properties of the spherical harmonics eigenfunctions of the operator ∂ / ∂ λ eigenfunctions of the laplacian operator semi-implicit method leads to a decoupled set of equations latitudinal derivatives easy to compute although the spherical harmonics are not eigenfunctions of the latitudinal derivative operator

24 Spherical harmonics (cont.) Usual truncations N=min(|m|+J, K) pentagonal truncation M=J=K triangular K=J+M rhomboidal K=J>M trapezoidal m n M m n M m n M m n M pentagonal triangular rhomboidaltrapezoidal K=J=M K K K=J J J

25 Gaussian grid Use of the transform method for non-linear terms Integrals with respect to λ ---> 3M+1 points equally spaced in λ Integrals with respect to μ computed exactly by means of Gaussian quadrature using the values at the points where Gaussian latitudes In triangular truncation NG  (3N+1)/2 Gaussian latitudes are approximately equally spaced same spacing as for λ

26 The reduced Gaussian grid Full gridReduced grid Triangular truncation is isotropic Associated Legendre functions are very small when m is large and |μ| near 1

27 The linear Gaussian grid

28 Two resolutions using the same Gaussian grid T213 orographyT L 319 orography

29 Diffusion very simple to apply - Leapfrog Stability physical solution 0≤λ≤1 stable computational solution λ≤-1 unstable - Forward - Backward (implicit) decoupled system of equations 0 ≤ λ ≤ 1 Stable