1
Full Particle Simulation of the Plasma Sheet K. Fujimoto and S. Machida Department of Geophysics, Graduate School of Science, Kyoto University Using Adaptive Mesh Refinement (AMR) Technique It is widely believed that magnetic reconection plays an important role in the magnetospheric substorm and the solar flare. However, physical processes around the diffusion region are not well understood. Recently, it has been suggested that multi-scale coupling process should be important in the reconnection triggering and the anomalous plasma heating and accel- eration around the diffusion region. Now, it is necessary to conduct a self-consistent large-scale simulation including phenomena with various scales to describe multi-scale coupling. However, a realization of such a simulation with an ordinary PIC technique is still difficult because electron-scale phenomena are very localized in ion-scale or MHD-scale system. To overcome this difficulty, we have made a new 2-1/2 dimensional electromagnetic particle code with adaptive mesh refinement (AMR) technique. The AMR technique dynamically subdivides the cells that satisfy a certain refinement criterion, which is defined by local electron Debye length and electron flow velocity in the present case, and it is quite effective to achieve high-resolution simulations such as those around the X-type neutral line. In this paper, we show our recent results of test simulations and preliminary results on the time developing of the Harris plasma sheet using the newly developed electromagnetic full-particle code with AMR technique. AMR Techique used in Electromagnetic Particle Code Refined cells Buffer cells Level L Oct 1 Oct 2 1 2 1 2 Level L+1 Oct 3 Oct 4 1 2 1 2 iPr OctCh iPr OctCh iNb iNb iNb inp inp inp inp pnb Particles In order to realize an effective high-resolution simulation, the AMR technique subdivides only cells that satisfy a refinement criterion and add data sets for finer cells (with higher level) onto the uniform base cells (with the lowest level) hierarchically. The data structure that we use to organize the hierarchical cell structure is similar to the implemented fully threaded tree structure [Khokhlov, 1998]. Each cell is needed to access the parent, child, and neighboring cells. In our code, we group four cells togather that have a same parent cell in order to save memory for pointers and facilitate parallel com- puting. We call this group an oct (after an octet in the case of a cubic cell). Each cell has a pointer to the child oct (OctCh). Each oct has pointers to the parent cell (iPr), the parent cells of neghboring octs (iNb), and a represen- tative particle belonging to the oct (inp). Each particle has a pointer to any other particle in the same octs, which leads to a beaded structure of particles. In addition to the above refined cells that satisfy the refinement criterion, we also split the buffer cells that are adjacent to the refined cells. Calculations of electromagnetic field are performed first on the coarsest cells, which are the root cells in the hierarchical structure. The solutions are projected onto the buffer cells in the next level cells as their boundary conditions. Then the elecromagnetic field is calculated on the cells with this level. This process is recursively repeated to reach the dynamic range level. Eventually the solutions in each cell are replaced by those in the finest cells after proper smooth- ing operations to avoid the aliasing. [Data Structure] [Calculations of Electromagnetic Field] Level L Level L+1 x t Test Simulations tω ci 0 0.001 0.002 0.003 0.004 0.01 0.02 0.05 0.1 0.2 0.5 1 Field Energy Ex With AMR Without AMR λ=16Δ B λ=12Δ B λ=8Δ B Our code is checked against the Landau damping of the Langmuir waves that propagate across the regions with different size of cells. We find the Langmuir waves propagate properly across the boundaries, that is, neither remarkable noise nor wave reflection are shown in the boundaries. x y Ex Propagation The theoretical profiles deduced from the linear analysis of the Landau resonance are plotted in red lines. The simulation result provides a good fit to the theoretical profile. We also compare the results using the AMR technique with those without the AMR. We find 'With AMR' run is in good agreement with 'Without AMR' run, which indicates the appli- cation of the AMR technique to the ordinary PIC code is successful. -0.10 -0.08 -0.06 -0.04 -0.02 0.00 0.02 0.04 0.06 0.08 0.10 4.2 5.8 7.4 9.0 10.6 12.2 -1.9 -1.0 0.0 1.0 1.9 X Z 28.16 t= 4.2 5.8 7.4 9.0 10.6 12.2 -1.9 -1.0 0.0 1.0 1.9 X Z -0.10 -0.08 -0.06 -0.04 -0.02 0.00 0.02 0.04 0.06 0.08 0.10 28.16 t= Simulation Results of the Plasma Sheet We have performed simulations of the plasma sheet using our AMR code. We adopt the Harris current sheet as an initial condition. The initial parameters are as follows; m i /m e = 100, T i,ps /T e,ps = 8.0, c/v e,th = 3.3, λ = 0.5 λ i , 4.1 x 10 6 particles for each species. The initial magnetic fields are given by, Bx(x,z) = -B 0 tanh(z/λ) - 2δ/λ cos(2πx/L x )sech 2 (z/λ)tanh(z/λ) Bz(x,z) = 2πδ/L x sin(2πx/L x )sech 2 (z/λ) δ = 0.02 B 0 λi. System size is L x x L z = 20.5 λ i x 41.0 λ i . Boundary conditions are periodic boundaries in x and conductive walls in z. Grid spacing is Δ B = 0.32 λ i in the base layer and Δ D = 0.02 λ i in the dynamic range layer. Time step is Δt = 0.0016 ω ci -1 , which is the same in all layers. The refinement criterion is simply defined by the local electron Debye length and electron flow velocity as λ De < Δ <2λ De or V e > 1.8 V A This condition must be satisfied in all cells. The most significant advantage of the AMR technique is to effectively reduce the number of cells in the simulation box. In the case of plasma particle simulations, the AMR tech- nique is also useful to reduce the number of background particles, which is needed to sup- press the numerical noise that arises where the number of particles par cell is small. Without AMR With AMR Ratio Cells 2.1 x 10 6 5.0 x 10 4 42 Particles > 2.1 x 10 7 4.1 x 10 6 5 We confirmed the cells that satisfy the refine- ment criteria are dynamically and adequately divided in our code . We realized effectively high-resolution simulations of the plasma sheet. 0.0 4.1 8.2 12.3 16.4 20.5 -10.2 -6.1 -2.0 2.1 6.2 10.3 X Z -0.10 -0.08 -0.06 -0.04 -0.02 0.00 0.02 0.04 0.06 0.08 0.10 By Summary We have developed a new electromagnetic full particle code with the AMR technique, which is able to increase a spatial resolution dynamically by subdividing cells that satisfy a refinement criterion. The simulations of the Landau damping and Harris-type plasma sheet indicate that the AMR technique is successfully applied to the ordinary PIC code and high-resolution simulations are effectively realized. We are now parallelizing our code and will achieve a particle simulation with the spacial dynamic range of 10 4 to 10 5 , which enables us to perform a global simulation including multi scales from the electron scale to the MHD scale.

