ImpactX
Public Member Functions | List of all members
impactx::elements::BeamOptic< T_Element > Struct Template Reference

#include <beamoptic.H>

Public Member Functions

void operator() (ImpactXParticleContainer::iterator &pti, RefPart &AMREX_RESTRICT ref_part)
 

Detailed Description

template<typename T_Element>
struct impactx::elements::BeamOptic< T_Element >

Mixin class for a regular beam optics lattice element.

This element pushes particles relative to a reference particle. All particles are pushed independently with the same logic.

Member Function Documentation

◆ operator()()

template<typename T_Element>
void impactx::elements::BeamOptic< T_Element >::operator() ( ImpactXParticleContainer::iterator pti,
RefPart &AMREX_RESTRICT  ref_part 
)
inline

This pushes the particles on a particle iterator tile or box.

Particles are relative to the reference particle.

Parameters
[in]ptiparticle iterator for a current tile or box.
[in]ref_partreference particle

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