EMAFF: MAgnetic Equations with FreeFem++

Similar documents
Magnetic Equations with freefem: the Grad-Shafranov equation & The Current Hole

E. Cancès, N. Crouseilles, H. Guillard, B. Nkonga, and E. Sonnendrücker, Editors. 1. Introduction

Ideal MHD Equilibria

Physic-based Preconditioning and B-Splines finite elements method for Tokamak MHD

Formation and Long Term Evolution of an Externally Driven Magnetic Island in Rotating Plasmas )

Equilibrium and transport in Tokamaks

SMR/ Summer College on Plasma Physics. 30 July - 24 August, Introduction to Magnetic Island Theory.

INTERACTION OF AN EXTERNAL ROTATING MAGNETIC FIELD WITH THE PLASMA TEARING MODE SURROUNDED BY A RESISTIVE WALL

Un problème inverse: l identification du profil de courant dans un Tokamak

plasmas Lise-Marie Imbert-Gérard, Bruno Després. July 27th 2011 Laboratoire J.-L. LIONS, Université Pierre et Marie Curie, Paris.

Non-linear MHD Simulations of Edge Localized Modes in ASDEX Upgrade. Matthias Hölzl, Isabel Krebs, Karl Lackner, Sibylle Günter

NIMEQ: MHD Equilibrium Solver for NIMROD

Current-driven instabilities

Calculation of alpha particle redistribution in sawteeth using experimentally reconstructed displacement eigenfunctions

The Virial Theorem, MHD Equilibria, and Force-Free Fields

Finite Volume for Fusion Simulations

Current Profile Control by ac Helicity Injection

Modeling of ELM Dynamics for ITER

The Linear Theory of Tearing Modes in periodic, cyindrical plasmas. Cary Forest University of Wisconsin

arxiv: v3 [math.na] 30 Jan 2015

Fundamentals of Magnetic Island Theory in Tokamaks

Water-bag reduced gyrokinetic model for the study of the spatial structure of ITG instability linear modes

The correlation between magnetic flux and jet power

MHD Linear Stability Analysis Using a Full Wave Code

Non-linear MHD Modelling of Rotating Plasma Response to Resonant Magnetic Perturbations.

Computations with Discontinuous Basis Functions

Candidates must show on each answer book the type of calculator used. Log Tables, Statistical Tables and Graph Paper are available on request.

Part IV: Numerical schemes for the phase-filed model

Plasma models for the design of the ITER PCS

Is the Troyon limit a beta limit?

The Field-Reversed Configuration (FRC) is a high-beta compact toroidal in which the external field is reversed on axis by azimuthal plasma The FRC is

Ginzburg-Landau length scales

The 2D Magnetohydrodynamic Equations with Partial Dissipation. Oklahoma State University

Created by T. Madas VECTOR OPERATORS. Created by T. Madas

Nonlinear MHD effects on TAE evolution and TAE bursts

Issues in Neoclassical Tearing Mode Theory

Numerical Approximation of Phase Field Models

GEOMETRICAL TOOLS FOR PDES ON A SURFACE WITH ROTATING SHALLOW WATER EQUATIONS ON A SPHERE

Momentum transport from magnetic reconnection in laboratory an. plasmas. Fatima Ebrahimi

Flow and dynamo measurements in the HIST double pulsing CHI experiment

Oscillating-Field Current-Drive Experiment on MST

arxiv: v1 [physics.plasm-ph] 11 Mar 2016

AC loop voltages and MHD stability in RFP plasmas

Theory for Neoclassical Toroidal Plasma Viscosity in a Toroidally Symmetric Torus. K. C. Shaing

Introduction to Fusion Physics

Sawteeth in Tokamaks and their relation to other Two-Fluid Reconnection Phenomena

Equations of linear stellar oscillations

Chapter 4. MHD Equilibrium and Stability. 4.1 Basic Two-Dimensional Equilibrium Equations and Properties. Resistive Diffusion

0 Magnetically Confined Plasma

Existence and properties of the Navier-Stokes equations

Bursty Transport in Tokamaks with Internal Transport Barriers

