ImpactX
Toggle main menu visibility
Loading...
Searching...
No Matches
src
particles
distribution
Empty.H
Go to the documentation of this file.
1
/* Copyright 2022-2026 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: Chad Mitchell, Axel Huebl
8
* License: BSD-3-Clause-LBNL
9
*/
10
#ifndef IMPACTX_DISTRIBUTION_EMPTY_H
11
#define IMPACTX_DISTRIBUTION_EMPTY_H
12
13
#include "
particles/ReferenceParticle.H
"
14
15
#include <
AMReX_Random.H
>
16
#include <
AMReX_REAL.H
>
17
18
19
namespace
impactx::distribution
20
{
21
struct
Empty
22
{
25
Empty
()
26
{
27
}
28
36
void
initialize
([[maybe_unused]]
amrex::ParticleReal
bunch_charge, [[maybe_unused]]
RefPart
const
& ref)
37
{
38
}
39
44
void
45
finalize
()
46
{
47
}
48
61
AMREX_GPU_HOST_DEVICE
AMREX_FORCE_INLINE
62
void
operator()
(
63
amrex::ParticleReal
& x,
64
amrex::ParticleReal
& y,
65
amrex::ParticleReal
&
t
,
66
amrex::ParticleReal
& px,
67
amrex::ParticleReal
& py,
68
amrex::ParticleReal
& pt,
69
[[maybe_unused]]
amrex::RandomEngine
const
& engine)
const
70
{
71
using namespace
amrex::literals
;
72
73
x = 0_prt;
74
y = 0_prt;
75
t
= 0_prt;
76
px = 0_prt;
77
py = 0_prt;
78
pt = 0_prt;
79
}
80
};
81
82
}
// namespace impactx::distribution
83
84
#endif
// IMPACTX_DISTRIBUTION_EMPTY_H
AMREX_FORCE_INLINE
#define AMREX_FORCE_INLINE
AMREX_GPU_HOST_DEVICE
#define AMREX_GPU_HOST_DEVICE
AMReX_REAL.H
AMReX_Random.H
ReferenceParticle.H
amrex::ParticleReal
amrex_particle_real ParticleReal
amrex::literals
impactx::distribution
Definition
All.H:28
impactx::CoordSystem::t
@ t
fixed t as the independent variable
Definition
ImpactXParticleContainer.H:38
amrex::RandomEngine
impactx::RefPart
Definition
ReferenceParticle.H:33
impactx::distribution::Empty::finalize
void finalize()
Definition
Empty.H:45
impactx::distribution::Empty::Empty
Empty()
Definition
Empty.H:25
impactx::distribution::Empty::initialize
void initialize(amrex::ParticleReal bunch_charge, RefPart const &ref)
Definition
Empty.H:36
impactx::distribution::Empty::operator()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator()(amrex::ParticleReal &x, amrex::ParticleReal &y, amrex::ParticleReal &t, amrex::ParticleReal &px, amrex::ParticleReal &py, amrex::ParticleReal &pt, amrex::RandomEngine const &engine) const
Definition
Empty.H:62
Generated by
1.17.0