RFP Workshop Oct 2008 – J Scheffel 1 A generalized weighted residual method for RFP plasma simulation Jan Scheffel Fusion Plasma Physics Alfvén Laboratory,

Slides:



Advertisements
Similar presentations
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Advertisements

Optimal transport methods for mesh generation Chris Budd (Bath), JF Williams (SFU)
School of something FACULTY OF OTHER School of Computing An Adaptive Numerical Method for Multi- Scale Problems Arising in Phase-field Modelling Peter.
Isoparametric Elements Element Stiffness Matrices
Chapter 8 Elliptic Equation.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2013 – 12269: Continuous Solution for Boundary Value Problems.
Point-wise Discretization Errors in Boundary Element Method for Elasticity Problem Bart F. Zalewski Case Western Reserve University Robert L. Mullen Case.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2014 – 35148: Continuous Solution for Boundary Value Problems.
MULTISCALE COMPUTATIONAL METHODS Achi Brandt The Weizmann Institute of Science UCLA
Ordinary Differential Equations
Numerical Integration of Partial Differential Equations (PDEs)
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
PART 7 Ordinary Differential Equations ODEs
1 Internal Seminar, November 14 th Effects of non conformal mesh on LES S. Rolfo The University of Manchester, M60 1QD, UK School of Mechanical,
“Assimilating” Solar Data into MHD Models of the Solar Atmosphere W.P. Abbett SSL UC Berkeley HMI Team Meeting, Jan 2005.
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
1 Lecture 11: Unsteady Conduction Error Analysis.
Lecture 34 - Ordinary Differential Equations - BVP CVEN 302 November 28, 2001.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Ordinary Differential Equations Final Review Shurong Sun University of Jinan Semester 1,
Numerical Methods for Partial Differential Equations
MCE 561 Computational Methods in Solid Mechanics
Types of Governing equations
Ordinary Differential Equations (ODEs)
Differential Equations and Boundary Value Problems
1 Numerical Integration of Partial Differential Equations (PDEs)
Numerical methods for PDEs PDEs are mathematical models for –Physical Phenomena Heat transfer Wave motion.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 6 Various Finite Difference Discretizations for the Advection Equations.
In the name of God. Application of the generalized differential quadrature rule to initial–boundary-value problems.
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
Taylor-Galerkin Schemes
Kalman filtering techniques for parameter estimation Jared Barber Department of Mathematics, University of Pittsburgh Work with Ivan Yotov and Mark Tronzo.
Biointelligence Laboratory, Seoul National University
MA5251: Spectral Methods & Applications
Lecture 3.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Efficient Integration of Large Stiff Systems of ODEs Using Exponential Integrators M. Tokman, M. Tokman, University of California, Merced 2 hrs 1.5 hrs.
Prepared by Mrs. Azduwin Binti Khasri
Integration of 3-body encounter. Figure taken from
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
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.
+ Numerical Integration Techniques A Brief Introduction By Kai Zhao January, 2011.
CFD Refinement By: Brian Cowley. Overview 1.Background on CFD 2.How it works 3.CFD research group on campus for which problem exists o Our current techniques.
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.
Engineering Analysis – Computational Fluid Dynamics –
16.920J/SMA 5212 Numerical Methods for PDEs Lecture 5 Finite Differences: Parabolic Problems B. C. Khoo Thanks to Franklin Tan SMA-HPC ©2002 NUS.
Offenbach Semi-Implicit Time Integration (NH Schemes of the Next Generation) J. Steppeler, DWD.
1 EEE 431 Computational Methods in Electrodynamics Lecture 18 By Dr. Rasime Uyguroglu
MA354 An Introduction to Math Models (more or less corresponding to 1.0 in your book)
Numerical methods 1 An Introduction to Numerical Methods For Weather Prediction by Mariano Hortal office 122.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 27.
Modeling Electromagnetic Fields in Strongly Inhomogeneous Media
AMS 691 Special Topics in Applied Mathematics Lecture 8
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.
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
Circuit Simulation using Matrix Exponential Method Shih-Hung Weng, Quan Chen and Chung-Kuan Cheng CSE Department, UC San Diego, CA Contact:
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 32.
DYNAMIC BEHAVIOR OF PROCESSES :
Convection-Dominated Problems
Convergence in Computational Science
Spectral methods for stiff problems MATH 6646
Finite Volume Method for Unsteady Flows
Chapter 27.
Objective Numerical methods Finite volume.
topic11_shocktube_problem
Chebyshev Spectral Method with Domain Decomposition
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Presentation transcript:

RFP Workshop Oct 2008 – J Scheffel 1 A generalized weighted residual method for RFP plasma simulation Jan Scheffel Fusion Plasma Physics Alfvén Laboratory, KTH Stockholm, Sweden

RFP Workshop Oct 2008 – J Scheffel 2 OUTLINE What is the GWRM? ODE example SIR - a globally convergent root solver Accuracy Efficiency Discussion Conclusion and prospects

