ImpactX
Public Types | Public Member Functions | Static Public Attributes | List of all members
impactx::None Struct Reference

#include <None.H>

Public Types

using PType = ImpactXParticleContainer::ParticleType
 

Public Member Functions

 None ()
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator() ([[maybe_unused]] PType &AMREX_RESTRICT p, [[maybe_unused]] amrex::ParticleReal &AMREX_RESTRICT px, [[maybe_unused]] amrex::ParticleReal &AMREX_RESTRICT py, [[maybe_unused]] amrex::ParticleReal &AMREX_RESTRICT pt, [[maybe_unused]] RefPart const &refpart) const
 
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
 

Static Public Attributes

static constexpr auto name = "None"
 

Member Typedef Documentation

◆ PType

Constructor & Destructor Documentation

◆ None()

impactx::None::None ( )
inline

This element does nothing.

Member Function Documentation

◆ ds()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal impactx::None::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::None::nslice ( ) const
inline

Number of slices used for the application of space charge

Returns
one, because this is a zero-length element

◆ operator()() [1/2]

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void impactx::None::operator() ( [[maybe_unused] ] PType &AMREX_RESTRICT  p,
[[maybe_unused] ] amrex::ParticleReal &AMREX_RESTRICT  px,
[[maybe_unused] ] amrex::ParticleReal &AMREX_RESTRICT  py,
[[maybe_unused] ] amrex::ParticleReal &AMREX_RESTRICT  pt,
[[maybe_unused] ] RefPart const &  refpart 
) const
inline

Does nothing to a particle.

Parameters
pParticle AoS data for positions and cpu/id
pxparticle momentum in x
pyparticle momentum in y
ptparticle momentum in t
refpartreference particle

◆ operator()() [2/2]

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

This pushes the reference particle.

Parameters
[in,out]refpartreference particle

Member Data Documentation

◆ name

constexpr auto impactx::None::name = "None"
static

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