OPALX (Object Oriented Parallel Accelerator Library for Exascal)
master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
AbstractObjects/OpalParticle.cpp
Go to the documentation of this file.
1
//
2
// Class OpalParticle
3
// This class represents the canonical coordinates of a particle.
4
//
5
// Copyright (c) 2008 - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
6
// All rights reserved
7
//
8
// This file is part of OPAL.
9
//
10
// OPAL is free software: you can redistribute it and/or modify
11
// it under the terms of the GNU General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17
//
18
#include "
AbstractObjects/OpalParticle.h
"
19
20
OpalParticle::OpalParticle
() {}
21
22
OpalParticle::OpalParticle
(
23
int64_t
id
,
double
x,
double
px,
double
y,
double
py,
double
z,
double
pz,
double
t,
24
double
q,
double
m)
25
: id_m(id), R_m(x, y, z), P_m(px, py, pz), time_m(t), charge_m(q), mass_m(m) {}
26
27
OpalParticle::OpalParticle
(
28
int64_t
id
,
Vector_t<double, 3>
const
& R,
Vector_t<double, 3>
const
& P,
double
t,
double
q,
29
double
m)
30
: id_m(id), R_m(R), P_m(P), time_m(t), charge_m(q), mass_m(m) {}
OpalParticle.h
Vector_t
ippl::Vector< T, Dim > Vector_t
Definition
DistributionMoments.h:31
OpalParticle::OpalParticle
OpalParticle()
Definition
AbstractObjects/OpalParticle.cpp:20
src
AbstractObjects
OpalParticle.cpp
Generated on Mon Jun 1 2026 10:40:52 for OPALX (Object Oriented Parallel Accelerator Library for Exascal) by
1.9.8