Go to the source code of this file.
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | ApplyExternalField (const amrex::ParticleReal xp, const amrex::ParticleReal yp, const amrex::ParticleReal zp, const amrex::ParticleReal time, const amrex::ParticleReal clight, amrex::ParticleReal &ExmByp, amrex::ParticleReal &EypBxp, amrex::ParticleReal &Ezp, amrex::ParticleReal &Bxp, amrex::ParticleReal &Byp, amrex::ParticleReal &Bzp, amrex::GpuArray< amrex::ParserExecutor< 4 >, 6 > external_fields) |
| add axisymmetric linear focusing field on particles and linear accelerating field. Typically called right after the field gather. More...
|
|
◆ ApplyExternalField()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void ApplyExternalField |
( |
const amrex::ParticleReal |
xp, |
|
|
const amrex::ParticleReal |
yp, |
|
|
const amrex::ParticleReal |
zp, |
|
|
const amrex::ParticleReal |
time, |
|
|
const amrex::ParticleReal |
clight, |
|
|
amrex::ParticleReal & |
ExmByp, |
|
|
amrex::ParticleReal & |
EypBxp, |
|
|
amrex::ParticleReal & |
Ezp, |
|
|
amrex::ParticleReal & |
Bxp, |
|
|
amrex::ParticleReal & |
Byp, |
|
|
amrex::ParticleReal & |
Bzp, |
|
|
amrex::GpuArray< amrex::ParserExecutor< 4 >, 6 > |
external_fields |
|
) |
| |
add axisymmetric linear focusing field on particles and linear accelerating field. Typically called right after the field gather.
- Parameters
-
[in] | xp | particle position x |
[in] | yp | particle position y |
[in] | zp | particle position x |
[in] | time | time of the current step |
[in] | clight | speed of light |
[in,out] | ExmByp | Ex-By Field on particle |
[in,out] | EypBxp | Ey+Bx Field on particle |
[in,out] | Ezp | Electric field on particle, z component |
[in,out] | Bxp | Magnetic field on particle, x component |
[in,out] | Byp | Magnetic field on particle, y component |
[in,out] | Bzp | Magnetic field on particle, z component |
[in] | external_fields | External field functions for Ex Ey Ez Bx By Bz |