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
19class Particle {
20private:
21 double q;
22 double m;
23 arma::vec::fixed<3> r_vec;
24 arma::vec::fixed<3> v_vec;
25
26public:
32 Particle(double q, double m,
33 arma::vec::fixed<3> r_vec,
34 arma::vec::fixed<3> v_vec);
35
38 friend class PenningTrap;
39};
40
41#endif
A class that holds attributes of a particle.
Definition: Particle.hpp:19
arma::vec::fixed< 3 > v_vec
velocity
Definition: Particle.hpp:24
double q
Charge.
Definition: Particle.hpp:21
arma::vec::fixed< 3 > r_vec
position
Definition: Particle.hpp:23
double m
Mass.
Definition: Particle.hpp:22
A class that simulates a Penning trap.
Definition: PenningTrap.hpp:25