kth.sePublications
Change search
Link to record
Permanent link

Direct link
Lindvall, KristofferORCID iD iconorcid.org/0000-0003-0160-4060
Alternative names
Publications (10 of 12) Show all publications
Lindvall, K. & Scheffel, J. (2022). 2D continuous Chebyshev-Galerkin time-spectral method. Computer Physics Communications, 271, 108217-108217, Article ID 108217.
Open this publication in new window or tab >>2D continuous Chebyshev-Galerkin time-spectral method
2022 (English)In: Computer Physics Communications, ISSN 0010-4655, E-ISSN 1879-2944, Vol. 271, p. 108217-108217, article id 108217Article in journal (Refereed) Published
Abstract [en]

A fully spectral multi-domain method has been developed and applied to three applications within ideal MHD, compressible Navier-Stokes, and a two-fluid plasma turbulence model named the Weiland model. The time-spectral method employed is the Generalized Weighted Residual Method (GWRM), where all domains such as space, time, and parameter space are spectrally decomposed with Chebyshev polynomials. The spectral decomposition of the temporal domain allows the GWRM to reach spectral accuracy in all dimensions. The GWRM linear/nonlinear algebraic equations are solved using an Anderson Acceleration (AA) method and a newly developed Quasi Semi-Implicit root solver (Q-SIR). Up to 85% improved convergence rate was obtained for Q-SIR as compared to AA and in certain cases only Q-SIR converged. In the most challenging simulations, featuring steep gradients, the GWRM converged for time intervals roughly two times larger than typical time steps for explicit time-marching schemes, being limited by the CFL condition. Time intervals up to 70 times larger than those of explicit time-marching schemes were used in smooth regions. Furthermore, the most computationally expensive algorithm, namely the product of two Chebyshev series, has been GPU accelerated with speedup gains of several thousands compared to a CPU.

Place, publisher, year, edition, pages
Elsevier BV, 2022
Keywords
Chebyshev, Time-spectral, GWRM, ODE, PDE, GPU
National Category
Computational Mathematics
Research subject
Mathematics
Identifiers
urn:nbn:se:kth:diva-304741 (URN)10.1016/j.cpc.2021.108217 (DOI)000720461800001 ()2-s2.0-85118825651 (Scopus ID)
Note

QC 20211123

Available from: 2021-11-10 Created: 2021-11-10 Last updated: 2024-11-26Bibliographically approved
Scheffel, J. & Lindvall, K. (2022). Temporal smoothing - A step forward for time-spectral methods. Computer Physics Communications, 270, Article ID 108173.
Open this publication in new window or tab >>Temporal smoothing - A step forward for time-spectral methods
2022 (English)In: Computer Physics Communications, ISSN 0010-4655, E-ISSN 1879-2944, Vol. 270, article id 108173Article in journal (Refereed) Published
Abstract [en]

Time-spectral methods may feature substantial advantages over time-stepping solvers for solution of initial-value ODEs and PDEs, but their efficiency depends on the smoothness of the solution. We present two methods to overcome this problem. The first involves transforming the differential equation to an equation for a new variable, related to the time-integrated solution, before applying the solution algorithm. In the second method, a procedure for transformation to exact differential equations of a running average is outlined. Examples of solution of stiff problems and problems with multiple time scales are presented, employing the time-spectral Generalized Weighted Residual Method (GWRM). It is found that the smoothing algorithms have a significant positive effect on convergence.

Place, publisher, year, edition, pages
Elsevier BV, 2022
Keywords
Time-spectral, Time-averaged, GWRM, ODE, PDE, Smoothing
National Category
Natural Sciences
Research subject
Electrical Engineering
Identifiers
urn:nbn:se:kth:diva-304313 (URN)10.1016/j.cpc.2021.108173 (DOI)000708648400009 ()2-s2.0-85116040494 (Scopus ID)
Note

QC 20211116

Available from: 2021-11-01 Created: 2021-11-01 Last updated: 2024-11-26Bibliographically approved
Lindvall, K. (2021). Time Spectral Methods - Towards Plasma Turbulence Modelling. (Doctoral dissertation). KTH Royal Institute of Technology
Open this publication in new window or tab >>Time Spectral Methods - Towards Plasma Turbulence Modelling
2021 (English)Doctoral thesis, comprehensive summary (Other academic)
Abstract [en]

Energy comes in two forms; potential energy and kinetic energy. Energyis stored as potential energy and released in the form of kinetic energy. This process of storage and release is the basic strategy of all energy alternatives in use today. This applies to solar, wind, fossil fuels, and the list goes on. Most of these come in diluted and scarce forms allowing only a portion of the energy to be used, which has prompted the quest for the original source, the Sun.

