Computations with Discontinuous Basis Functions

Similar documents
NIMROD Boundary Conditions

NIMEQ: MHD Equilibrium Solver for NIMROD

Two Fluid Dynamo and Edge-Resonant m=0 Tearing Instability in Reversed Field Pinch

Modeling of ELM Dynamics for ITER

Comparison of Kinetic and Extended MHD Models for the Ion Temperature Gradient Instability in Slab Geometry

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

Stabilization of sawteeth in tokamaks with toroidal flows

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

MAGNETIC NOZZLE PLASMA EXHAUST SIMULATION FOR THE VASIMR ADVANCED PROPULSION CONCEPT

Computations of Vector Potential and Toroidal Flux and Applications to Stellarator Simulations

Transition From Single Fluid To Pure Electron MHD Regime Of Tearing Instability

AC loop voltages and MHD stability in RFP plasmas

Intermediate Nonlinear Development of a Line-tied g-mode

MHD-particle simulations and collective alpha-particle transport: analysis of ITER scenarios and perspectives for integrated modelling

Exponential Growth and Filamentary Structure of Nonlinear Ballooning Instability 1

35. RESISTIVE INSTABILITIES: CLOSING REMARKS

Exponential Growth of Nonlinear Ballooning Instability. Abstract

Recapitulation: Questions on Chaps. 1 and 2 #A

GTC Simulation of Turbulence and Transport in Tokamak Plasmas

Effects of Alpha Particle Transport Driven by Alfvénic Instabilities on Proposed Burning Plasma Scenarios on ITER

The RFP: Plasma Confinement with a Reversed Twist

Current Profile Control by ac Helicity Injection

Steady-state Force Balance in the DEBS Code

Current-driven instabilities

2/8/16 Dispersive Media, Lecture 5 - Thomas Johnson 1. Waves in plasmas. T. Johnson

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

The Shallow Water Equations

22.615, MHD Theory of Fusion Systems Prof. Freidberg Lecture 14: Formulation of the Stability Problem

Hybrid Discontinuous Galerkin methods for incompressible flow problems

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

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

Global Magnetorotational Instability with Inflow

A Hybrid Inductive Scenario for a Pulsed- Burn RFP Reactor with Quasi-Steady Current. John Sarff

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

Simple examples of MHD equilibria

(a) (b) (c) (d) (e) (f) r (minor radius) time. time. Soft X-ray. T_e contours (ECE) r (minor radius) time time

Macroscopic plasma description

SOLAR MHD Lecture 2 Plan

Dispersive Media, Lecture 7 - Thomas Johnson 1. Waves in plasmas. T. Johnson

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

Studies of Turbulence-driven FLOWs:

Computational Astrophysics

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

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

Discontinuous Galerkin methods for nonlinear elasticity

The Center for Astrophysical Thermonuclear Flashes. FLASH Hydrodynamics

M. T. Beidler 1, J. D. Callen 1, C. C. Hegna 1, C. R. Sovinec 1, N. M. Ferraro 2

Supported by. Role of plasma edge in global stability and control*

AA242B: MECHANICAL VIBRATIONS

MHD Linear Stability Analysis Using a Full Wave Code

Waves in plasma. Denis Gialis

The importance of including XMHD physics in HED codes

NIMROD simulations of dynamo experiments in cylindrical and spherical geometries. Dalton Schnack, Ivan Khalzov, Fatima Ebrahimi, Cary Forest,

L Aquila, Maggio 2002

INITIAL EVALUATION OF COMPUTATIONAL TOOLS FOR STABILITY OF COMPACT STELLARATOR REACTOR DESIGNS

A Comparison between the Two-fluid Plasma Model and Hall-MHD for Captured Physics and Computational Effort 1

MHD RELATED TO 2-FLUID THEORY, KINETIC THEORY AND MAGANETIC RECONNECTION

Internal boundary layers in the ocean circulation

Analysis and modelling of MHD instabilities in DIII-D plasmas for the ITER mission

Resistive Wall Mode Control in DIII-D

High-m Multiple Tearing Modes in Tokamaks: MHD Turbulence Generation, Interaction with the Internal Kink and Sheared Flows

Applying Asymptotic Approximations to the Full Two-Fluid Plasma System to Study Reduced Fluid Models

General elastic beam with an elastic foundation

Oscillating-Field Current-Drive Experiment on MST

Hybrid Kinetic-MHD simulations with NIMROD

