Arxiv:1310.0805V2 [Physics.Comp-Ph]

Arxiv:1310.0805V2 [Physics.Comp-Ph]

The vmf90 program for the numerical resolution of the Vlasov equation for mean-field systems Pierre de Buyl∗ Center for Nonlinear Phenomena and Complex Systems, Universit´elibre de Bruxelles, CP231, Campus Plaine, 1050 Brussels, Belgium Abstract The numerical resolution of the Vlasov equation provides complementary information with respect to analytical studies and forms an important research tool in domains such as plasma physics. The study of mean-field models for systems with long-range interactions is another field in which the Vlasov equation plays an important role. We present the vmf90 program that performs numerical simulations of the Vlasov equation for this class of mean-field models with the semi-Lagrangian method. Keywords: Vlasov equation ; Hamiltonian Mean-Field model ; Single Wave model PROGRAM SUMMARY 1. Introduction Manuscript Title: The vmf90 program for the numerical resolution of the Vlasov equation for mean-field systems The Vlasov equation provides an appropriate description Author: Pierre de Buyl of collisionless plasmas, beam propagation, collisionless grav- Program Title: vmf90 itational dynamics, among other systems of interest. Another Journal Reference: field of application is the study of mean-field models for long- Catalogue identifier: range interactions [1–4] In these systems, thermodynamical Licensing provisions: vmf90 is available under the GNU General and dynamical properties can differ strongly with respect to Public License short-range interacting systems. The understanding of the Programming language: Fortran 95 kinetic properties in these systems relies importantly on their Computer: Single CPU computer Vlasov description. Theoretical considerations and N-body Operating system: No specific operating system, the program is tested simulations form the majority of the literature but numerical under Linux and OS X simulations of the Vlasov equation are found in a small number RAM: about 5 M bytes of references [5–13]. These simulations provide a comple- Keywords: Vlasov equation, semi-Lagrangian method, Hamiltonian mentary point of view to N-body simulations by removing Mean-Field model, Single-Wave model the dependence on the number of simulated particles. The Classification: 1.5 Relativity and Gravitation, 19.8 Kinetic Models, number N of particles present in a simulation has a significant 19.13 Wave-plasma Interactions, 23 Statistical Physics and Thermo- impact on the dynamics of these long-range systems, espe- dynamics. cially on the timescale of the relaxation to equilibrium. Many External routines/libraries: HDF5 for the code (tested with HDF5 studies on long-range interacting systems are performed on v1.8.8 and above). Python, NumPy, h5py and matplotlib for analysis. one-dimensional models. This makes the numerical resolu- Nature of problem: tion of the Vlasov equation by Eulerian methods, instead of Numerical resolution of the Vlasov equation for mean-field models particle-in-cell methods, computationally accessible. (Hamiltonian Mean-Field model and Single Wave model). Numerical resolutions of the Vlasov equation are being Solution method: performed since decades, following the work of Cheng and arXiv:1310.0805v2 [physics.comp-ph] 25 Mar 2014 The equation is solved with the semi-Lagrangian method and cubic Knorr [14] on the time discretization of the problem. Most spline interpolation. of the research in this field is related to the simulation of the Running time: Vlasov-Poisson system in plasma physics. As a consequence, The examples provided with the program take 1m30 for the Hamiltonian- no code is available for the simulation of simpler mean-field Mean Field model and 10m for the Single Wave model, on an Intel models. Altough existing codes for the Vlasov-Poisson system Core i7 CPU @ 3.33GHz. Increasing the number of grid points or the could be easily converted for use with mean-field systems, we number of time steps increases the running time. propose here a code that is aimed specifically at these systems. The vmf90 program presented in this article has already been used to perform the numerical resolution of the Vlasov equation for the Hamiltonian Mean-Field or free electron laser ∗Present address: Department of Chemistry, Katholieke Universiteit Leu- models in the references [6] (at that time, a previous C++ ven, Celestijnenlaan 200F, B-3001 Heverlee, Belgium Preprint submitted to Computer Physics Communications March 26, 2014 version was used) and [7–12]. The results in the present 2.2. The single-wave model manuscript have been obtained with version 1.0.0 of the vmf90 The so-called single-wave model is a model consisting of program. many particles interacting with a single wave. This model orig- inates from the study of beam-plasma interactions [16] but also 2. Physical models proves adequate to study wave-particle interactions, free elec- tron lasers [17] and collective atomic recoil lasing [18]. 2.1. The Hamiltonian Mean-Field model The Vlasov equation for the single wave model reads The Hamiltonian Mean-Field (HMF) model, introduced in ∂ f ∂ f ∂ f = −p + 2(A cos θ − A sin θ) , Ref. [15], consists of particles interacting via a cosine potential ∂t ∂θ x y ∂p in a periodic box. It is intended as a simplified description of ∂Ax systems of charged or gravitational particles in which collective = −δAy + dθdp f cos θ, ∂t Z behavior, caused by the all-to-all coupling of the particles, plays ∂Ay an important role. = δAx − dθdp f sin θ, (5) ∂t Z The HMF model serves as a reference model in the field of systems with long-range interactions [3]. It exhibits peculiar where f = f (θ, p; t) is the one-particle distribution function and dynamical properties among which is the existence of the so- Ax and Ay are the two components of the wave. Specifying called quasi-stationary states (QSS). These states occur, start- Ax and Ay is equivalent to specifying a phase and an intensity. ing from an out-of-equilibrium initial condition, after a O(1) δ is a parameter that accounts for the mismatch between the timescale but do not correspond to the equilibrium predictedby resonant frequency of the device and the energy of the particle, statistical mechanics. The lifetime of the QSS increases alge- it is commonly called the detuning parameter. braically with the number N of interacting particles in the sys- The time evolution of Eqs. (1) conserves the following tem. In the thermodynamic limit, the dynamics remains stuck quantities: the L1 norm in the QSS regime. The Vlasov equation for the HMF model reads || f ||1 = dθ dp f (θ, p; t) , (6) Z ∂ f ∂ f dV[ f ] ∂ f + p − = 0 , ∂t ∂θ dθ ∂p the total momentum V[ f ](θ) = 1 − mx[ f ]cos θ − my[ f ] sin θ, P(t)[ f ] = A2 + A2 + dθ dp f (θ, p; t) p , (7) x y Z mx[ f ] = dθdp f cos θ, Z 2 2 where Ax + Ay is the momentum of the wave, and the energy my[ f ] = dθdp f sin θ, (1) Z U where f = f (θ, p; t) is the one-particle distribution function, V p2 U(t)[ f ] = dθ dp f (θ, p; t) + 2 A cos θ + A sin θ . is the potential, depending self-consistently on f and m and m 2 y x x y Z ! are the two components of the magnetization vector. (8) The time evolution of Eqs. (1) conserves the following quantities: the L1 norm 2.3. Other models Other related models can be implemented easily in the code || f ||1 = dθ dp f (θ, p; t) , (2) by taking as an example the HMF model or the single-wave Z model files. the total momentum 3. Description of the vmf90 program P(t)[ f ] = dθ dp f (θ, p; t) p , (3) Z vmf90 is written in Fortran 90 and takes advantage of user- and the energy U defined types, dynamic memory allocation and modules. For- tran 90 provides, with respect to older revisions of the For- tran programming language, many improvements for the struc- U(t)[ f ] = dθ dp f (θ, p; t) Z tured coding of scientific programs. The reader is referred to p2 1 Refs. [19–21] for more information on this topic. In addition to + 1 − mx[ f ]cos θ − my[ f ] sin θ . (4) these ideas, vmf90 takes profit of revision control with the git 2 2 ! software [22] and extensive in-code documentation. These quantities are discussed in Ref. [7]. 2 3.1. General structure The program is under revision control with the git soft- At the core of the programlies the module“Vlasov module” ware [22]. The information on the status of the source code that provides the user-defined type (UDT) “grid” for phase- repository is included automatically during the build process space numerical grids. The “grid” UDT contains information of the software and is updated at each rebuild so that the exe- on: cutable program always reflect this status. The programs dis- play revision information: the commit reference (the SHA1) of 1. The number of grid points. the code as well as a status that is one of the following 2. The spatial and velocity limits of the grid. 3. Storage for: • Clean: the code corresponds to the displayed git commit reference. • The grid. • The position and velocity marginal distributions. • Unclean: the code is based on the displayed git commit • The second derivative required for the cubic spline reference but has been modified. interpolation. • Out of repository: the code has been extracted from a • The force to apply when evolving the velocities. tarball whose version is given, but is not tracked by git. 4. The periodic or finite character of the spatial dimension. In this manner, the results can be linked in a strict manner to 5. The time step to evolve the system.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    7 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us