RFP Workshop Oct 2008 – J Scheffel 3 Basic idea Time differencing numerical initial value schemes (even implicit) require extremely many time steps for problems of physical interest, where there are several separated time scales. Causality is already embedded in the governing PDE’s – - there is no need to mimic causality by time stepping. Spectral methods (solution expanded in basis functions) are successful in the spatial domain – why not employ them also in the time domain? By expanding in time + physical space + physical parameters, the computational result will be semi-analytical. (Analytic basis functions with numerical coefficients). Ideal for scaling studies, for example.

RFP Workshop Oct 2008 – J Scheffel 4 Fully spectral weighted residual method for semi-analytical solution of initial value partial differential equations. All time, spatial and physical parameter domains are represented by Chebyshev series, enabling closed and approximate analytical solutions. The method generalises earlier spatially spectral, finite time difference methods. The method is acausal and thus avoids time step limitations. The spectral coefficients are determined by iterative solution of a nonlinear system of algebraic eqs, for which a globally convergent semi-implicit root solver (SIR) has been developed. Accuracy is controlled by the number of included Chebyshev modes. Efficiency is controlled also by the use of temporal and spatial subdomains. Intended for efficient solution of nonlinear initial value problems in fluid mechanics and magnetohydrodynamics, including simulation of multi-time-scale RFP confinement and transport. What is the Generalized Weighted Spectral Method (GWRM) ?

RFP Workshop Oct 2008 – J Scheffel 5 Consider a system of parabolic or hyperbolic initial-value PDE’s, symbolically written as D is a nonlinear matrix operator, f is a forcing term. D and f contains both physical variables and physical free parameters (denoted p). Initial u(0,x;p) + (Dirichlet, Neumann or Robin) boundary u(t, x B ;p) conditions. Integrate in time: Solution u(t,x;p) is approximated by finite, first kind Chebyshev polynomial series. Definition: Chebyshev polynomial T n (x) = cos(n arccosx). For simplicity – here single equation, one spatial dimension x, one physical parameter p. The Generalized Weighted Spectral Method (GWRM)

RFP Workshop Oct 2008 – J Scheffel 6 The Generalized Weighted Spectral Method (GWRM) The Weighted Residual of the GWRM is given by with The TP-WRM coefficients are now obtained from the nonlinear system of algebraic equations The initial state is expanded as where

RFP Workshop Oct 2008 – J Scheffel 7 The Generalized Weighted Spectral Method (GWRM) COMMENTS Boundary conditions are transformed into Chebyshev space (using Chebyshev interpolation); they enter at the highest modal numbers of the spatial Chebyshev coefficients. All computations are in Chebyshev space. Efficient procedures for integration, differentiation and nonlinear products in Chebyshev space have been developed. Chebyshev polynomial expansions have several desirable qualities: - converge rapidly to the approximated function -are real and can be converted to ordinary polynomials and vice versa -minimax property - they are the most economical polynomial representation -can be used for non-periodic boundary conditions

RFP Workshop Oct 2008 – J Scheffel 8 Simple GWRM example - the linear diffusion equation Boundary conditions enter here for 1≤ q ≤ K + 1 The coefficients a qrs are determined by iterations, using a root solver. Solution to be determined: with

RFP Workshop Oct 2008 – J Scheffel 9 OUTLINE What is the GWRM? ODE example SIR - a globally convergent root solver Accuracy Efficiency Discussion Conclusion and prospects

RFP Workshop Oct 2008 – J Scheffel 10 ODE example Light a match – a model of flame propagation: y – flame radius  = 0.05; # Chebyshev modes K = 20, # time domains Nt = 1, error = 0.01 green - exact solution

RFP Workshop Oct 2008 – J Scheffel 11 ODE example, cont’d  = 0.01 # Chebyshev modes K = 8 # time domains Nt = 10 error = 0.01  = – Stiff problem! # Chebyshev modes K = 5 # time domains Nt = 100 error = 0.1 Adaptive grid should be used for improved accuracy.

RFP Workshop Oct 2008 – J Scheffel 12 OUTLINE What is the GWRM? ODE example SIR - a globally convergent root solver Accuracy Efficiency Discussion Conclusion and prospects

RFP Workshop Oct 2008 – J Scheffel 13 SIR - a globally convergent root solver The GWRM - well adapted for iterative methods for two reasons: 1) Basic Chebyshev coefficient equations are of the standard iterative form 2) Initial estimate of solution vector can be chosen sufficiently close to the solution by reducing the solution time interval Instead of using direct iteration, the Semi-Implicit Root solver (SIR) finds the roots to the equations or, in matrix form

RFP Workshop Oct 2008 – J Scheffel 14 SIR - a globally convergent root solver are finite and is controlled; it produces limited step lengths, quasi-monotonous convergence; and approaches zero after some initial iterations. Newton’s method is a special case of the present method, when all The system has the same solutions as the original system, but contains free parameters in the form of the components of the matrix A. The parameters can be chosen to control the gradients of the hypersurfaces. Adjusting these parameters, global, quasi-monotonous and superlinear convergence is attained. In SIR, Rapid second order convergence is generally approached after some iteration steps. Relationship to Newton’s method - approximately similar numerical work; inversion of a Jacobian matrix at each iteration step. whereas

