gyrokinetic simulations of magnetic fusion plasmas
play

Gyrokinetic simulations of magnetic fusion plasmas Tutorial 3 - PowerPoint PPT Presentation

Gyrokinetic codes a 3D equations a 5D Vlasov equation a Gyrokinetic simulations of magnetic fusion plasmas Tutorial 3 Virginie Grandgirard CEA/DSM/IRFM, Association Euratom-CEA, Cadarache, 13108 St Paul-lez-Durance, France. email:


  1. Gyrokinetic codes a 3D equations a 5D Vlasov equation a Gyrokinetic simulations of magnetic fusion plasmas Tutorial 3 Virginie Grandgirard CEA/DSM/IRFM, Association Euratom-CEA, Cadarache, 13108 St Paul-lez-Durance, France. email: virginie.grandgirard@cea.fr Acknowledgements: Yanick Sarazin Virginie Grandgirard CEMRACS 2010

  2. Gyrokinetic codes 3D equations 5D Vlasov equation Gyrokinetic codes Virginie Grandgirard CEMRACS 2010

  3. Gyrokinetic codes a 3D equations a Parallelisation performances 5D Vlasov equation a Physical complexity in the gyrokinetic codes complex ◮ δ f vs full- f − + − → ➠ No scale separation between equilibrium and perturbation ◮ Local (“flux-tube”) approximation vs. global model ➠ Covering just a local or the whole physical domain ◮ Adiabatic vs. kinetic electrons ➠ Taking the full kinetics of all species into account ◮ Electrostatic vs. electromagnetic model ➠ Taking self generated currents and Amp` ere’s law into account ◮ Collisionless vs. collisional plasma ➠ Taking collisional effects into account (neoclassical theory) ◮ Fixed gradient or flux-driven boundary conditions None of the codes covers all physical aspects Virginie Grandgirard CEMRACS 2010

  4. Gyrokinetic codes a 3D equations a Parallelisation performances 5D Vlasov equation a Physical complexity in the gyrokinetic codes complex ◮ δ f vs full- f − + − → ➠ No scale separation between equilibrium and perturbation ◮ Local (“flux-tube”) approximation vs. global model ➠ Covering just a local or the whole physical domain ◮ Adiabatic vs. kinetic electrons ➠ Taking the full kinetics of all species into account ◮ Electrostatic vs. electromagnetic model ➠ Taking self generated currents and Amp` ere’s law into account ◮ Collisionless vs. collisional plasma ➠ Taking collisional effects into account (neoclassical theory) ◮ Fixed gradient or flux-driven boundary conditions GYSELA: 4 complexities on 6 Virginie Grandgirard CEMRACS 2010

  5. Gyrokinetic codes a 3D equations a Parallelisation performances 5D Vlasov equation a Flux-tube geometry GS2 code Virginie Grandgirard CEMRACS 2010

  6. Gyrokinetic codes a 3D equations a Parallelisation performances 5D Vlasov equation a Existing gyrokinetic codes Virginie Grandgirard CEMRACS 2010

  7. Gyrokinetic codes a 3D equations a Parallelisation performances 5D Vlasov equation a Gyrokinetic codes require state-of-the-art HPC ◮ Three existing numerical approaches ① Particle-in-Cell (PIC) ② Eulerian follow trajectories fixed grid � numerical noise � dissipation ⋆ optimized loading ⋆ high order scheme ③ Semi-Lagrangian scheme - fixed grid - calculate trajectories backwards - interpolation weak noise, moderate dissipation GYSELA : GYrokinetic SEmi-LAgrangian code Virginie Grandgirard CEMRACS 2010

  8. Gyrokinetic codes a 3D equations a Parallelisation performances 5D Vlasov equation a Gyrokinetic codes require state-of-the-art HPC ◮ Three existing numerical approaches ① Particle-in-Cell (PIC) ② Eulerian follow trajectories fixed grid � numerical noise � dissipation ⋆ optimized loading ⋆ high order scheme � Monte-Carlo � Domain decomposition ③ Semi-Lagrangian scheme - fixed grid � Domain decomposition - calculate trajectories backwards - interpolation � Non-local weak noise, moderate dissipation GYSELA: more accurate but more difficult to parallelize Virginie Grandgirard CEMRACS 2010

  9. Gyrokinetic codes a 3D equations a Parallelisation performances 5D Vlasov equation a Parallelisation of a Semi-Lagrangian method Advantage (due to the eulerian aspect) : ◮ fixed grid ➠ perfect load balancing Drawback (due to interpolation) : ◮ Several choices for the interpolation ◮ But we use cubic splines interpolation : � Good compromise between accuracy and simplicity � Loss of locality (value of f on one grid point requires f over the whole grid) ➠ Not possible to use a simple domain decomposition Virginie Grandgirard CEMRACS 2010

  10. Gyrokinetic codes a 3D equations a Parallelisation performances 5D Vlasov equation a New approach : Local cubic splines A new numerical tool has been developed ➠ Hermite Spline interpolation on patches [Latu-Crouseilles ’07] ◮ Computational domain decomposed in subdomains ◮ Definition of local splines on each subdomains with Hermite boundary conditions ◮ Derivatives are defined so that they match as closely as possible those of global splines Virginie Grandgirard CEMRACS 2010

  11. Gyrokinetic codes 3D equations Parallelisation performances 5D Vlasov equation What are the ingredients of a GK code ? ❶ One 3D quasi-neutrality solver ❷ One gyroaverage operator ❸ One 5D Vlasov solver Virginie Grandgirard CEMRACS 2010

  12. Gyrokinetic codes a Quasi-neutrality equation 3D equations a Gyroaverage operator 5D Vlasov equation a Numerical treatment of the quasi-neutrality equation ◮ The treatment of the quasi-neutrality equation is almost the same for all the codes ◮ Projection in Fourier space in the periodic directions ◮ Finite differences or finite elements in 1D or 2D to solve the Laplacian Virginie Grandgirard CEMRACS 2010

  13. Gyrokinetic codes a Quasi-neutrality equation 3D equations a Gyroaverage operator 5D Vlasov equation a Numerical treatment of the gyroaverage ◮ In Fourier space, the gyro-average reduces to the multiplication by the Bessel function of argument k ⊥ ρ s . ◮ This operation is straightforward in simple geometry with periodic boundary conditions, such as in local codes. ◮ Conversely, in the case of global codes, the use of Fourier transform is not applicable for two main reasons: ◮ ( i ) radial boundary conditions are non periodic and ◮ ( ii ) the radial dependence of the Larmor radius has to be accounted for. ◮ Several approaches have been developed to overcome this difficulty. Virginie Grandgirard CEMRACS 2010

  14. Gyrokinetic codes a Quasi-neutrality equation 3D equations a Gyroaverage operator 5D Vlasov equation a Pad´ e approximation ◮ One of those consists in approximating the Bessel function with Pad´ e expansion � 1 + ( k ⊥ ρ s ) 2 / 4 � J Pad´ e ( k ⊥ ρ s ) = 1 / e.g. see [Y. Sarazin, PPCF (2005)] . ◮ Using the equivalence i � k ⊥ ↔ ∇ ⊥ , the gyroaverage operation of any g leads to the equation 1 − ( ρ 2 c / 4) ∇ 2 � � ¯ g ( r , θ, ϕ ) = g ( r , θ, ϕ ) ⊥ = ∂ 2 ∂ r 2 + (1 / r 2 ) ∂ 2 where we recall that ∇ 2 ∂θ 2 ◮ Such a Pad´ e representation then requires the inversion of the Laplacian operator ∇ 2 ⊥ in real space. Virginie Grandgirard CEMRACS 2010

  15. Gyrokinetic codes a Quasi-neutrality equation 3D equations a Gyroaverage operator 5D Vlasov equation a Correct limit in large wavelengths limit ◮ This approximation gives the correct limit in the large wavelengths limit k ⊥ ρ c ≪ 1, while keeping J Pad´ e finite in the opposite limit k ⊥ ρ s → ∞ Virginie Grandgirard CEMRACS 2010

  16. Gyrokinetic codes a Quasi-neutrality equation 3D equations a Gyroaverage operator 5D Vlasov equation a Pad´ e approximation drawback ◮ The drawback is an over-damping of small scales: in the limit of large arguments x → ∞ , J 0 → (2 /π x ) 1 / 2 cos( x − π/ 4) e ( x ) → 4 / x 2 J Pad´ whereas Fourier space real space Virginie Grandgirard CEMRACS 2010

  17. Gyrokinetic codes a Quasi-neutrality equation 3D equations a Gyroaverage operator 5D Vlasov equation a Quadrature formula ◮ Another possibility, for this gyro-averaging process, is to use a quadrature formula. ◮ The integral over the gyro-ring is usually approximated by a sum over four points on the gyro-ring [Lee, Phys. Fluid (1983)] . ◮ This is rigorously equivalent to considering the Taylor expansion of the Bessel function at order two in the small argument limit, namely J 0 ( k ⊥ ρ s ) ≃ 1 − ( k ⊥ ρ s ) 2 / 4, and to computing the transverse Laplacian at second order using finite differences Virginie Grandgirard CEMRACS 2010

  18. Gyrokinetic codes a Quasi-neutrality equation 3D equations a Gyroaverage operator 5D Vlasov equation a More sophisticated quadrature formula ◮ This method has been extended to achieve accuracy for large Larmor radius [R. Hatzky, PoP (2002) , i.e the number of points (starting with four) is linearly increased with the gyro-radius to guarantee the same number of points per arc-length on the gyro-ring. ◮ In this approach, the points that are equidistantly distributed over the ring are rotated for each particle (or marker) by a random angle calculated every time step ◮ Technique used in GT5D code (see [Idomura, Nuc. Fus. (2003)] ) and ORB5 code (see [Jolliet, Comp. Phys. Comm. (2007) ) For more details on numerical gyroaverage treatments ⇒ N. Crouseilles, C. Negulescu, M. Mehrenberger Virginie Grandgirard CEMRACS 2010

  19. Gyrokinetic codes 3D equations PIC approach 5D Vlasov equation PIC approach Virginie Grandgirard CEMRACS 2010

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend