WarpX
Loading...
Searching...
No Matches
HardEdgedPlasmaLensDevice Struct Reference

#include <HardEdgedPlasmaLens.H>

Public Member Functions

void InitHardEdgedPlasmaLensDevice (HardEdgedPlasmaLens const &h_plasmalens)
 Initializes the data and pointer needed to reference the lattice element info.
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void get_field (const int ielement, const amrex::ParticleReal x, const amrex::ParticleReal y, const amrex::ParticleReal z, const amrex::ParticleReal zpvdt, amrex::ParticleReal &Ex, amrex::ParticleReal &Ey, amrex::ParticleReal &Bx, amrex::ParticleReal &By) const
 Fetch the field of the specified element at the given location.
 

Public Attributes

int nelements = 0
 
const amrex::ParticleReal *AMREX_RESTRICT d_zs_arr
 
const amrex::ParticleReal *AMREX_RESTRICT d_ze_arr
 
const amrex::ParticleReal *AMREX_RESTRICT d_dEdx_arr
 
const amrex::ParticleReal *AMREX_RESTRICT d_dBdx_arr
 

Member Function Documentation

◆ get_field()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void HardEdgedPlasmaLensDevice::get_field ( const int ielement,
const amrex::ParticleReal x,
const amrex::ParticleReal y,
const amrex::ParticleReal z,
const amrex::ParticleReal zpvdt,
amrex::ParticleReal & Ex,
amrex::ParticleReal & Ey,
amrex::ParticleReal & Bx,
amrex::ParticleReal & By ) const
inline

Fetch the field of the specified element at the given location.

Parameters
[in]ielementthe element number
[in]x,y,zthe particle position in the lab frame
[in]zpvdtthe estimated next particle z position, z + v*dt
[out]Ex,Ey,Bx,Bythe fetched field in the lab frame

◆ InitHardEdgedPlasmaLensDevice()

void HardEdgedPlasmaLensDevice::InitHardEdgedPlasmaLensDevice ( HardEdgedPlasmaLens const & h_plasmalens)

Initializes the data and pointer needed to reference the lattice element info.

Parameters
[in]h_plasmalenshost level instance that this is associated with

Member Data Documentation

◆ d_dBdx_arr

const amrex::ParticleReal* AMREX_RESTRICT HardEdgedPlasmaLensDevice::d_dBdx_arr

◆ d_dEdx_arr

const amrex::ParticleReal* AMREX_RESTRICT HardEdgedPlasmaLensDevice::d_dEdx_arr

◆ d_ze_arr

const amrex::ParticleReal* AMREX_RESTRICT HardEdgedPlasmaLensDevice::d_ze_arr

◆ d_zs_arr

const amrex::ParticleReal* AMREX_RESTRICT HardEdgedPlasmaLensDevice::d_zs_arr

◆ nelements

int HardEdgedPlasmaLensDevice::nelements = 0

The documentation for this struct was generated from the following files: