WarpX
Loading...
Searching...
No Matches
KineticEnergy.H File Reference
#include "Utils/WarpXConst.H"
#include "AMReX_Extension.H"
#include "AMReX_GpuQualifiers.H"
#include "AMReX_Math.H"
#include "AMReX_REAL.H"
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  Algorithms
 

Functions

template<typename T = amrex::ParticleReal>
AMREX_GPU_HOST_DEVICE AMREX_INLINEAlgorithms::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.
 
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.