As early as 1905 in the work by Albert Einstein on the connection between mass and energy, it has been seen theoretically that energy can be extracted from the process of fusing lighter elements into heavier elements. Later, this process of fusion was discovered to be the very source powering the Sun. Almost a century later, the work continues to make thermonuclear fusion energy a reality.

Looking closer at the Sun, we see that it consists of a hot burning gas subject to electromagnetic fields, i.e. a plasma. The plasma in the Sun is contained by the massive gravitational force which allows for fusion to be created in a stable and continuous process. Taking inspiration from the Sun we see that a hot plasma and its containment are key to achieving fusion. The gravitational force is not present on Earth, and creating it artificially is, a sof today, an insurmountable task. Fortunately, the plasma can be contained in another way; with magnetic fields.

The challenges of making fusion a viable energy source are numerous and diverse. To deal with these challenges there are several fields of fusion research; engineering, physics, and numerical analysis. These of course overlap, but serve to illustrate the focus of different groups. This thesis work is focused on the latter two, physics and numerical analysis.

The containment of the plasma in a fusion device is degraded by drift wave turbulence. The turbulence in the plasma occurs on the micro-scale, namely on the scale of particles travelling around the magnetic field lines. The physics behind turbulence and the drift waves responsible is a rich field with many future topics.

Since the micro-turbulence can quickly grow and diffuse plasma throughout the device in a matter of micro-seconds, it becomes a difficult challenge to numerically resolve the turbulence over a longer span of time. The typical confinement times required in a fusion device is on the order of several seconds. Thus, the main focus of this thesis is on developing a numerical method that can effectively resolve the plasma physics over longer time-intervals. To this effect, a Time-Spectral method has been developed that utilizes the advantageous properties of spectral methods to all domains, specifically the temporal domain. The numerical method has been implemented on compressible Navier-Stokes, ideal magnetohydrodynamics (MHD), and a toroidal two-fluid plasma turbulence model called the Weiland model.

Place, publisher, year, edition, pages
KTH Royal Institute of Technology, 2021. p. 107
Series
TRITA-EECS-AVL ; 2021:7
Keywords
Fusion, Turbulence, Micro-instabilities, Time-spectral, Navier-Stokes, MHD, Weiland model
National Category
Computational Mathematics Astronomy, Astrophysics and Cosmology
Research subject
Electrical Engineering
Identifiers
urn:nbn:se:kth:diva-289443 (URN)
Public defence
2021-02-18, https://kth-se.zoom.us/webinar/register/WN_Bgjx0PKrRv6FdKwolR2Spg, Stockholm, 15:00 (English)
Opponent
Supervisors
Note

QC 20210129

Available from: 2021-01-29 Created: 2021-01-29 Last updated: 2024-11-26Bibliographically approved
Scheffel, J., Lindvall, K. & Yik, H. F. (2018). A time-spectral approach to numerical weather prediction. Computer Physics Communications, 226, 127-135
Open this publication in new window or tab >>A time-spectral approach to numerical weather prediction
2018 (English)In: Computer Physics Communications, ISSN 0010-4655, E-ISSN 1879-2944, Vol. 226, p. 127-135Article in journal (Refereed) Published
Abstract [en]

