ImpactX
Public Member Functions | List of all members
impactx::elements::Thin Struct Reference

#include <thin.H>

Inheritance diagram for impactx::elements::Thin:
impactx::DipEdge impactx::Multipole impactx::None impactx::NonlinearLens impactx::PRot impactx::ShortRF impactx::diagnostics::BeamMonitor

Public Member Functions

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator() ([[maybe_unused]] RefPart &AMREX_RESTRICT refpart) const
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int nslice () const
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal ds () const
 

Detailed Description

This is a helper class for lattice elements with zero length

Member Function Documentation

◆ ds()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal impactx::elements::Thin::ds ( ) const
inline

Return the segment length

Returns
zero, because this is a zero-length element

◆ nslice()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int impactx::elements::Thin::nslice ( ) const
inline

Number of slices used for the application of space charge

Returns
one, because this is a zero-length element

◆ operator()()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void impactx::elements::Thin::operator() ( [[maybe_unused] ] RefPart &AMREX_RESTRICT  refpart) const
inline

This pushes the reference particle.

Parameters
[in,out]refpartreference particle

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