10#ifndef IMPACTX_SOURCE_H
11#define IMPACTX_SOURCE_H
31 static constexpr auto type =
"Source";
42 std::string openpmd_path,
43 std::optional<std::string>
name = std::nullopt
50 throw std::runtime_error(
"Only 'openPMD' distribution is supported if openpmd_path is provided!");
64 [[maybe_unused]]
int step,
65 [[maybe_unused]]
int period
82 using Thin::operator();
85 using LinearTransport::operator();
#define AMREX_FORCE_INLINE
T_ParticleType ParticleType
Definition ImpactXParticleContainer.H:133
amrex::SmallMatrix< amrex::ParticleReal, 6, 6, amrex::Order::F, 1 > Map6x6
Definition CovarianceMatrix.H:20
static constexpr __host__ __device__ SmallMatrix< T, NRows, NCols, ORDER, StartIndex > Identity() noexcept
Definition ReferenceParticle.H:31
Source(std::string distribution, std::string openpmd_path, std::optional< std::string > name=std::nullopt)
Definition Source.H:40
void operator()(ImpactXParticleContainer &pc, int step, int period)
Definition Source.cpp:26
std::string m_distribution
Definition Source.H:87
static constexpr auto type
Definition Source.H:31
AMREX_GPU_HOST AMREX_FORCE_INLINE Map6x6 transport_map(RefPart const &AMREX_RESTRICT refpart) const
Definition Source.H:75
std::string m_series_name
Distribution type of particles in the source.
Definition Source.H:88
ImpactXParticleContainer::ParticleType PType
Definition Source.H:32
Definition lineartransport.H:29
AMREX_GPU_HOST Named(std::optional< std::string > name)
Definition named.H:57
AMREX_FORCE_INLINE std::string name() const
Definition named.H:122
Definition nofinalize.H:22