Finite difference methods are traditionally used for modelling the time domain in numerical weather prediction (NWP). Time-spectral solution is an attractive alternative for reasons of accuracy and efficiency and because time step limitations associated with causal CFL-like criteria, typical for explicit finite difference methods, are avoided. In this work, the Lorenz 1984 chaotic equations are solved using the time-spectral algorithm GWRM (Generalized Weighted Residual Method). Comparisons of accuracy and efficiency are carried out for both explicit and implicit time-stepping algorithms. It is found that the efficiency of the GWRM compares well with these methods, in particular at high accuracy. For perturbative scenarios, the GWRM was found to be as much as four times faster than the finite difference methods. A primary reason is that the GWRM time intervals typically are two orders of magnitude larger than those of the finite difference methods. The GWRM has the additional advantage to produce analytical solutions in the form of Chebyshev series expansions. The results are encouraging for pursuing further studies, including spatial dependence, of the relevance of time-spectral methods for NWP modelling. Program summary: Program Title: Time-adaptive GWRM Lorenz 1984 Program Files doi: http://dx.doi.org/10.17632/4nxfyjj7nv.1 Licensing provisions: MIT Programming language: Maple Nature of problem: Ordinary differential equations with varying degrees of complexity are routinely solved with numerical methods. The set of ODEs pertaining to chaotic systems, for instance those related to numerical weather prediction (NWP) models, are highly sensitive to initial conditions and unwanted errors. To accurately solve ODEs such as the Lorenz equations (E. N. Lorenz, Tellus A 36 (1984) 98–110), small time steps are required by traditional time-stepping methods, which can be a limiting factor regarding the efficiency, accuracy, and stability of the computations. Solution method: The Generalized Weighted Residual Method, being a time-spectral algorithm, seeks to increase the time intervals in the computation without degrading the efficiency, accuracy, and stability. It does this by postulating a solution ansatz as a sum of weighted Chebyshev polynomials, in combination with the Galerkin method, to create a set of linear/non-linear algebraic equations. These algebraic equations are then solved iteratively using a Semi Implicit Root solver (SIR), which has been chosen due to its enhanced global convergence properties. Furthermore, to achieve a desired accuracy across the entire domain, a time-adaptive algorithm has been developed. By evaluating the magnitudes of the Chebyshev coefficients in the time dimension of the solution ansatz, the time interval can either be decreased or increased.

Place, publisher, year, edition, pages
Elsevier, 2018
Keywords
Chebyshev polynomials, NWP, Spectral, Time-spectral, Weighted residual methods
National Category
Physical Sciences
Identifiers
urn:nbn:se:kth:diva-227591 (URN)10.1016/j.cpc.2018.01.010 (DOI)000428483000011 ()2-s2.0-85042148545 (Scopus ID)
Note

QC 20180509

Available from: 2018-05-09 Created: 2018-05-09 Last updated: 2024-03-18Bibliographically approved
Lindvall, K. & Scheffel, J. (2018). A time-spectral method for initial-value problems using a novel spatial subdomain scheme. Cogent Mathematics & Statistics, 5(1), Article ID 1529280.
Open this publication in new window or tab >>A time-spectral method for initial-value problems using a novel spatial subdomain scheme
2018 (English)In: Cogent Mathematics & Statistics, ISSN 2331-1835, Vol. 5, no 1, article id 1529280Article in journal (Refereed) Published
Abstract [en]

We analyse a novel subdomain scheme for time-spectral solution of initial-value partial differential equations. In numerical modelling spectral methods are commonplace for spatially dependent systems, whereas finite difference schemes are typically applied for the temporal domain. The Generalized Weighted Residual Method (GWRM) is a fully spectral method that spectrally decomposes all specified domains, including the temporal domain, using multivariate Chebyshev polynomials. The Common Boundary-Condition method (CBC) here proposed is a spatial subdomain scheme for the GWRM. It solves the physical equations independently from the global connection of subdomains in order to reduce the total number of modes. Thus, it is a condensation procedure in the spatial domain that allows for a simultaneous global temporal solution. It is here evaluated against the finite difference methods of Crank-Nicolson and Lax-Wendroff for two example linear PDEs. The CBC-GWRM is also applied to the linearised ideal magnetohydrodynamic (MHD) equations for a screw pinch equilibrium. The growth rate of the most unstable mode was efficiently computed with an error <0.1%.

Place, publisher, year, edition, pages
Informa UK Limited, 2018
Keywords
time, spectral, weighted residual methods, MHD, Chebyshev, subdomain, PDE, initial, boundary
National Category
Fusion, Plasma and Space Physics
Identifiers
urn:nbn:se:kth:diva-240022 (URN)10.1080/25742558.2018.1529280 (DOI)000451205400001 ()
Note

QC 20181210

Available from: 2018-12-10 Created: 2018-12-10 Last updated: 2024-11-26Bibliographically approved
Scheffel, J. & Lindvall, K. (2018). Optimizing Time-Spectral Solution of Initial-Value Problems. American Journal of Computational Mathematics, 8(1), 7-26, Article ID 82900.
Open this publication in new window or tab >>Optimizing Time-Spectral Solution of Initial-Value Problems
2018 (English)In: American Journal of Computational Mathematics, ISSN 2161-1203, E-ISSN 2161-1211, Vol. 8, no 1, p. 7-26, article id 82900Article in journal (Refereed) Published
Abstract [en]

Time-spectral solution of ordinary and partial differential equations is often regarded as an inefficient approach. The associated extension of the time domain, as compared to finite difference methods, is believed to result in uncomfortably many numerical operations and high memory requirements. It is shown in this work that performance is substantially enhanced by the introduction of algorithms for temporal and spatial subdomains in combination with sparse matrix methods. The accuracy and efficiency of the recently developed time spectral, generalized weighted residual method (GWRM) are compared to that of the explicit Lax-Wendroff and implicit Crank-Nicolson methods. Three initial-value PDEs are employed as model problems; the 1D Burger equation, a forced 1D wave equation and a coupled system of 14 linearized ideal magnetohydrodynamic (MHD) equations. It is found that the GWRM is more efficient than the time-stepping methods at high accuracies. The advantageous scalings Nt**1.0*Ns**1.43 and Nt**0.0*Ns**1.08 were obtained for CPU time and memory requirements, respectively, with Nt and Ns denoting the number of temporal and spatial subdomains. For time-averaged solution of the two-time-scales forced wave equation, GWRM performance exceeds that of the finite difference methods by an order of magnitude both in terms of CPU time and memory requirement. Favorable subdomain scaling is demonstrated for the MHD equations, indicating a potential for efficient solution of advanced initial-value problems in, for example, fluid mechanics and MHD. 

Keywords
Time-Spectral, Spectral Method, GWRM, Chebyshev Polynomial, Initial-Value, Fluid Mechanics, MHD
National Category
Engineering and Technology
Research subject
Physics
Identifiers
urn:nbn:se:kth:diva-240679 (URN)10.4236/ajcm.2018.81002 (DOI)
Note

QC 20190212

Available from: 2019-01-02 Created: 2019-01-02 Last updated: 2024-03-18Bibliographically approved
Scheffel, J. & Lindvall, K. (2018). SIR—An efficient solver for systems of equations. Software Quality Professional, 7, 59-62
Open this publication in new window or tab >>SIR—An efficient solver for systems of equations
2018 (English)In: Software Quality Professional, ISSN 1522-0540, Vol. 7, p. 59-62Article in journal (Refereed) Published
Abstract [en]

The Semi-Implicit Root solver (SIR) is an iterative method for globally convergent solution of systems of nonlinear equations. We here present MATLAB and MAPLE codes for SIR, that can be easily implemented in any application where linear or nonlinear systems of equations need be solved efficiently. The codes employ recently developed efficient sparse matrix algorithms and improved numerical differentiation. SIR convergence is quasi-monotonous and approaches second order in the proximity of the real roots. Global convergence is usually superior to that of Newton's method, being a special case of the method. Furthermore the algorithm cannot land on local minima, as may be the case for Newton's method with line search. 

Place, publisher, year, edition, pages
Elsevier B.V., 2018
Keywords
Equation solver, MATLAB, Newton method, Root solver
National Category
Physical Sciences
Identifiers
urn:nbn:se:kth:diva-227495 (URN)10.1016/j.softx.2018.01.003 (DOI)000457139300012 ()2-s2.0-85042934996 (Scopus ID)
Note

Export Date: 9 May 2018; Article; Correspondence Address: Lindvall, K.; Department of Fusion Plasma Physics, School of Electrical Engineering and Computer Science, KTH Royal Institute of TechnologySweden; email: kfli@kth.se. QC 20180516

Available from: 2018-05-16 Created: 2018-05-16 Last updated: 2024-03-18Bibliographically approved
Lindvall, K. & Scheffel, J. (2018). Spectral Representation of Time and Physical Parameters in Numerical Weather Prediction. In: Understanding of Atmospheric Systems with Efficient Numerical Methods for Observation and Prediction: . IntechOpen
Open this publication in new window or tab >>Spectral Representation of Time and Physical Parameters in Numerical Weather Prediction
2018 (English)In: Understanding of Atmospheric Systems with Efficient Numerical Methods for Observation and Prediction, IntechOpen , 2018Chapter in book (Refereed)
Abstract [en]

Numerical weather prediction (NWP) is a difficult task in chaotic dynamical regimes because of the strong sensitivity to initial conditions and physical parameters. As a result, high numerical accuracy is usually necessary. In this chapter, an accurate and efficient alternative to the traditional time stepping solution methods is presented; the time-spectral method. The generalized weighted residual method (GWRM) solves systems of nonlinear ODEs and PDEs using a spectral representation of time. Not being subject to CFL-like criteria, the GWRM typically employs time intervals two orders of magnitude larger than those of time-stepping methods. As an example, efficient solution of the chaotic Lorenz 1984 equations is demonstrated. The results indicate that the method has strong potential for NWP. Furthermore, employing spectral representations of physical parameters and initial values, families of solutions are obtained in a single computation. Thus, the GWRM is conveniently used for studies of system parameter dependency and initial condition error growth in NWP.

