WarpX
Public Member Functions | Public Attributes | List of all members
HardEdgedQuadrupole Struct Reference

#include <HardEdgedQuadrupole.H>

Inheritance diagram for HardEdgedQuadrupole:
LatticeElementBase

Public Member Functions

 HardEdgedQuadrupole ()
 
void AddElement (amrex::ParmParse &pp_element, amrex::ParticleReal &z_location)
 Read in an element and add it to the lists. More...
 
void WriteToDevice ()
 Write the element information to the device. More...
 
HardEdgedQuadrupoleDevice GetDeviceInstance () const
 Returns the device level instance with the lattice information. More...
 
- Public Member Functions inherited from LatticeElementBase
 LatticeElementBase (std::string const &element_name)
 LatticeElementBase constructor This gets the input z extent of the element and check for its correctness. More...
 
void AddElementBase (amrex::ParmParse &pp_element, amrex::ParticleReal &z_location)
 Read in an element base data and add it to the lists. More...
 
void WriteToDeviceBase ()
 Write the base element information to the device. More...
 

Public Attributes

std::vector< amrex::ParticleReal > h_dEdx
 
std::vector< amrex::ParticleReal > h_dBdx
 
amrex::Gpu::DeviceVector< amrex::ParticleReal > d_dEdx
 
amrex::Gpu::DeviceVector< amrex::ParticleReal > d_dBdx
 
- Public Attributes inherited from LatticeElementBase
std::string m_element_name
 
int nelements = 0
 
std::vector< amrex::ParticleReal > h_zs
 
std::vector< amrex::ParticleReal > h_ze
 
amrex::Gpu::DeviceVector< amrex::ParticleReal > d_zs
 
amrex::Gpu::DeviceVector< amrex::ParticleReal > d_ze
 

Constructor & Destructor Documentation

◆ HardEdgedQuadrupole()

HardEdgedQuadrupole::HardEdgedQuadrupole ( )

Member Function Documentation

◆ AddElement()

void HardEdgedQuadrupole::AddElement ( amrex::ParmParse pp_element,
amrex::ParticleReal &  z_location 
)

Read in an element and add it to the lists.

Parameters
[in]pp_elementThe ParmParse instance to read in the data
[in,out]z_locationThe current z location in the lattice

◆ GetDeviceInstance()

HardEdgedQuadrupoleDevice HardEdgedQuadrupole::GetDeviceInstance ( ) const

Returns the device level instance with the lattice information.

◆ WriteToDevice()

void HardEdgedQuadrupole::WriteToDevice ( )

Write the element information to the device.

Member Data Documentation

◆ d_dBdx

amrex::Gpu::DeviceVector<amrex::ParticleReal> HardEdgedQuadrupole::d_dBdx

◆ d_dEdx

amrex::Gpu::DeviceVector<amrex::ParticleReal> HardEdgedQuadrupole::d_dEdx

◆ h_dBdx

std::vector<amrex::ParticleReal> HardEdgedQuadrupole::h_dBdx

◆ h_dEdx

std::vector<amrex::ParticleReal> HardEdgedQuadrupole::h_dEdx

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