Gyrokinetic simulations of magnetic fusion plasmas

Model based optimization and estimation of the field map during the breakdown phase in the ITER tokamak

Simulations of Sawteeth in CTH. Nicholas Roberds August 15, 2015

INTERACTION OF DRIFT WAVE TURBULENCE AND MAGNETIC ISLANDS

Lecture # 3. Introduction to Kink Modes the Kruskal- Shafranov Limit.

Understanding Edge Harmonic Oscillation Physics Using NIMROD

Numerical methods for computing vortex states in rotating Bose-Einstein condensates. Ionut Danaila

Performance limits. Ben Dudson. 24 th February Department of Physics, University of York, Heslington, York YO10 5DD, UK

Some remarks on grad-div stabilization of incompressible flow simulations

Generalized Solovev equilibrium with sheared flow of arbitrary direction and stability consideration

Incompressible MHD simulations

An introduction to Birkhoff normal form

NONLINEAR MHD SIMULATIONS OF ELMs IN JET

Implicit kinetic relaxation schemes. Application to the plasma physic

Guangye Chen, Luis Chacón,

Effect of ideal kink instabilities on particle redistribution

PDEs in Spherical and Circular Coordinates

LEAST-SQUARES FINITE ELEMENT MODELS

NIMROD FROM THE CUSTOMER S PERSPECTIVE MING CHU. General Atomics. Nimrod Project Review Meeting July 21 22, 1997

On Some Variational Optimization Problems in Classical Fluids and Superfluids

Introduction to MagnetoHydroDynamics (MHD) Antoine Cerfon, Courant Institute, New York University

The RFP: Plasma Confinement with a Reversed Twist

Force-Free Magnetosphere of an Accreting Kerr Black Hole

2D theory and simulations of Neoclassical Tearing Modes

Global Magnetorotational Instability with Inflow

A short introduction to FreeFem++

Improved Analytical Flux Surface Representation and Calculation Models for Poloidal Asymmetries. T. G. Collart, W. M. Stacey

D.J. Schlossberg, D.J. Battaglia, M.W. Bongard, R.J. Fonck, A.J. Redd. University of Wisconsin - Madison 1500 Engineering Drive Madison, WI 53706

Theoretical Foundation of 3D Alfvén Resonances: Time Dependent Solutions

DIAGNOSTICS FOR ADVANCED TOKAMAK RESEARCH

Nonlinear 3D MHD physics of the helical reversed-field pinch

Domain-decomposed Fully Coupled Implicit Methods for a Magnetohydrodynamics Problem

A theory for localized low-frequency ideal MHD modes in axisymmetric toroidal systems is generalized to take into account both toroidal and poloidal

Stable Semi-Discrete Schemes for the 2D Incompressible Euler Equations

Simple examples of MHD equilibria

New Streamfunction Approach for Magnetohydrodynamics

Global magnetorotational instability with inflow The non-linear regime

TURBULENT TRANSPORT THEORY

Gyrokinetic neoclassical study of the bootstrap current in the tokamak edge pedestal with fully non-linear Coulomb collisions

Characterization of Edge Stability and Ohmic H-mode in the PEGASUS Toroidal Experiment

Approximate Solutions of the Grad-Schlüter-Shafranov Equation

Non-Relativistic Quantum Mechanics as a Gauge Theory

Numerical Method for the Stability Analysis of Ideal MHD Modes with a Wide Range of Toroidal Mode Numbers in Tokamaks

INTEGRALSATSER VEKTORANALYS. (indexräkning) Kursvecka 4. and CARTESIAN TENSORS. Kapitel 8 9. Sidor NABLA OPERATOR,

Nonlinear Diffusion. Journal Club Presentation. Xiaowei Zhou

Development of a stable coupling of the Yee scheme with linear current

Solving PDEs with freefem++

NIMROD Project Overview

ArbiTER studies of filamentary structures in the SOL of spherical tokamaks

Transcription:

EMAFF: MAgnetic Equations with FreeFem++ The Grad-Shafranov equation & The Current Hole Erwan DERIAZ Bruno DESPRÉS Gloria FACCANONI š Kirill Pichon GOSTAF Lise-Marie IMBERT-GÉRARD Georges SADAKA Remy SART CEMRACS 10, August 25, 2010

Outline 1 Introduction 2 The Equilibrium The model Analytical Solutions and Computational Examples 3 The Current Hole 4 Conclusion Perspectives 2 / 21

Introduction Outline 1 Introduction 2 The Equilibrium The model Analytical Solutions and Computational Examples 3 The Current Hole 4 Conclusion Perspectives 3 / 21

Introduction FreeFem++ FreeFem ++1 is a software to solve partial differential equations numerically, based on finite element methods. For the moment this platform is restricted to the numerical simulations of problems which admit a variational formulation. Our goal will be to evaluate the FreeFem ++ tool on basic magnetic equations arising in Fusion Plasma. 1 http://www.freefem.org/ff++/index.htm 4 / 21

Introduction Geometry configuration Z y λ b φ R 0 e a x ε = a R 0 R 5 / 21

Introduction Reduced Resistive MHD ψ t = (1 + εx)[ψ, ϕ] + η(j J c), ω ϕ 1 = 2εω + (1 + εx)[ω, ϕ] + t y 1 + εx [ψ, J] + ν ω, J = ψ, ω = ϕ. ψ is the magnetic flux, ϕ is the velocity potential, J is the toroidal current density, ω is the vorticity, J c is the non-ohmic driven current density that sets a constant profile likely to be perturbed with fluctuations, η stands for the resistivity, ν is the viscosity, [, ] is the Poisson brackets is the Grad-Shafranov operator is the laplacian restricted to the poloidal section. 6 / 21

Introduction EMAFF Project EMAFF-I: the Grad-Shafranov equation ψ = R 2 dp dψ + F df dψ ; EMAFF-II: the current hole in cylindrical case (i.e. ε = 0) ψ t ω t = [ω, ϕ] + [ψ, J] + ν ω, ω = ϕ. = [ψ, ϕ] + η(j Jc), J = ψ, 7 / 21

The Equilibrium Outline 1 Introduction 2 The Equilibrium The model Analytical Solutions and Computational Examples 3 The Current Hole 4 Conclusion Perspectives 8 / 21

The Equilibrium The Grad-Shafranov Equation In cylindrical coordinates (R, Z) R ( ) ( 1 ψ + 2 ψ R R R Z 2 = R 2 dp dψ + F df ). dψ Soloviev equilibrium dp dψ = α = cst, F df dψ = β = cst In Cartesian coordinates (x, y) ( (1 + εx) div 1 a 2 ( ψ 1 + εx )) = ( αr0 2 (1 + εx) 2 + β ). 9 / 21

The Equilibrium Example I - Soloviev equilibrium Compute the magnetic flux ψ solution of the PDE on the domain Ω defined by Ω = {(R, Z) R = R 0 1 + 1 ψ R R 2 ψ R 2 2 ψ Z 2 = f 0(R 2 + R0 2 ) 2a cos α R 0, Z = ar 0 sin α, α = 0 : 2π}. 10 / 21

The Equilibrium Example I - Soloviev equilibrium Compute the magnetic flux ψ solution of the PDE on the domain Ω defined by Ω = {(R, Z) R = R 0 1 + Analytical solution ψ(r, Z) = f 0R 2 0 a2 2 1 ψ R R 2 ψ R 2 2 ψ Z 2 = f 0(R 2 + R0 2 ) ( 1 2a cos α R 0, Z = ar 0 sin α, α = 0 : 2π}. ( ) 2 ( Z R R0 + (R R 0) 2 ) 2 ). a a 2aR 0 10 / 21

The Equilibrium Example I - Soloviev equilibrium Computational parameters then a = 0.5, f 0 = 1, R 0 = 1; ψ(r, Z) = R2 4 R4 8 Z 2 2 solution of the Grad-Shafranov equation c ψ = R 2 + 1 and ψ Ω = 0. ψ < 0 ψ > 0 ψ = 0 10 / 21