Place, publisher, year, edition, pages
IntechOpen, 2018
Keywords
NWP time-spectral chaotic error analysis initial condition
National Category
Natural Sciences
Research subject
Physics
Identifiers
urn:nbn:se:kth:diva-240836 (URN)10.5772/intechopen.80351 (DOI)
Note

QC 20190121

Available from: 2019-01-04 Created: 2019-01-04 Last updated: 2024-03-18Bibliographically approved
Lindvall, K. & Scheffel, J. (2017). Can the Time-Spectral Method GWRM Advance Fusion Transport Modelling?. In: 59th Annual Meeting of the APS Division of Plasma Physics: . Paper presented at 59th Annual Meeting of the APS Division of Plasma Physics, Milwaukee, Wisconsin, USA, 23 October – 27 October 2017.
Open this publication in new window or tab >>Can the Time-Spectral Method GWRM Advance Fusion Transport Modelling?
2017 (English)In: 59th Annual Meeting of the APS Division of Plasma Physics, 2017Conference paper, Oral presentation with published abstract (Refereed)
Abstract [en]

Transport phenomena in fusion plasma pose a daunting task for both real-time experiments and numerical modelling. The transport is driven by micro-instabilities caused by a host of unstable modes, for example ion temperature gradient and trapped electron modes. These modes can be modelled using fluid or gyrokinetic equations. However, the equations are characterised by high degrees of freedom and high temporal and spatial numerical requirements. Thus, a time-spectral method GWRM has been developed in order to efficiently solve these multiple time scale equations. The GWRM assumes a multivariate Chebyshev expansion ansatz in time, space, and parameter domain. Advantages are that time constraining CFL criteria no longer apply and that the solution accurately averages over small time-scale dynamics. For benchmarking, a two-fluid 2D drift wave turbulence model has been solved in order to study toroidal ion temperature gradient growth rates and nonlinear behaviour.

National Category
Natural Sciences
Research subject
Physics
Identifiers
urn:nbn:se:kth:diva-240838 (URN)
Conference
59th Annual Meeting of the APS Division of Plasma Physics, Milwaukee, Wisconsin, USA, 23 October – 27 October 2017
Note

QC 20190121

Available from: 2019-01-04 Created: 2019-01-04 Last updated: 2024-03-18Bibliographically approved
Scheffel, J. & Lindvall, K. (2016). Generalized Weighted Residual Method; Advancements and Current Studies. In: 58th Annual Meeting of the APS Division of Plasma Physics, San Jose, California, USA, 31 October – 4 November 2016: . Paper presented at 58th Annual Meeting of the APS Division of Plasma Physics, San Jose, California, USA, 31 October – 4 November 2016.
Open this publication in new window or tab >>Generalized Weighted Residual Method; Advancements and Current Studies
2016 (English)In: 58th Annual Meeting of the APS Division of Plasma Physics, San Jose, California, USA, 31 October – 4 November 2016, 2016Conference paper, Poster (with or without abstract) (Refereed)
Abstract [en]

The Generalized Weighted Residual Method (GWRM) is a time-spectral method for solving initial value partial differential equations. The GWRM treats the temporal, spatial, and parameter domains by projecting the residual to a Chebyshev polynomial space, with the variational principle being that the residual is zero. This treatment provides a global semi-analytical solution. However, straightforward global solution is not economical. One remedy is the inclusion of spatial and temporal sub-domains with coupled internal boundary conditions, which decreases memory requirements and introduces sparse matrices. Only the equations pertaining to the boundary conditions need be solved globally, making the method parallelizable in time. Efficient solution of the linearized ideal MHD stability equations of screw-pinch equilibria are proved possible. The GWRM has also been used to solve strongly nonlinear ODEs such as the Lorenz equations (1984), and is capable of competing with finite time difference schemes in terms of both accuracy and efficiency. GWRM solutions of linear and nonlinear model problems of interest for stability and turbulence modelling will be presented, including detailed comparisons with time stepping methods.

National Category
Natural Sciences
Research subject
Physics
Identifiers
urn:nbn:se:kth:diva-240840 (URN)
Conference
58th Annual Meeting of the APS Division of Plasma Physics, San Jose, California, USA, 31 October – 4 November 2016
Note

QC 20190212

Available from: 2019-01-04 Created: 2019-01-04 Last updated: 2024-03-18Bibliographically approved
Organisations
Identifiers
ORCID iD: ORCID iD iconorcid.org/0000-0003-0160-4060

Search in DiVA

Show all publications