1 Assignment 1: Nonlinear dynamics (due September

Analytic Benchmarking of the 2DX eigenvalue code

Toroidal flow stablization of disruptive high tokamaks

Solving a magnetic diffusion equation by the Mixed Hybrid Finite Element method.

First Experiments Testing the Working Hypothesis in HSX:

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

Heat Transport in a Stochastic Magnetic Field. John Sarff Physics Dept, UW-Madison

Reduction in number of dofs

Jet Stability: A computational survey

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement

In-class exercises Day 1

Control of linear modes in cylindrical resistive MHD with a resistive wall, plasma rotation, and complex gain

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

Gyrokinetic Transport Driven by Energetic Particle Modes

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

Adaptive C1 Macroelements for Fourth Order and Divergence-Free Problems

Chapter 1. Governing Equations of GFD. 1.1 Mass continuity

Long-wave Instability in Anisotropic Double-Diffusion

EMAFF: MAgnetic Equations with FreeFem++

Spontaneous Speed Reversals in Stepper Motors

A space-time Trefftz method for the second order wave equation

The RAMSES code and related techniques I. Hydro solvers

NIMROD Team Meeting Minutes August 12-14, 2014, Logan, Utah The team meeting began with an informal discussion of features that would be beneficial

Chapter 2 Thermodynamics

Quintic beam closed form matrices (revised 2/21, 2/23/12) General elastic beam with an elastic foundation

Magnetic Control of Perturbed Plasma Equilibria

Overview of Tokamak Rotation and Momentum Transport Phenomenology and Motivations

Computational Modeling of Fully Ionized Magnetized Plasmas Using the Fluid Approximation

Issues in Neoclassical Tearing Mode Theory

Parameter robust methods for second-order complex-valued reaction-diffusion equations

Simulation Study of Interaction between Energetic Ions and Alfvén Eigenmodes in LHD

Multigrid solvers for equations arising in implicit MHD simulations

Modeling stellar pulsations (mostly correctly)

Advanced Vibrations. Elements of Analytical Dynamics. By: H. Ahmadian Lecture One

AYA Oscillations in Solar Coronal Magnetic Structures

Transcription:

Computations with Discontinuous Basis Functions Carl Sovinec University of Wisconsin-Madison NIMROD Team Meeting November 12, 2011 Salt Lake City, Utah

Motivation The objective of this work is to make NIMROD more robust and easier to use in application to nonlinear macroscopic extended-mhd dynamics of magnetically confined plasma. Outline Introduction CYL_SPEC findings divergence cleaning discontinuous pressure systems with n and T Discontinuous bases in NIMROD Implementation Results Conclusions

Introduction: local interchange modes represent balances among different physical effects at small spatial scales. With local MHD interchange, the physically stabilizing contribution is singular mathematically and the drive is local. In normalized reduced ideal MHD: " & ( "x #2 $ x 2 ) " '( "x % ) * + $ D s % = 0 destabilizing interchange inertia stabilizing bending from the singular B " #( B " #$) Φ is the streamfunction, x is flux-normal distance from the resonance, and ω is frequency. Even with the ideal-mhd stability parameter (D s ) at almost twice the marginal value, a local interchange mode has a nearly singular response. Without bending, bounded solutions for all D s >0 (eigenmodes) exist for ω 2 <0.

With non-reduced, primitive-variable equations, several numerical operations have to work well together at the limit of resolution to produce the stabilizing effect. A relatively simple example is compressible g-mode analysis with mass density increasing in y, supported by J z B x. " -& AS /( "y.' k 2 S # $ 2 % 4 ) + " *"y, y # 0 & $%2 J z B x A, y 2 # A + $g ) ( +, 1 ' L * y = 0 A in numerator is from B b & B ξ. A " #$ 2 % F 2 ; F " k& B = k x B x + k z B z ~ x 2 (Alfven spectrum is A = 0.) S " #$ 2 ( B 2 + %P) & F 2 %P ('sound' spectrum is S = 0.) Substitute continuity into y- comp of momentum eqn. Denominator & y-derivs are from eliminating ξ with total pressure and different comps of momentum equation. Numerically, mesh-scale perturbations tend to excite the destabilizing part while missing most or all of the stabilizing part.

CYL_SPEC findings: Results presented in August motivate a limited use of discontinuous bases in NIMROD. To summarize before presenting specific results: 1. Have the mesh spacing ~sqrt(i el /N el ), i.e. equal areas, near r=0. 2. Divergence cleaning with an auxiliary discontinuous scalar field helps reduce artificial resistive effects at low resolution. 3. A reasonable compromise might be continuous expansions (except divergence cleaner) with pressure of higher polynomial degree than others. 4. Discontinuous pressure (plasma or total) helps interchange stability but leads to many stable numerical modes, and physical dissipation terms cannot be added without surface flux computations. 5. A limited use of FE stabilization methods may help. Only some results show improvement; others are show further destabilization. 6. Penalty energies that are effective for ideal eigenvalue computation (Degtyarev, CPC 43) are not well suited for systems with first-order timederivatives.

2. With few elements and lower-order bases, the standard divergence cleaner allows more artificial reconnection. Our divergence cleaning is based on diffusion of error: " "t B = #$ % E + $& + ' b2$$ ( B, & = ' b1 $ ( B The ϕ term is integrated by parts in weak form, so the auxiliary scalar may be discontinuous across element borders. Computations for a physically stable k z =-1.5, D s =0.200 mode show less numerical growth with a discontinuous auxiliary scalar (of degree one less than that of B, V, and p) for h- and p-method. The eigenmode with χ b1 0, χ b2 =0 shows less artificial reconnection in 40-element, pd=4 results.

4. Results with discontinuous pressure of the same polynomial degree are close to being stable at low resolution. Computations with discontinuous p of the same poly. degree as B and V show very small growth of the physically stable mode at low resolution. Previously shown discontinuous-p spectra had p one degree lower, as in the brown-circle results here. All of the cases shown here have uniform-area meshes.

The interface damping cases have relaxation of pressure discontinuity along element borders. p p + Relaxation on each side of interface: dp " dt = #( p + " p " ) dp + dt = "#( p + " p " ) In weak form along interfaces with q representing discontinuous weight functions: # dp q + dp + " q " & ) % $ " ( ds = " ) *( q dt dt ' + " q " )( p + " p " ) ds A i A i This additional term damps numerical modes that are discontinuous along element borders.

CYL_SPEC results with separate n and T expansions appear to be comparable to results with a p expansion. Comparison of results with both n and T discontinuous, with only n discontinuous, and with n discontinuous and of reduced degree. Results with equilibrium density profiles show similar levels of numerical growth. These results also indicate that continuous T-expansion is okay, which is needed for the existing thermal conduction implementation. Spectra for spatially uniform equilibria (not shown) have ω=0 modes.

Discontinuous bases in NIMROD: The results from CYL_SPEC motivate testing in NIMROD. Two evolution equations can be treated in a new way. Magnetic evolution uses a temporary discontinuous scalar field. " "t B = #$ % E + $&, & = ' b1$ ( B The number density is treated as a discontinuous scalar field. " "t n = #v $ %n 0 # n 0 % $ v Only linear V 0 =0 conditions have been considered so far.

NIMROD implementation: To achieve a working code, only a small number of modules needed significant development. Basis functions: A new lagr_disc_mod largely mirrors lagr_quad_mod, but it shares the lagr_quad_type type definitions. The interior arrays are used for discontinuous fields. Vector types have a new arrtmp array for collecting coefficients of continuous and temporary discontinuous fields in one structure. Rblock matrix computations: Information for indirect addressing is defined in element degree-offree (DOF) lists during allocation. These lists of indices simplify the looping for matrix construction. Temporary discontinuous data is combined with element-interior data for static condensation. For the discontinuous-n advance, matrices are local to each element, and the condensation step fully solves the set of matrices. There are new management and integrand routines for n.

NIMROD results: Tearing and interchange computations are being used to test the new representations. Perturbed axial current density with grad(div(b)) cleaner and B of polynomial degree 3. Perturbed axial current density with grad(φ) cleaner, B of polynomial degree 3 and φ of degree 2. Here, a standard cylindrical 0-β tearing test shows that code modifications for divergence cleaning with the auxiliary scalar function.

Divergence cleaning with the auxiliary scalar alters divergence errors that are obtained in the tearing test. Growth rates with varied levels of divergence diffusivity. The mesh is a packed 24 24, elements are bicubic, and Δt = 100 τ A. Divergence error levels with divergence diffusivity varied. With the auxiliary scalar of 1 degree lower than that for B, divergence cleaning plateaus as the diffusivity is increased. With the old cleaner, the matrix solver fails at divbd=10 4, but the matrix appears to remain relatively well conditioned with the auxiliary scalar.

Varying spatial resolution at fixed divergence diffusivity reveals slightly different convergence properties. In these computations, Δt = 50 τ A, and the divergence diffusivity is 1. With the auxiliary scalar, divergence errors are higher for the same diffusivity value. Both approaches converge to the same growth rate. Growth rates (left) and div error at fixed pd(b,v)=3. Growth rates (left) and div error with a 24 24 mesh.

The implementation of discontinuous-n is demonstrated with the physically unstable interchange case. Perturbed n from a computation with a uniform 64 64 mesh. B and V have poly. degree 3, and φ and n have degree 2. Zoom of V z shows that this eigenmode is not fully converged. In the interchange tests shown here, the equilibrium has uniform temperature, and p_model is isothermal so that the temperature representation does not affect results. A mesh scan produces γ=2.3 10-3 (16 16), 5 10-4 (32 32), and 7.53 10-3 (64 64). Converged should be 8.88 10-3.

Results on the physically stable case do not reproduce the strong stabilization found with CYL_SPEC. Vz w disc. n & φ, pd=2, others pd=3, 16 16. γ = 4.7 10-4. Same case later in time. γ = 1.4 10-3. Disc. n and φ, pd=3, others pd=4, 16 16. γ = 7 10-4. Cont. n and ( b) cleaner pd=3, 16 16. γ = 3.6 10-3. The discontinuous-n representation lowers growth rates somewhat, but whether the expansion has the same polynomial degree as other fields or is reduced by 1 has little effect. The scalar divergence control makes the growth much less sensitive to the error diffusivity. Adiabatic computations with discontinuous n and nonuniform Teq tend to produce overstable noise.

Conclusions / Thoughts 1. Divergence cleaning with an auxiliary discontinuous scalar field helps reduce artificial resistive effects at low resolution. 2. Bullet from summer: A reasonable compromise might be continuous expansions (except divergence cleaner) with pressure of higher polynomial degree than others. Results with NIMROD disprove this. 3. Discontinuous pressure (plasma or total) of the same degree as other fields looks promising from CYL_SPEC results but has not been confirmed with NIMROD. 4. The unphysical interchange modes with discontinuous n tend to be noisy and may be amenable to numerical dissipation. 5. The semi-implicit operator effectively uses another representation and may contribute to the numerical growth.

Introduction: Convergence from the stable- or unstableside refers to numerical results for a given mode: Too fast/slow at low resolution? Will a physically stable mode grow? Convergence results for a physically unstable interchange mode in a cylinder demonstrate the different behavior. Lütjens and Luciani (CPC 95), note that conv. from the unstable side may be tolerable for eigenvalue computation, but it generates high-k noise that affects nonlinear time-dependent computation. Resonances may occur throughout the domain.

Previous work examined numerical convergence on interchange with low-order methods. MHD eigenvalue solver representations: Gruber and Rappaz (Springer-Verlag, 85) use low-order finite elements in flux coordinates with the continuity of each ideal displacement component tailored to allow ξ=0 in each element of ERATO computations. They introduced a hybrid method, with extra expansions related by element integrals to allow convergence from the unstable side. Degtyarev (CPC 43) applied a penalty method in variational computations to control numerical modes. Bondeson and Fu (CPC 66) applied a Tunable Integration Scheme to adjust convergence behavior in ideal MARS computations. Nonlinear computations: Lütjens and Luciani (CPC 95) use a piecewise quadratic expansion of magnetic flux with piecewise linear streamfunction to achieve stable-side convergence in resistive computations with XTOR.

CYL_SPEC is being used to investigate many possible expansions and formulations. 1D cylindrical geometry with f " f ( r)e im#+ikz is a compromise between non-trivial geometry and rapid development. Run-time parameters are used to select basis functions. Basis functions in r may be continuous and discontinuous spectral elements of arbitrary polynomial degree. Basis vectors are orthogonal, and the two for the θ-z plane may rotate in r to follow B 0 : r ˆ, b ˆ " r ˆ, b ˆ. ( ) Changing formulations requires minimal coding. Three configurations are considered: 1) uniform B z to check stable waves, 2&3) a peaked-pressure profile where D s decreases monotonically in radius, and m=4 is stable/unstable depending on k z. Modes resonant outside r = 0.466 are stable. For k z =-1.5, r s =0.507, and D s =0.200; for k z =-1.78, r s =0.371, and D s =0.443. B z ( r) = B 0 q( r) = 1+ c 2 2 r 2 Rc 1 D s ( r) = " µ 0 rb z 2 # q & # dp & % ( % ( = $ dq dr' $ dr ' c 1 2 1+ c 2 2 r 2 ( )c 2 4 r 2

4. Discontinuous scalars (ϕ and p) of one polynomial degree less than the vector-field expansions improves convergence properties with respect to interchange (results from last year). These older stable-case computations have uniform mesh spacing. Computations with discontinuous p and ϕ that are 1 degree lower show smaller numerical growth than continuous representations of the same polynomial degree. The results are not as good as reducing the degree for V or increasing that of p.

Test results on stable oscillations are not favorable for the expansions with discontinuous scalars. The Χ, Λ, Ζ 2nd-order system (green diamonds) is very accurate. The expansion with discontinuous p and ϕ one degree lower (black) shows low-ω modes and spectral pollution above the Alfvén modes.