WarpX
Public Member Functions | List of all members
GetExternalBField Struct Reference

Functor that can be used to assign the external B field to a particle inside a ParallelFor kernel. More...

#include <GetExternalFields.H>

Inheritance diagram for GetExternalBField:
GetExternalField

Public Member Functions

 GetExternalBField ()=default
 
 GetExternalBField (const WarpXParIter &a_pti, int a_offset=0) noexcept
 
- Public Member Functions inherited from GetExternalField
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator() (long i, amrex::ParticleReal &field_x, amrex::ParticleReal &field_y, amrex::ParticleReal &field_z) const noexcept
 

Additional Inherited Members

- Public Attributes inherited from GetExternalField
ExternalFieldInitType m_type
 
amrex::GpuArray< amrex::ParticleReal, 3 > m_field_value
 
HostDeviceParser< 4 > m_xfield_partparser
 
HostDeviceParser< 4 > m_yfield_partparser
 
HostDeviceParser< 4 > m_zfield_partparser
 
GetParticlePosition m_get_position
 
amrex::Real m_time
 

Detailed Description

Functor that can be used to assign the external B field to a particle inside a ParallelFor kernel.

Constructor & Destructor Documentation

◆ GetExternalBField() [1/2]

GetExternalBField::GetExternalBField ( )
default

◆ GetExternalBField() [2/2]

GetExternalBField::GetExternalBField ( const WarpXParIter a_pti,
int  a_offset = 0 
)
noexcept

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