#include <Source.H>
|
| static constexpr auto | type = "Source" |
| |
◆ PType
◆ Source()
| impactx::elements::Source::Source |
( |
std::string | distribution, |
|
|
std::string | openpmd_path, |
|
|
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 |
| 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) |
◆ transport_map()
This function returns the linear transport map.
- Parameters
-
| [in] | refpart | reference particle |
- Returns
- 6x6 transport matrix
◆ 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/1182/src/elements/Source.H
- /home/docs/checkouts/readthedocs.org/user_builds/impactx/checkouts/1182/src/elements/Source.cpp