Penning Trap Simulation Simulate particle behavior inside a Penning Trap

Loading...
Searching...
No Matches
Particle.hpp
Go to the documentation of this file.
1
12#ifndef __PARTICLE__
13#define __PARTICLE__
14
15#include <armadillo>
16
17#include "typedefs.hpp"
18
21 class Particle {
22 private:
23 double q;
24 double m;
25 vec_3d r_vec;
26 vec_3d v_vec;
27
28 public:
39 Particle(double q, double m, vec_3d r_vec, vec_3d v_vec);
40
43 friend class PenningTrap;
44};
45
46#endif
Particle
A class that holds attributes of a particle.
Definition: Particle.hpp:21
Particle::q
double q
Charge.
Definition: Particle.hpp:23
Particle::v_vec
vec_3d v_vec
velocity
Definition: Particle.hpp:26
Particle::m
double m
Mass.
Definition: Particle.hpp:24
Particle::r_vec
vec_3d r_vec
position
Definition: Particle.hpp:25
PenningTrap
A class that simulates a Penning trap.
Definition: PenningTrap.hpp:31
typedefs.hpp
Useful typedefs for cleaner code.
vec_3d
arma::vec::fixed< 3 > vec_3d
Typedef for a fixed 3d arma vector.
Definition: typedefs.hpp:36