FLEKS: A flexible particle-in-cell code for multi-scale plasma simulations

The magnetohydrodynamics with embedded particle-in-cell (MHD-EPIC) model has been successfully applied to global magnetospheric simulations in recent years. However, the PIC region was restricted to be one or more static boxes, which is not always sufficient to cover the whole physical structure of...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:Computer physics communications 2023-06, Vol.287, p.108714, Article 108714
Hauptverfasser: Chen, Yuxi, Tóth, Gábor, Zhou, Hongyang, Wang, Xiantong
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The magnetohydrodynamics with embedded particle-in-cell (MHD-EPIC) model has been successfully applied to global magnetospheric simulations in recent years. However, the PIC region was restricted to be one or more static boxes, which is not always sufficient to cover the whole physical structure of interest efficiently. The FLexible Exascale Kinetic Simulator (FLEKS), which is a new PIC code and allows a dynamic PIC region of any shape, is designed to break this restriction. FLEKS is usually used as the PIC component of the MHD with adaptively embedded particle-in-cell (MHD-AEPIC) model. FLEKS supports dynamically activating or deactivating cells to fit the regions of interest during a simulation. An adaptive time-stepping scheme is also introduced to improve the accuracy and efficiency of a long simulation. The particle number per cell may increase or decrease significantly and lead to load imbalance and large statistical noise in the cells with fewer particles. A particle splitting scheme and a particle merging algorithm are designed to limit the change of the particle number and hence improve the accuracy of the simulation as well as load balancing. Both particle splitting and particle merging conserve the total mass, momentum, and energy. FLEKS also contains a test-particle module to enable tracking particle trajectories due to the time-dependent electromagnetic field that is obtained from a global simulation. •Introduce a new particle-in-cell code that allows a dynamic PIC region of any shape.•An adaptive time-stepping scheme is introduced to improve the accuracy and efficiency of a long simulation.•A novel particle merging algorithm that conserves the mass, momentum and energy is introduced.•A test-particle module is implemented to study the transport and energization of particles in global simulations.
ISSN:0010-4655
1879-2944
DOI:10.1016/j.cpc.2023.108714