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
21class Particle {
22private:
23 double q;
24 double m;
27
28public:
39 Particle(double q, double m, vec_3d r_vec, vec_3d v_vec);
40
43 friend class PenningTrap;
44};
45
46#endif
A class that holds attributes of a particle.
Definition: Particle.hpp:21
double q
Charge.
Definition: Particle.hpp:23
vec_3d v_vec
velocity
Definition: Particle.hpp:26
double m
Mass.
Definition: Particle.hpp:24
vec_3d r_vec
position
Definition: Particle.hpp:25
A class that simulates a Penning trap.
Definition: PenningTrap.hpp:30
Useful typedefs for cleaner code.
arma::vec::fixed< 3 > vec_3d
Typedef for a fixed 3d arma vector.
Definition: typedefs.hpp:36