D =16 l using the AMR technique with D =12 lD l t= 28th.nao.ac.jp/MEMBER/keizo/presen/COSPAR04.pdf · We have performed simulations of the plasma sheet using our AMR code. We adopt

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: D =16 l using the AMR technique with D =12 lD l t= 28th.nao.ac.jp/MEMBER/keizo/presen/COSPAR04.pdf · We have performed simulations of the plasma sheet using our AMR code. We adopt

Full Particle Simulation of the Plasma Sheet

K. Fujimoto and S. MachidaDepartment of Geophysics, Graduate School of Science, Kyoto University

Using Adaptive Mesh Refinement (AMR) Technique

It is widely believed that magnetic reconection plays an important role in the magnetospheric substorm and the solar flare. However, physical processes around the diffusion region are not well understood. Recently, it has been suggested that multi-scale coupling process should be important in the reconnection triggering and the anomalous plasma heating and accel-eration around the diffusion region. Now, it is necessary to conduct a self-consistent large-scale simulation including phenomena with various scales to describe multi-scale coupling. However, a realization of such a simulation with an ordinary PIC technique is still difficult because electron-scale phenomena are very localized in ion-scale or MHD-scale system. To overcome this difficulty, we have made a new 2-1/2 dimensional electromagnetic particle code with adaptive mesh refinement (AMR) technique. The AMR technique dynamically subdivides the cells that satisfy a certain refinement criterion, which is defined by local electron Debye length and electron flow velocity in the present case, and it is quite effective to achieve high-resolution simulations such as those around the X-type neutral line. In this paper, we show our recent results of test simulations and preliminary results on the time developing of the Harris plasma sheet using the newly developed electromagnetic full-particle code with AMR technique.

AMR Techique used in Electromagnetic Particle Code

Refined cellsBuffer cells

Level LOct 1 Oct 2

1 2 1 2

Level L+1Oct 3 Oct 4

1 2 1 2

iPrOctCh iPrOctCh

iNbiNbiNb

inpinpinpinp

pnbParticles

In order to realize an effective high-resolution simulation, the AMR technique subdivides only cells that satisfy a refinement criterion and add data sets for finer cells (with higher level) onto the uniform base cells (with the lowest level) hierarchically. The data structure that we use to organize the hierarchical cell structure is similar to the implemented fully threaded tree structure [Khokhlov, 1998]. Each cell is needed to access the parent, child, and neighboring cells. In our code, we group four cells togather that have a same parent cell in order to save memory for pointers and facilitate parallel com-puting. We call this group an oct (after an octet in the case of a cubic cell). Each cell has a pointer to the child oct (OctCh). Each oct has pointers to the parent cell (iPr), the parent cells of neghboring octs (iNb), and a represen-tative particle belonging to the oct (inp). Each particle has a pointer to any other particle in the same octs, which leads to a beaded structure of particles.

