WarpX
Namespaces | Functions
KineticEnergy.H File Reference
#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. 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...