MPI-AMRVAC 3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
mod_particles.t
Go to the documentation of this file.
1!> Module containing all the particle routines
8 use mod_comm_lib, only: mpistop
9
10 implicit none
11
12contains
13
14 !> Initialize particle data and parameters
15 subroutine particles_init()
17
20
21 select case(physics_type_particles)
22 case('advect')
23 call advect_init()
24 case('Lorentz')
25 call lorentz_init()
26 case('GCA')
27 call gca_init()
28 case('sample')
29 call sample_init()
30 case default
31 if (mype == 0) then
32 print *, "Unknown physics_type_particles", &
34 print *, "Options are: advect, Lorentz, GCA, sample"
35 call mpistop("Unknown physics_type_particles")
36 end if
37 end select
38
39 end subroutine particles_init
40
41 !> Create initial particles
42 subroutine particles_create()
44
45 select case(physics_type_particles)
46 case('advect')
48 case('Lorentz')
49 ! The Vay mover can use the same routine
51 case('GCA')
53 case('sample')
55 case default
56 if (mype == 0) then
57 print *, "Unknown physics_type_particles", &
59 print *, "Options are: advect, Lorentz, GCA, sample"
60 call mpistop("Unknown physics_type_particles")
61 end if
62 end select
63
64 end subroutine particles_create
65
66end module mod_particles
subroutine, public mpistop(message)
Exit MPI-AMRVAC with an error message.
This module contains definitions of global parameters and variables and some generic functions/subrou...
integer mype
The rank of the current MPI task.
Tracer for advected particles moving with fluid flows By Jannis Teunissen, Bart Ripperda,...
subroutine, public advect_init()
subroutine, public advect_create_particles()
Module with shared functionality for all the particle movers.
subroutine init_particles_com()
Initialize communicators for particles.
subroutine particle_base_init()
Give initial values to parameters.
character(len=name_len) physics_type_particles
String describing the particle physics type.
Particle mover with Newtonian/relativistic Guiding Center Approximation (GCA) By Jannis Teunissen,...
subroutine, public gca_init()
subroutine, public gca_create_particles()
Particle mover with Newtonian/relativistic Boris scheme for Lorentz dynamics By Jannis Teunissen,...
subroutine, public lorentz_init()
subroutine, public lorentz_create_particles()
Scattered sampling based on fixed- or moving-particle interpolation By Fabio Bacchini (2020)
subroutine, public sample_init()
subroutine, public sample_create_particles()
Module containing all the particle routines.
subroutine particles_init()
Initialize particle data and parameters.
subroutine particles_create()
Create initial particles.