|
WarpX
|
#include "Utils/WarpXConst.H"#include "AMReX_Extension.H"#include "AMReX_GpuQualifiers.H"#include "AMReX_REAL.H"#include <cmath>Go to the source code of this file.
Namespaces | |
| Algorithms | |
Functions | |
| AMREX_GPU_HOST_DEVICE AMREX_INLINE amrex::ParticleReal | Algorithms::KineticEnergy (const amrex::ParticleReal ux, const amrex::ParticleReal uy, const amrex::ParticleReal uz, const amrex::ParticleReal mass) |
| Computes the kinetic energy of a particle. Below a threshold for the Lorentz factor (gamma_relativistic_threshold) it uses a Taylor expansion instead of the full relativistic expression. This method should not be used with photons. More... | |
| AMREX_GPU_HOST_DEVICE AMREX_INLINE amrex::ParticleReal | Algorithms::KineticEnergyPhotons (const amrex::ParticleReal ux, const amrex::ParticleReal uy, const amrex::ParticleReal uz) |
| Computes the kinetic energy of a photon. More... | |
Variables | |
| static constexpr auto | Algorithms::gamma_relativistic_threshold |
1.8.13