ImpactX
src
particles
diagnostics
DiagnosticOutput.H
Go to the documentation of this file.
1
/* Copyright 2022-2023 The Regents of the University of California, through Lawrence
2
* Berkeley National Laboratory (subject to receipt of any required
3
* approvals from the U.S. Dept. of Energy). All rights reserved.
4
*
5
* This file is part of ImpactX.
6
*
7
* Authors: Axel Huebl, Chad Mitchell
8
* License: BSD-3-Clause-LBNL
9
*/
10
#ifndef IMPACTX_DIAGNOSTIC_OUTPUT_H
11
#define IMPACTX_DIAGNOSTIC_OUTPUT_H
12
13
#include "
particles/ImpactXParticleContainer.H
"
14
15
#include <string>
16
17
18
namespace
impactx::diagnostics
19
{
22
enum class
OutputType
23
{
24
PrintParticles
,
25
PrintNonlinearLensInvariants
,
26
PrintRefParticle
,
27
PrintReducedBeamCharacteristics
28
};
29
42
void
DiagnosticOutput
(
ImpactXParticleContainer
const
& pc,
43
OutputType
const
otype,
44
std::string file_name,
45
int
const
step = 0,
46
bool
const
append =
false
);
47
48
}
// namespace impactx::diagnostics
49
50
#endif
// IMPACTX_DIAGNOSTIC_OUTPUT_H
ImpactXParticleContainer.H
impactx::ImpactXParticleContainer
Definition:
ImpactXParticleContainer.H:138
impactx::diagnostics
Definition:
DiagnosticOutput.cpp:24
impactx::diagnostics::DiagnosticOutput
void DiagnosticOutput(ImpactXParticleContainer const &pc, OutputType const otype, std::string file_name, int const step, bool const append)
Definition:
DiagnosticOutput.cpp:25
impactx::diagnostics::OutputType
OutputType
Definition:
DiagnosticOutput.H:23
impactx::diagnostics::OutputType::PrintRefParticle
@ PrintRefParticle
ASCII diagnostics, for small tests only.
impactx::diagnostics::OutputType::PrintParticles
@ PrintParticles
ASCII diagnostics, for small tests only.
impactx::diagnostics::OutputType::PrintNonlinearLensInvariants
@ PrintNonlinearLensInvariants
ASCII diagnostics for the IOTA nonlinear lens, for small tests only.
impactx::diagnostics::OutputType::PrintReducedBeamCharacteristics
@ PrintReducedBeamCharacteristics
ASCII diagnostics, for beam momenta and Twiss parameters.
Generated by
1.9.1