importing vmec equilibria and shock tube simulations

32
Compact Toroidal Hybrid Shock Tube Benchmark Simulations and Importing VMEC Equilibria Nick Roberds Thanks to Scott Kruger and Jake King at Tech-X for their valuable assistance. 8/13/2014 NIMROD Team Meeting, Logan, UT

Upload: others

Post on 25-May-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Shock Tube Benchmark Simulations and Importing VMEC Equilibria

Nick Roberds

Thanks to Scott Kruger and Jake King at Tech-X for their valuable assistance.

8/13/2014 NIMROD Team Meeting, Logan, UT

Page 2: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Outline

1. Fluid and MHD Shock Tube Benchmarks

2. Importing Equilibria from VMEC

i. Objective

ii. Overview

3. Summary

8/13/2014 2 NIMROD Team Meeting, Logan, UT

Page 3: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Shock Tube Benchmark Simulations

• Simulations of one-dimensional shock tube benchmark cases Sod (non-conducting fluid) shock tube1

Brio-Wu MHD shock tube2

• lamprof = “briowu” is implemented in my branch, in rect_init.f

1 G.A. Sod, Comp. Phys. (1978) 1.

2 M. Brio and C.C. Wu, Comp. Phys. (1988) 400.

8/13/2014 3 NIMROD Team Meeting, Logan, UT

Page 4: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Sod Shock Tube Initial Conditions

Fluid dynamics problem commonly used in validation of CFD codes

8/13/2014 4 NIMROD Team Meeting, Logan, UT

Page 5: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Sod Shock Tube Parameters

Units: 𝜇0 = 𝑘𝐵 = 𝑚𝑖 = 1

Physical and numerical parameters:

8/13/2014 5 NIMROD Team Meeting, Logan, UT

t_dart_upw 0.01

nd_dart_upw 0.01

iso_visc 0.1

elecd 105

be0 10−15

𝛾 1.4

Δ𝑥 1

poly_degree 3

𝑐𝑓𝑙𝑚𝑎𝑥 0.9

lphi 1

Page 6: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Sod: Density and Pressure

Exact solution obtained from NPARC Alliance Validation Archive,

http://www.grc.nasa.gov/WWW/wind/valid/stube/stube.html

8/13/2014 6 NIMROD Team Meeting, Logan, UT

Page 7: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Sod: 𝑣𝑥

8/13/2014 7 NIMROD Team Meeting, Logan, UT

Page 8: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Brio-Wu MHD Shock Tube

Parameters for MHD shock tube that are different:

𝛾 2

nd_dart_upw 10

t_dart_upw 10

elecd 0

be0 1

8/13/2014 8 NIMROD Team Meeting, Logan, UT

Page 9: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Brio-Wu Shock Tube Initial Conditions

8/13/2014 9 NIMROD Team Meeting, Logan, UT

Page 10: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Brio-Wu: Density

Image taken directly from M. Brio

and C.C. Wu (1988)

8/13/2014 10 NIMROD Team Meeting, Logan, UT

Leading edges of features (except ‘SM’) are consistent with characteristic speeds.

Page 11: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Brio-Wu: Pressure

8/13/2014 11 NIMROD Team Meeting, Logan, UT

Image taken directly from M. Brio

and C.C. Wu (1988)

Page 12: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Brio-Wu: 𝑣𝑥

8/13/2014 12 NIMROD Team Meeting, Logan, UT

Image taken directly from M. Brio

and C.C. Wu (1988)

Page 13: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Brio-Wu: 𝑣𝑦

8/13/2014 13 NIMROD Team Meeting, Logan, UT

Image taken directly from M. Brio

and C.C. Wu (1988)

Page 14: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Brio-Wu: 𝐵𝑦

8/13/2014 14 NIMROD Team Meeting, Logan, UT

Image taken directly from M. Brio

and C.C. Wu (1988)

Page 15: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Outline

1. Fluid and MHD Shock Tube Benchmarks

2. Importing Equilibria from VMEC

i. Objective

ii. Overview

3. Summary

8/13/2014 15 NIMROD Team Meeting, Logan, UT

Page 16: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

What is CTH?

• CTH is a stellarator-tokamak hybrid Has both a helical coil and an ohmic heating transformer

8/13/2014 16

Page 17: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Objective of Simulations

To gain insight into CTH low-q disruptions by whole device simulations in NIMROD.

8/13/2014 17 NIMROD Team Meeting, Logan, UT

Will be loading the equilibrium informed by reconstructions sometime in the middle of the shot before a disruption would occur

Page 18: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Disruptions in CTH

• Three types of disruptions observed in CTH: Density Limit

VDE

Low-q

• Low-q disruptions don’t occur when relative strength of stellarator field is increased Can run with 𝑞𝑎 down to 1.25

Growing 𝑚, 𝑛 = (3,2) activity observed in external magnetics before

disruption

Why does stellarator field prevent disruption?

8/13/2014 18 NIMROD Team Meeting, Logan, UT

Page 19: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Outline

1. Fluid and MHD Shock Tube Benchmarks

2. Importing Equilibria from VMEC

i. Objective

ii. Overview

3. Summary

8/13/2014 19 NIMROD Team Meeting, Logan, UT

Page 20: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

What is VMEC?

