ImpactX
Loading...
Searching...
No Matches
impactx::elements::transformation Namespace Reference

Functions

std::list< elements::KnownElementsinsert_element_every_ds (std::list< elements::KnownElements > list, amrex::ParticleReal ds, elements::KnownElements element)
 

Function Documentation

◆ insert_element_every_ds()

std::list< elements::KnownElements > impactx::elements::transformation::insert_element_every_ds ( std::list< elements::KnownElements > list,
amrex::ParticleReal ds,
elements::KnownElements element )

Insert an element every s into an element list

Splits up every element that is on s = N * ds for N>0.

Parameters
[in]listelement lattice list
[in]dsspacing in meters along s to add an element
[in]elementthe extra element to add every s
Returns
modified list with inserted elements