The Equilibrium Example I - Soloviev equilibrium Mesh with N Ω = 200 elements on the border. Magnetic flux ψ ex. Computed magnetic flux ψ with P 1 finites elements type. E(ψ): = ψ ψ ex L 2 ψ ex L 2 = 0.000145274 10 / 21

The Equilibrium Example II - Soloviev equilibrium Compute the magnetic flux ψ solution of the PDE ( ) 1 ψ + 2 ψ x 1 + εx x y 2 = ( αr0 2 (1 + εx) 2 + β ) a 2 (1 + εx) on the domain Ω defined by Ω = {(x, y) R 2 ψ(x, y) = 0}. Analytical solution ( ψ(x, y) = 1 x ε 2 (1 x 2 ) ((1 ε2 4 ) 2 ) (1 + εx) 2 + λx (1 + ε ) ) ( a ) 2 2 x b y α = 4(a2 + b 2 )ε + a 2 (2λ ε 3 ) 2R 2 0 εa2 b 2, β = λ b 2 ε. 11 / 21

The Equilibrium Example II - Soloviev equilibrium IsoValue -0.0530442 0.0259281 0.0785764 0.131225 0.183873 0.236521 0.289169 0.341817 0.394466 0.447114 0.499762 0.55241 0.605059 0.657707 0.710355 0.763003 0.815651 0.8683 0.920948 1.05257 IsoValue -2.75367-2.4425-2.23506-2.02762-1.82017-1.61273-1.40529-1.19785-0.990405-0.782963-0.575521-0.368078-0.160636 0.0468067 0.254249 0.461692 0.669134 0.876576 1.08402 1.60262 ψex x ψex IsoValue -0.0526076 0.0263038 0.0789114 0.131519 0.184127 0.236734 0.289342 0.341949 0.394557 0.447165 0.499772 0.55238 0.604988 0.657595 0.710203 0.76281 0.815418 0.868026 0.920633 1.05215 Mesh for N Ω = 128. ψ N IsoValue -2.76951-2.45678-2.24829-2.03981-1.83132-1.62284-1.41435-1.20587-0.997381-0.788896-0.58041-0.371925-0.16344 0.0450456 0.253531 0.462016 0.670502 0.878987 1.08747 1.60869 ψ x 11 / 21