RFP Workshop Oct 2008 – J Scheffel 15 Newton’s method 2D example solution

RFP Workshop Oct 2008 – J Scheffel 16 Newton’s method with linesearch 2D example local minimum f ≠ 0

RFP Workshop Oct 2008 – J Scheffel 17 SIR 2D example finds solution

RFP Workshop Oct 2008 – J Scheffel 18 OUTLINE What is the GWRM? ODE example SIR - a globally convergent root solver Accuracy Efficiency Discussion Conclusion and prospects

RFP Workshop Oct 2008 – J Scheffel 19 Accuracy - the Burger equation Burger’s nonlinear equation (parabolic) Solution compared to Lax-Wendroff (explicit time differencing): GWRM parameters - (S,M,N) = (2,7,6), 13 iterations. L-W marginally stable parameters - Parameters: TP-WRM solution, using two spatial subdomains TP-WRM solution error, as compared to exact solution Result: GWRM 50 % faster than L-W for same accuracy

RFP Workshop Oct 2008 – J Scheffel 20 Initial condition  (x) = x(1 - x) and boundary condition u(t,0;v) = u(t,1;v) = 0. Solution shown versus x and v at time t = 2.5. Here K = 8, L = 10, and M = 2. GWRM Burger equation solution, including viscosity dependence u = u(t,x;v)

RFP Workshop Oct 2008 – J Scheffel 21 OUTLINE What is the GWRM? ODE example SIR - a globally convergent root solver Accuracy Efficiency Discussion Conclusion and prospects

RFP Workshop Oct 2008 – J Scheffel 22 Efficiency Parameters: Wave equation, forced (hyperbolic) Exact solution GWRM solution (averages out fast time scale) (slow + rapid time scale)

RFP Workshop Oct 2008 – J Scheffel 23 Forced wave equation solutions u(t,x 0 ) for fixed x = x 0 GWRM (K,L) = (6,8) Crank-Nicholson, implicit ∆x = 1/30, 100 time steps Lax-Wendroff, explicit ∆x = 1/30, 900 time steps Efficiency

RFP Workshop Oct 2008 – J Scheffel 24 OUTLINE What is the GWRM? ODE example SIR - a globally convergent root solver Accuracy Efficiency Discussion Conclusion and prospects

RFP Workshop Oct 2008 – J Scheffel 25 Discussion GWRM work so far: The time- and parameter-generalized weighted residual method, J. Scheffel, (GWRM method outlined) Semi-analytical solution of initial-value problems, D. Lundin, (Resistive MHD stability of RFP and z-pinch) Application of the time- and parameter generalized weighted reidual method to systems of nonlinear equations, D. Jackson, (Navier-Stokes equations, Rayleigh-Taylor instability) Further development and implementation of the GWRM A. Mirza, ongoing Ph D studies (Application of GWRM to nonlinear resistive MHD) SIR: Solution of systems of nonlinear equations, a semi-implicit approach, J. Scheffel, (SIR outlined) Studies of a semi-implicit root solver, C. Håkansson, M Sc Thesis. (Efficient SIR compared to other methods)

RFP Workshop Oct 2008 – J Scheffel 26 Discussion (cont’d) The GWRM is shown to be accurate for spatially smooth solutions - convergence including sharp gradients should be further studied. Efficiency is central; SIR involves Jacobian matrix inversion of Chebyshev coefficient eqs - N eqs takes O[N 3 ] operations. Methods to improve efficiency have been developed - temporal subdomains and spatial subdomain techniques using overlapping domains. Further benchmarking of efficiency for MHD relevant test problems should be carried out as well as corresponding comparisons with implicit methods. SIR efficiency and linking to GWRM is presently being optimized.

RFP Workshop Oct 2008 – J Scheffel 27 OUTLINE What is the GWRM? ODE example SIR - a globally convergent root solver Accuracy Efficiency Discussion Conclusion and prospects

RFP Workshop Oct 2008 – J Scheffel 28 Conclusion and prospects A fully spectral method, the generalized weighted residual method (GWRM), for solution of initial value partial differential equations, has been outlined. By representing all time, spatial and physical parameter domains by Chebyshev series, semi-analytical solutions can be obtained as ordinary polynomials. (“Semi-analytical”: expansion in basis functions with numerical coefficients.) Computed solutions thus contain r- t- and parameter dependence explicitly. The method is global and avoids time step limitations. Spectral coefficients are found by iterative solution of a linear or nonlinear system of algebraic equations, for which an efficient semi-implicit root solver (SIR) has been developed. Accuracy is explicitly controlled by the number of modes and subdomains used. To improve efficiency, a spatial subdomain approach has been developed. Problems in fluid mechanics and MHD will be addressed. Future applications involve studies of nonlinear plasma instabilities at finite plasma pressure in stochastic magnetic field geometries, in particular operational limits in reversed-field pinches.

RFP Workshop Oct 2008 – J Scheffel 29 Thank you for your attention!