ImpactX
|
Namespaces | |
detail | |
Classes | |
struct | NonlinearLensInvariants |
struct | BeamMonitor |
Enumerations | |
enum class | OutputType { PrintNonlinearLensInvariants , PrintRefParticle , PrintReducedBeamCharacteristics } |
Functions | |
void | DiagnosticOutput (ImpactXParticleContainer const &pc, OutputType const otype, std::string file_name, int step, bool append) |
std::unordered_map< std::string, amrex::ParticleReal > | reduced_beam_characteristics (ImpactXParticleContainer const &pc) |
|
strong |
void impactx::diagnostics::DiagnosticOutput | ( | ImpactXParticleContainer const & | pc, |
OutputType | otype, | ||
std::string | file_name, | ||
int | step = 0 , |
||
bool | append = false |
||
) |
ASCII output diagnostics associated with the beam.
This temporary implementation uses ASCII output. It is intended only for small tests where IO performance is not a concern. The implementation here serializes IO.
pc | container of the particles use for diagnostics |
otype | the type of output to produce |
file_name | the file name to write to |
step | the global step |
append | open a new file with a fresh header (false) or append data to an existing file (true) |
std::unordered_map< std::string, amrex::ParticleReal > impactx::diagnostics::reduced_beam_characteristics | ( | ImpactXParticleContainer const & | pc | ) |
Compute momenta of the beam distribution