The Equilibrium Example II - Soloviev equilibrium E(ξ): = ξ ξ ex L 2 ξ ex L 2 = Ω (ξ ξ ex) 2 dω Ω (ξ ex) 2 dω 10 0 Convergence Order of E(ψ) 10 0 Convergence Order of E( ψ/ x)) 10 1 10 1 log 10 (E(ψ)) 10 2 10 3 ~h 2 log 10 (E( ψ/ x) 10 2 ~h 1 10 3 10 4 10 5 10 0 10 1 10 2 10 3 10 4 log 10 (Nx) N Ω E(ψ) 10 4 10 0 10 1 10 2 10 3 10 4 log 10 (Nx) N Ω E ( x ψ ) P 1 elements provide 2 convergence rate for the magnetic flux while gradients are approximated by one order of magnitude less. 11 / 21

The Equilibrium Example III - polynomial (nonlinear) RHS The equation c ψ(r, Z) = G(R, Z; ψ) with RHS G(R, Z; ψ) polynomial in ψ (nonlinear). Iterative method idea: numerical linearization of the RHS. The general scheme { ψ 0 given c ψ k+1 = ψ k+1 G 1(R, Z; ψ k ) + G 2(R, Z; ψ k ) 12 / 21

The Equilibrium Example III - polynomial (nonlinear) RHS The test case solution of ψ ex = 6 9aR 2 + k 1 (z + c 1 ) 2 c ψ = ψ 2 ( k 1 + 2a(k 1 9a)R 2 ψ ) Schemes the start point ψ 0 = ψ ex + 1 2 cos(r), the discretization of the RHS RHS = k 1ψ β k+1 ψ k 2 β + 2a(k 1 9a)R 2 ψ δ k+1ψ k 3 δ. 12 / 21

The Equilibrium Example III - polynomial (nonlinear) RHS (1) (2) (3) (4) β 0 0 1 1 δ 0 1 0 1 0.1 (1) (2) (3) (4) 0.1 (1) (2) (3) (4) 0.01 0.01 0.001 0.0001 0.001 10 100 1000 1e-05 10 100 1000 N Ω ψ ψex H 1 (Ω) ψ ex H 1 (Ω) N Ω ψ ψex H 1 (Ω) ψ ex H 1 (Ω) with elements P 1 with elements P 2 12 / 21

The Current Hole Outline 1 Introduction 2 The Equilibrium The model Analytical Solutions and Computational Examples 3 The Current Hole 4 Conclusion Perspectives 13 / 21

The Current Hole The equations Reduced model with simplified geometry (ε = 0, x Ω, t [0, T ]) t ψ = [ψ, ϕ] + η(j J c ), t ω = [ω, ϕ] + [ψ, J] + ν ω, J = ψ, ω = ϕ with Poisson brackets initial conditions boundary conditions [a, b]: = a x 1 b a x 2 x 2 b x 1 ϕ(0, x) = ω(0, x) = 0, x Ω, J(0, x) = J c, x Ω, ψ(0, x) = 1 J c, x Ω; ϕ(t, x) = ω(t, x) = ψ(t, x) = J(t, x) = 0, x Ω, t [0, T ]. 14 / 21

The Current Hole The FreeFem++ space discretization Finite elements with P 1 (order 2) or P 2 (order 3). Variational formulation: solved by u V h (P 1 or P 2 ) and Au = f v, Au = v, f, v h 15 / 21

The Current Hole Discretization in time Finite elements favor implicit time discretization. Crank-Nicholson (order 2) with linearization tu = F (u) un+1 un δt = 1 (F (un) + F (un+1)) 2 with u n+1 = u n + δu, then we have to solve ( Id δt ) F (un) δu = δt F (u n). 2 }{{} M 16 / 21

The Current Hole Matricial Formulation - I First choice for our problem: ( ) ψ ϕ n+1 = ( ) ψ + ϕ n ( ) δψ δϕ which implies to solve ( ) ( ) δψ [ψ M = δt n, ϕ n ] + η ψ n ηj c δϕ [ ϕ n, ϕ n ] + [ψ n, ψ n ] + ν 2 ϕ n with ( Id + δt M: = 2 [ψ n, ] δt 2 [ψ n, ] + δt 2 [ ψ n, ] δt 2 [ ϕ n, ] + δt 2 [ ϕ n, ] δt ν 2 2 2 [ϕ n, ] δt η 2 δt ) = we can not use P 1 elements we introduce J = ψ and ω = ϕ to obtain a new Matricial Formulation. 2 17 / 21

The Current Hole Matricial Formulation - II δψ [ψ n, ϕ n ] + η(j n J c ) M δϕ δj = δt [ω n, ϕ n ] + [ψ n, J n ] + ν ω n 0 δω 0 with Id + δt 2 [ϕ n, ] δt 2 [ψ n, ] δt η 2 Id 0 δt 2 M: = [J n, ] δt 2 [ω n, ] δt 2 [ψ n, ] Id + δt 2 [ϕ n, ] δt ν 0 0 Id 0 Id 0 2 18 / 21

The Current Hole Computational Tests Tests I: P 1 : see the video P 2 : still in progress Tests II: P 1 (G. HUYSMANS paper): see the video P 2 : see the video Tests III: P 1 (J c initial Laplace): see the video 19 / 21

Conclusion Perspectives Outline 1 Introduction 2 The Equilibrium The model Analytical Solutions and Computational Examples 3 The Current Hole 4 Conclusion Perspectives 20 / 21

Conclusion Perspectives Conclusion Perspectives GS-equation FreeFem ++ is very easy to handle and adapted to solve this kind of problems in general geometry, good agreement with the (limited!) literature, Work in progress: polynomial nonlinear cases several solutions: how to select the physical one? initial condition and FE type: how to choose them? The current-hole effective simulation, no need of any initial perturbation (included in space approximation), different geometries, many test cases with FreeFem ++. 21 / 21