In addition to the above refined cells that satisfy the refinement criterion, we also split the buffer cells that are adjacent to the refined cells. Calculations of electromagnetic field are performed first on the coarsest cells, which are the root cells in the hierarchical structure. The solutions are projected onto the buffer cells in the next level cells as their boundary conditions. Then the elecromagnetic field is calculated on the cells with this level. This process is recursively repeated to reach the dynamic range level. Eventually the solutions in each cell are replaced by those in the finest cells after proper smooth-ing operations to avoid the aliasing.

[Data Structure][Calculations of Electromagnetic Field] Level L

Level L+1

x

t

Test Simulations

tωci0 0.001 0.002 0.003 0.004

0.010.02

0.050.10.2

0.51

Field Energy� Ex�

With AMRWithout AMR

λ=16∆B

λ=12∆B

λ=8∆B

Our code is checked against the Landau damping of the Langmuir waves that propagate across the regions with different size of cells. We find the Langmuir waves propagate properly across the boundaries, that is, neither remarkable noise nor wave reflection are shown in the boundaries.

x

y

Ex Propagation

The theoretical profiles deduced from the linear analysis of the Landau resonance are plotted in red lines. The simulation result provides a good fit to the theoretical profile. We also compare the results using the AMR technique with those without the AMR. We find 'With AMR' run is in good agreement with 'Without AMR' run, which indicates the appli-cation of the AMR technique to the ordinary PIC code is successful.

-0.10 -0.08 -0.06 -0.04 -0.02 0.00 0.02 0.04 0.06 0.08 0.10

4.2 5.8 7.4 9.0 10.6 12.2-1.9

-1.0

0.0

1.0

1.9

X

Z

28.16t=

4.2 5.8 7.4 9.0 10.6 12.2-1.9

-1.0

0.0

1.0

1.9

X

Z

-0.10 -0.08 -0.06 -0.04 -0.02 0.00 0.02 0.04 0.06 0.08 0.10

28.16t=

Simulation Results of the Plasma SheetWe have performed simulations of the plasma sheet using our AMR code. We adopt the Harris current sheet as an initial condition. The initial parameters are as follows;

mi/me = 100, Ti,ps/Te,ps = 8.0, c/ve,th = 3.3, λ = 0.5 λi,4.1 x 106 particles for each species.

The initial magnetic fields are given by,

Bx(x,z) = -B0 tanh(z/λ) - 2δ/λ cos(2πx/Lx)sech2(z/λ)tanh(z/λ)Bz(x,z) = 2πδ/Lxsin(2πx/Lx)sech2(z/λ)δ = 0.02 B0λi.

System size is Lx x Lz = 20.5 λi x 41.0 λi.

Boundary conditions are periodic boundaries in x and conductive walls in z.

Grid spacing is ∆B = 0.32 λi in the base layer and ∆D = 0.02 λi in the dynamic range layer. Time step is ∆t = 0.0016 ωci

-1, which is the same in all layers.

The refinement criterion is simply defined by the local electron Debye length and electron flow velocity as

λDe < ∆ <2λDe or Ve > 1.8 VA

This condition must be satisfied in all cells.

The most significant advantage of the AMR technique is to effectively reduce the number of cells in the simulation box. In the case of plasma particle simulations, the AMR tech-nique is also useful to reduce the number of background particles, which is needed to sup-press the numerical noise that arises where the number of particles par cell is small.

Without AMR With AMR Ratio

Cells 2.1 x 106 5.0 x 104 42

Particles > 2.1 x 107 4.1 x 106 5

We confirmed the cells that satisfy the refine-ment criteria are dynamically and adequately divided in our code . We realized effectively high-resolution simulations of the plasma sheet.

0.0 4.1 8.2 12.3 16.4 20.5-10.2

-6.1

-2.0

2.1

6.2

10.3

X

Z

-0.10

-0.08

-0.06

-0.04

-0.02

0.00

0.02

0.04

0.06

0.08

0.10

By

SummaryWe have developed a new electromagnetic full particle code with the AMR technique, which is able to increase a spatial resolution dynamically by subdividing cells that satisfy a refinement criterion.

The simulations of the Landau damping and Harris-type plasma sheet indicate that the AMR technique is successfully applied to the ordinary PIC code and high-resolution simulations are effectively realized.

We are now parallelizing our code and will achieve a particle simulation with the spacial dynamic range of 104 to 105, which enables us to perform a global simulation including multi scales from the electron scale to the MHD scale.