#include "t_coeff_mod_macro.h"
|
subroutine | efield (grid, psn, sp, i, fld, time) |
| High level routine to valuate the electric field, potential and 3D perturbed magnetic field for at a particle's position. More...
|
|
subroutine | efield_gk (grid, psn, sp, i, fld, itr, p) |
| Low level routine to valuate the electric field, potential and 3D perturbed magnetic field for at a particle's position. This routine performs the actual interpolation. More...
|
|
subroutine | efield_init (grid, psn) |
| Initialization of the electric field. Simply calls the gradient operation on the potential. More...
|
|
subroutine | ptb_bfield_gk (grid, psn, sp, i, fld, itr, p, search_ptl) |
| Low level routine to evaluate the perturbed magnetic field, at a particle's position. This routine performs the actual interpolation. More...
|
|
◆ efield()
subroutine efield |
( |
type(grid_type), intent(in) |
grid, |
|
|
type(psn_type), intent(in) |
psn, |
|
|
type(species_type), intent(in) |
sp, |
|
|
integer, intent(in) |
i, |
|
|
type(fld_type), intent(inout) |
fld, |
|
|
real (kind=8), intent(in) |
time |
|
) |
| |
High level routine to valuate the electric field, potential and 3D perturbed magnetic field for at a particle's position.
- Parameters
-
[in] | grid | Grid data, type(grid_type) |
[in] | psn | Field date, type(psn_type) |
[in] | sp | Particle data, type(species_type) |
[in] | i | Particle index in sp object, (integer) |
[in,out] | fld | Field data at the particle position, type(fld_type) |
[in] | time | Simulation time (not used!), (real(8)) |
◆ efield_gk()
subroutine efield_gk |
( |
type(grid_type), intent(in) |
grid, |
|
|
type(psn_type), intent(in) |
psn, |
|
|
type(species_type), intent(in) |
sp, |
|
|
integer, intent(in) |
i, |
|
|
type(fld_type), intent(inout) |
fld, |
|
|
integer, intent(in) |
itr, |
|
|
real (kind=8), dimension(3), intent(in) |
p |
|
) |
| |
Low level routine to valuate the electric field, potential and 3D perturbed magnetic field for at a particle's position. This routine performs the actual interpolation.
- Parameters
-
[in] | grid | Grid data, type(grid_type) |
[in] | psn | Field data on grid, type(psn_type) |
[in] | sp | Particle data, type(species_type) |
[in] | i | Particle index in particle data, (integer) |
[in,out] | fld | Field data at particle position, type(fld_type) |
[in] | itr | Index of triangle corresponding to particle position, (integer) |
[in] | p | Interpolation weights for triangle vertices, (real(8)) |
◆ efield_init()
subroutine efield_init |
( |
type(grid_type), intent(in) |
grid, |
|
|
type(psn_type), intent(inout) |
psn |
|
) |
| |
Initialization of the electric field. Simply calls the gradient operation on the potential.
- Parameters
-
[in] | grid | Grid data, type(grid_type) |
[in,out] | psn | Field data on the grid, type(psn_type) |
◆ ptb_bfield_gk()
subroutine ptb_bfield_gk |
( |
type(grid_type), intent(in) |
grid, |
|
|
type(psn_type), intent(in) |
psn, |
|
|
type(species_type), intent(in) |
sp, |
|
|
integer, intent(in) |
i, |
|
|
type(fld_type), intent(inout) |
fld, |
|
|
integer, intent(in) |
itr, |
|
|
real (kind=8), dimension(3), intent(in) |
p, |
|
|
logical, intent(in) |
search_ptl |
|
) |
| |
Low level routine to evaluate the perturbed magnetic field, at a particle's position. This routine performs the actual interpolation.
- Parameters
-
[in] | grid | Grid data, type(grid_type) |
[in] | psn | Field data on grid, type(psn_type) |
[in] | sp | Particle data, type(species_type) |
[in] | i | Particle index in particle data, (integer) |
[in,out] | fld | Field data at particle position, type(fld_type) |
[in] | itr | Triangle in which the particle is located (known >0, search -1 or 0, out of mesh <-1), integer |
[in] | p | Barycentric coordinates in trianble itr, real(8) |
[in] | search_ptl | Whether particle search is needed or not, logical |