#include <Source.H>
◆ PType
◆ Source()
| impactx::elements::Source::Source |
( |
std::string | distribution, |
|
|
std::string | openpmd_path, |
|
|
bool | active_once = true, |
|
|
std::optional< std::string > | name = std::nullopt ) |
|
inline |
A particle source
- Parameters
-
| distribution | Must read "openPMD" for this constructor |
| openpmd_path | path to openPMD series as accepted by openPMD::Series |
| active_once | inject particles only for the first lattice period |
| name | a user defined and not necessarily unique name of the element |
◆ operator()()
Initialize/Load particles.
Particles are relative to the reference particle.
- Parameters
-
| [in,out] | pc | particle container to push |
| [in] | step | global step for diagnostics |
| [in] | period | for periodic lattices, this is the current period (turn or cycle) |
◆ reverse()
| void impactx::elements::Source::reverse |
( |
| ) |
|
|
inline |
Reverse the element (not supported for Source)
◆ transport_map()
This function returns the linear transport map.
- Parameters
-
| [in] | refpart | reference particle |
- Returns
- 6x6 transport matrix
◆ m_active_once
| bool impactx::elements::Source::m_active_once = true |
◆ m_distribution
| std::string impactx::elements::Source::m_distribution |
◆ m_series_name
| std::string impactx::elements::Source::m_series_name |
Distribution type of particles in the source.
◆ type
| auto impactx::elements::Source::type = "Source" |
|
staticconstexpr |
The documentation for this struct was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/1402/src/elements/Source.H
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/1402/src/elements/Source.cpp