• VMEC is a 3D inverse equilibrium code Grad-Shafranov equilibrium codes cannot be used to study CTH

VMEC also used to study tokamaks and other devices that are nearly

axisymmetric but not exactly

• inverse code → nested flux surfaces A non-axisymmetric equilibrium with nested flux surfaces may have

singularities in the current density

Equilibrium ‘relaxation’ has been used in M3D simulations initialized with VMEC data1

1. L.E. Sugiyama et. al., 20th IAEA fusion energy conference 2004. Conference proceedings.

8/13/2014 20 NIMROD Team Meeting, Logan, UT

Page 21: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

More VMEC Details

• VMEC model: ideal MHD plasma surrounded by a vacuum region

• Does not output fields in

the vacuum region Vacuum region fields must be

computed to load into NIMROD

8/13/2014 21 NIMROD Team Meeting, Logan, UT

Page 22: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

nimset VMEC Import Module

• Capability to load VMEC equilibria into NIMROD dump file added

• User must provide VMEC ‘wout’ file

makegrid ‘mgrid’ file

• The evolving field arrays are loaded, and the equilibrium field arrays are set to zero Exception: the n=0 coefficient for number density 𝑛 is loaded into the

equilibrium field array to avoid divide by zero error

8/13/2014 22 NIMROD Team Meeting, Logan, UT

Page 23: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Flux Surfaces

8/13/2014 23 NIMROD Team Meeting, Logan, UT

Page 24: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Rotational Transform Profile

8/13/2014 24 NIMROD Team Meeting, Logan, UT

Page 25: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Magnetic Axis

8/13/2014 25 NIMROD Team Meeting, Logan, UT

Page 26: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Current Density has Artifacts and Spurious Features

𝑛 = 0 coefficient for 𝑗𝑧.

• Possible ‘quick fix’: Prescribing 𝑛 = 0 components

of 𝑗 and 𝐵 in equilibrium fields?

Will noise at edge ‘go away’

during relaxation process?

• Possibly a problem with my vacuum region field calculation Magnetic fields look smooth

8/13/2014 26 NIMROD Team Meeting, Logan, UT

Page 27: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Fluxgrid Capability

• Can interface with fluxgrid to produce a flux aligned grid Useful for equilibria that are nearly axisymmetric

8/13/2014 27 NIMROD Team Meeting, Logan, UT

Page 28: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Library Dependencies

• LIBSTELL: A VMEC library

• Functionality provided by LIBSTELL: Optimized rootfinding1 function for computing VMEC coordinates 𝑠, 𝑢, 𝑣

given 𝑅, 𝑍, 𝜙 .

Accurate extrapolation1 of 𝐵 near the magnetic axis.

Loads wout and mgrid files, accounting for file version.

1. S.E. Attenberger et. al., Comp. Phys. 72 (1987) 435.

8/13/2014 28 NIMROD Team Meeting, Logan, UT

Page 29: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Outline

1. Fluid and MHD Shock Tube Benchmarks

2. Importing Equilibria from VMEC

i. Objective

ii. Overview

3. Summary

8/13/2014 29 NIMROD Team Meeting, Logan, UT

Page 30: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Summary

• Shock tubes Demonstrate that NIMROD has some capacity to handle shocks and

rarefactions in 1D if upwind smoothing is used

Shock tubes in Fourier direction not explored

• Setting initial conditions in NIMROD for a VMEC equilibria Need to do more experimenting with trying to ‘relax’ equilibrium while

maintaining profiles

Some short simulations have been run and logged

8/13/2014 30 NIMROD Team Meeting, Logan, UT

Page 31: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

End

• Questions?

Page 32: Importing VMEC Equilibria and Shock Tube Simulations

Compact Toroidal Hybrid

Reading

S.P. Hirshman and J.C. Whitson, “Steepest-Descent Moment Method for Three-Dimensional

Magnetohydrodynamic Equilibria”, Phys. Fluids 26 (1983) 3553.

S.P. Hirshman, W.I. van RIJ, P. Merkel, “Three-Dimensional Free Boundary Calculations Using a Spectral

Green’s Function Method”, Comp. Phys. Comm. 43 (1986) 143.

L.E. Sugiyama et. al., “Two-Fluid Limits on Stellarator Performance: Explanation of Three Stellarator

Puzzles and Comparison to Axisymmetric Plasmas”, 20th IAEA fusion energy conference 2004.

Conference proceedings.

H.R. Strauss et. al., “Simulation of Two Fluid and Energetic Particle Effects in Stellarators”, Nucl. Fusion 44

(2004) 1008.

S.E. Attenberger et. al., “Some Practical Considerations Involving Spectral Representations of 3D Plasma

Equilibria”, Comp. Phys. 72 (1987) 435.

G.A. Sod, “A Survey of Several Finite Difference Methods for Systems of Nonlinear Hyperbolic

Conservation Laws”, Comp. Phys. (1978) 1.

M. Brio and C.C. Wu, “An Upwind Differencing Scheme for the Equations of Ideal

Magnetohydrodynamics”, Comp. Phys. (1988) 400.

“Shock Tube”, NPARC Alliance Validation Archive,

http://www.grc.nasa.gov/WWW/wind/valid/stube/stube.html, Accessed Aug. 8, 2014.

8/13/2014 32 NIMROD Team Meeting, Logan, UT