Terascale Computations of Multiscale Magnetohydrodynamics for Fusion Plasmas: ORNL LDRD Project D. A. Spong *, E. F. D’Azevedo †, D. B. Batchelor *, D.

Slides:



Advertisements
Similar presentations
Self-consistent mean field forces in two-fluid models of turbulent plasmas C. C. Hegna University of Wisconsin Madison, WI Hall Dynamo Get-together PPPL.
Advertisements

Self-consistent mean field forces in two-fluid models of turbulent plasmas C. C. Hegna University of Wisconsin Madison, WI CMSO Meeting Madison, WI August.
EXTENDED MHD SIMULATIONS: VISION AND STATUS D. D. Schnack and the NIMROD and M3D Teams Center for Extended Magnetohydrodynamic Modeling PSACI/SciDAC.
Korean Modeling Effort : C2 Code J.M. Park NFRC/ORNL In collaboration with Sun Hee Kim, Ki Min Kim, Hyun-Sun Han, Sang Hee Hong Seoul National University.
Particle acceleration in a turbulent electric field produced by 3D reconnection Marco Onofri University of Thessaloniki.
Algorithm Development for the Full Two-Fluid Plasma System
Module on Computational Astrophysics Professor Jim Stone Department of Astrophysical Sciences and PACM.
Prof. Reinisch, EEAS / Simple Collision Parameters (1) There are many different types of collisions taking place in a gas. They can be grouped.
Landscape Erosion Kirsten Meeker
GTC Status: Physics Capabilities & Recent Applications Y. Xiao for GTC team UC Irvine.
Modeling Fluid Phenomena -Vinay Bondhugula (25 th & 27 th April 2006)
Computationally efficient description of relativistic electron beam transport in dense plasma Oleg Polomarov*, Adam Sefkov**, Igor Kaganovich** and Gennady.
Physics of fusion power Lecture 7: particle motion.
Chapter 5 Diffusion and resistivity
Massively Parallel Magnetohydrodynamics on the Cray XT3 Joshua Breslau and Jin Chen Princeton Plasma Physics Laboratory Cray XT3 Technical Workshop Nashville,
The SWIM Fast MHD Campaign Presented by S. C. Jardin Princeton Plasma Physics Laboratory P.O. Box 451 Princeton, NJ Simulation of Wave Interaction.
Presented by XGC: Gyrokinetic Particle Simulation of Edge Plasma CPES Team Physics and Applied Math Computational Science.
6 th Japan-Korea Workshop on Theory and Simulation of Magnetic Fusion Plasmas Hyunsun Han, G. Park, Sumin Yi, and J.Y. Kim 3D MHD SIMULATIONS.
Kinetic Effects on the Linear and Nonlinear Stability Properties of Field- Reversed Configurations E. V. Belova PPPL 2003 APS DPP Meeting, October 2003.
Overview of equations and assumptions Elena Khomenko, Manuel Collados, Antonio Díaz Departamento de Astrofísica, Universidad de La Laguna and Instituto.
Collisions and transport phenomena Collisions in partly and fully ionized plasmas Typical collision parameters Conductivity and transport coefficients.
Overview of MHD and extended MHD simulations of fusion plasmas Guo-Yong Fu Princeton Plasma Physics Laboratory Princeton, New Jersey, USA Workshop on ITER.
Introduction to the Particle In Cell Scheme for Gyrokinetic Plasma Simulation in Tokamak a Korea National Fusion Research Institute b Courant Institute,
Challenging problems in kinetic simulation of turbulence and transport in tokamaks Yang Chen Center for Integrated Plasma Studies University of Colorado.
Numerical Simulation on Flow Generated Resistive Wall Mode Shaoyan Cui (1,2), Xiaogang Wang (1), Yue Liu (1), Bo Yu (2) 1.State Key Laboratory of Materials.
Stability Properties of Field-Reversed Configurations (FRC) E. V. Belova PPPL 2003 International Sherwood Fusion Theory Conference Corpus Christi, TX,
Progress in identification of damping: Energy-based method with incomplete and noisy data Marco Prandina University of Liverpool.
Yoon kichul Department of Mechanical Engineering Seoul National University Multi-scale Heat Conduction.
PEPSC Plan for Self-consistent Simulations of Fast Ion Transport with Source and Sink Guoyong Fu Princeton Plasma Physics Laboratory.
Gas-kinetic schemes for flow computations Kun Xu Mathematics Department Hong Kong University of Science and Technology.
1 Non-neutral Plasma Shock HU Xiwei (胡希伟) 工 HU Xiwei (胡希伟) HE Yong (何勇) HE Yong (何勇) Hu Yemin (胡业民) Hu Yemin (胡业民) Huazhong University of Science and.
SVD Data Compression: Application to 3D MHD Magnetic Field Data Diego del-Castillo-Negrete Steve Hirshman Ed d’Azevedo ORNL ORNL-PPPL LDRD Meeting ORNL.
Computational Aspects of Multi-scale Modeling Ahmed Sameh, Ananth Grama Computing Research Institute Purdue University.
INFSO-RI Enabling Grids for E-sciencE Workflows in Fusion applications José Luis Vázquez-Poletti Universidad.
STUDIES OF NONLINEAR RESISTIVE AND EXTENDED MHD IN ADVANCED TOKAMAKS USING THE NIMROD CODE D. D. Schnack*, T. A. Gianakon**, S. E. Kruger*, and A. Tarditi*
Progress on Component-Based Subsurface Simulation I: Smooth Particle Hydrodynamics Bruce Palmer Pacific Northwest National Laboratory Richland, WA.
EXTENSIONS OF NEOCLASSICAL ROTATION THEORY & COMPARISON WITH EXPERIMENT W.M. Stacey 1 & C. Bae, Georgia Tech Wayne Solomon, Princeton TTF2013, Santa Rosa,
1 A Proposal for a SWIM Slow-MHD 3D Coupled Calculation of the Sawtooth Cycle in the Presence of Energetic Particles Josh Breslau Guo-Yong Fu S. C. Jardin.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Partially-relaxed, topologically-constrained MHD equilibria with chaotic fields. Stuart Hudson Princeton Plasma Physics Laboratory R.L. Dewar, M.J. Hole.
Parallel coupling: problems arising in the context of magnetic fusion John R. Cary Professor, University of Colorado CEO, Tech-X Corporation.
Modelling the Neoclassical Tearing Mode
Stellarator Theory Teleconference January 26, 2006 Don Spong Oak Ridge National Laboratory Acknowledgements: Hideo Sugama, Shin Nishimura, Jeff Harris,
QAS Design of the DEMO Reactor
Lecture 3. Full statistical description of the system of N particles is given by the many particle distribution function: in the phase space of 6N dimensions.
Simulations of NBI-driven Global Alfven Eigenmodes in NSTX E. V. Belova, N. N. Gorelenkov, C. Z. Cheng (PPPL) NSTX Results Forum, PPPL July 2006 Motivation:
Discussion Slides S.E. Kruger, J.D. Callen, J. Carlson, C.C. Hegna, E.D. Held, T. Jenkins, J. Ramos, D.D. Schnack, C.R. Sovinec, D.A. Spong ORNL SWIM Meet.
21st IAEA Fusion Energy Conf. Chengdu, China, Oct.16-21, /17 Gyrokinetic Theory and Simulation of Zonal Flows and Turbulence in Helical Systems T.-H.
Center for Extended MHD Modeling (PI: S. Jardin, PPPL) –Two extensively developed fully 3-D nonlinear MHD codes, NIMROD and M3D formed the basis for further.
52nd Annual Meeting of the Division of Plasma Physics, November , 2010, Chicago, Illinois Non-symmetric components were intentionally added to the.
SWIM Meeting Madison, WI 12/4/07 A closure scheme for modeling RF modifications to the fluid equations C. C. Hegna and J. D. Callen University of Wisconsin.
53rd Annual Meeting of the Division of Plasma Physics, November , 2011, Salt Lake City, Utah When the total flow will move approximately along the.
1 Recent Progress on QPS D. A. Spong, D.J. Strickler, J. F. Lyon, M. J. Cole, B. E. Nelson, A. S. Ware, D. E. Williamson Improved coil design (see recent.
Presented by Yuji NAKAMURA at US-Japan JIFT Workshop “Theory-Based Modeling and Integrated Simulation of Burning Plasmas” and 21COE Workshop “Plasma Theory”
May 23, 2006SINS meeting Structure Formation and Particle Mixing in a Shear Flow Boundary Layer Matthew Palotti University of Wisconsin.
Transport Model with Global Flow M. Yagi, M. Azumi 1, S.-I. Itoh, K. Itoh 2 and A. Fukuyama 3 Research Institute for Applied Mechanics, Kyushu University.
Introduction to Plasma Physics and Plasma-based Acceleration
TEC Short introduction to plasma fluid theory Dominik Schega.
NIMROD Simulations of a DIII-D Plasma Disruption S. Kruger, D. Schnack (SAIC) April 27, 2004 Sherwood Fusion Theory Meeting, Missoula, MT.
Progress Report on SPARTAN Chamber Dynamics Simulation Code Farrokh Najmabadi, Zoran Dragojlovic HAPL Meeting April 8-10, 2003 Sandia National Laboratory,
U NIVERSITY OF S CIENCE AND T ECHNOLOGY OF C HINA Influence of ion orbit width on threshold of neoclassical tearing modes Huishan Cai 1, Ding Li 2, Jintao.
Unstructured Meshing Tools for Fusion Plasma Simulations
Xing Cai University of Oslo
Chapter 3 Plasma as fluids
Kinetic Theory.
Kinetic Theory.
Influence of energetic ions on neoclassical tearing modes
Kinetic Theory.
Modelling the Neoclassical Tearing Mode
Ph.D. Thesis Numerical Solution of PDEs and Their Object-oriented Parallel Implementations Xing Cai October 26, 1998.
Presentation transcript:

Terascale Computations of Multiscale Magnetohydrodynamics for Fusion Plasmas: ORNL LDRD Project D. A. Spong *, E. F. D’Azevedo †, D. B. Batchelor *, D. del-Castillo - Negrete *, M. Fahey ‡, S. P. Hirshman *, R. T. Mills ‡ * Fusion Energy Division, † Computer Science and Mathematics Division, ‡ National Center for Computational Sciences Oak Ridge National Laboratory S. Jardin, W. Park, G.Y.Fu, J. Breslau, J. Chen, S. Ethier, S. Klasky Princeton University Plasma Physics Laboratory

Our project identified six tasks to work on over two years. Our focus during the past year has been on the first three. Our focus will shift to tasks for next year Access to ORNL X1E/XT3 computers required - more significant as project progresses 1.Adapt/optimize M3D for the Cray 2.Adapt/optimize DELTA5D for the Cray 3.Develop particle closure relations 4.Couple M3D and particle closures 5.Demonstrate code on realistic examples 6.Final report, documentation

Significant progress on tasks that are critical to this LDRD project: DELTA5D porting and optimization –Vectorized particle stepping + rapid field evaluation (3D spline, SVD compression) M3D porting and optimization –New vectorized sparse matrix-vector multiply algorithm Particle-based closure relations –Improved compatibility with MHD (flows  n  isolated from particle model), benchmarked with other codes (DKES) PPPL Subcontract added (May - September, 2005) –Addresses issues for fusion scientific end station applications

DELTA5D and M3D optimization

Particle simulation performance has been significantly improved by optimizing the magnetic field evaluation routines: DELTA5D converted to cylindrical geometry for compatibility with M3D 3D B-spline routine optimized by vectorization For larger problems, spline memory requirements will limit number of particles per processor New data compression techniques developed DELTA5D

High performance + small memory footprint SVD * fits of magnetic/electric field data have been developed Strategy: combine 2-D SVD * fit (R,Z) with 1-D Fourier series (  ) N x N matrix -rank approximation * SVD: Singular value decomposition DELTA5D

New sparse matrix-vector multiply routine (vectorized) developed: 10 times faster M3D spends much time in: Sparse elliptic equation solvers PETSC matrix storage –CSR (Compressed Sparse Row) –Unit stride good for scalar/poor for vector processors CSRP (CSR with permutation) –Reorders/groups rows to match vector register size –“strip-mining” breaks up longer loops CSRP algorithm encapsulated into a new PETSC matrix object M3D Matrix-vector multiplies ILU preconditioner (forward/backward solves)

This substantial improvement in matrix-vector operations has exposed the next layer of opportunity for M3D performance gains: For small test problems up to 15% improvement is observed with the vectorized CSRP routine Incomplete LU factorization uses sparse triangular solves that are not easily vectorizable Other preconditioning techniques offer better vectorization - tradeoff between effectiveness vs. cost of iterations –Multi-color ordering has been used on Earth Simulator to vectorize sparse triangular solves –Forces diagonal blocks in the triangular matrices to be diagonal Other novel vectorizable preconditioners –Sparse approximate inverse (SPAI) –Sparse direct solvers M3D

Neoclassical Closure Relations

Our goal is to couple kinetic transport effects with an MHD model - important for long collisional path length plasmas such as ITER Closure relations: enter through the momentum balance equation and Ohm’s law: Moments hierarchy closed by  = function of n, T, V, B, E Requires solution of Boltzmann equation: f = f(x,v,t) High dimensionality: 3 coordinate + 2 velocity + time

Neoclassical transport closures introduce new challenges: Collisions introduce new timescales –lengthy evolution to steady state, especially at low collisionalities –Our particle model (DELTA5D) assigns particles to processors, assumes global data can be gathered at each MHD step –Multi-layer time-stepping orbit time step  v ||  t 1 << L ||  - determined by LSODE collisional time step  t 2 << 1  For low collisionality  t 1 <<  t 2 –Want to avoid calculating quantities (flows, macroscopic gradients) that are already evolved by the MHD model New  f partitioning

N x (time step followed by collisional step) - Collect diagnostic data - Check for particles that exit the solution domain (i.e., last closed surface) reseed or remove - Check for collisions that scatter particles outside of |v || /v| ≤ 1 or energy ≥ 0 -For beams or alphas, check for thermalized particles Merge diagnostic data from different processors -process, depending on physics problem - write out from PE 0 - Neutral beam heating/slowing down - Global energy confinement - Orbit dispersion/diffusion - PDF data for nonlocal transport - Bootstrap current - ICRF heating - Alpha particle/runaway elect. confinement Main components of DELTA5D Monte Carlo code: Set initial conditions and assign groups of particles to processors 

DELTA5D equations were converted from magnetic to cylindrical coordinates Uses bspllib 3D cubic B-spline fit to data from VMEC

A model perturbed field has been added to mock up tearing modes: B = B VMEC +  (  B VMEC ):            

Coulomb collision operator for collisions of test particles (species a) with a background plasma (species b):

Monte Carlo (Langevin) Equivalent of the Fokker-Planck Operator Monte Carlo (Langevin) Equivalent of the Fokker-Planck Operator [A. Boozer, G. Kuo-Petravic, Phys. Fl. 24 (1981)]

Local Monte-Carlo equivalent quasilinear ICRF operator (developed by J. Carlsson)

A  f method is used that follows the distribution function partitioning used in H. Sugama, S. Nishimura, Phys. Plasmas 9, 4637 (2002).

New MHD viscosity-based closure relations are more consistent with the MHD model  || from DELTA5D: running time averages - 1 flux surface 3200 electrons  || benchmark with DKES * DKES: Drift Kinetic Equation Solver DELTA5D

In the next phase, kinetic closure relations will be further developed and coupled with the MHD model: Closure relations –Collisionality scans, convergence studies –Examine/check 2D/3D variation of stress tensor –Accelerate slow collisional time evolution of viscosity coefficients Test pre-converged restarts Equation-free projective integration extrapolation methods –Extension to more general magnetic field models: –Green-Kubo molecular dynamics methods - direct viscosity calculation DELTA5D/M3D coupling –Interface, numerical stability, data locality issues DELTA5D

For next step: need data from several saturated M3D tearing mode test cases at different helilicities (2/1, 3/2, 4/3, etc.)

 ’ and island width evolution from my earlier calculations with the FAR/KITE reduced MHD codes

Neoclassical island width evolution from the FAR/KITE reduced MHD codes

M3D positive  ’ runs (based on case from W. Park) Nonlinear M3D 2/1 tearing mode

Strategy/tasks for Terascale MHD LDRD Port and optimize DELTA5D for Cray X1 Port and optimize M3D for Cray X1 Adapt particle model to cylindrical geometry, M3D fields, parallelize (by processor or region?) Develop  ’ > 0 tearing mode test cases Develop efficient representation for E, B broadcast to all processors optimize/test Develop closure relations: - current or pressure tensor - neo. ion polarization drift effects - generalized Sugama - Ohm’s law - delta-f or full-f - new methods: - viscosity from dispersion vs.time of momentum (?) - track parallel friction between particles/background Couple currents, Pressure tensor,… back into M3D - need equations from flows/viscosities to J BS optimize/test numerical stability Monte Carlo issues: Collision operator conservation properties Test particle/background consistency Smoothed particles or bin and then smooth Resolution of trapped/passing boundary layers