Penning Trap Simulation
Simulate particle behavior inside a Penning Trap
Loading...
Searching...
No Matches
Particle.cpp
Go to the documentation of this file.
1
13#include "Particle.hpp"
14
15Particle::Particle(double q, double m,
16 vec_3d r_vec,
17 vec_3d v_vec)
18{
19 // Giving the particle its properties
20 this->q = q;
21 this->m = m;
22 this->r_vec = r_vec;
23 this->v_vec = v_vec;
24}
A class that holds the properties of a particle.
double q
Charge.
Definition: Particle.hpp:23
Particle(double q, double m, vec_3d r_vec, vec_3d v_vec)
Initialize the particle.
Definition: Particle.cpp:15
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
arma::vec::fixed< 3 > vec_3d
Typedef for a fixed 3d arma vector.
Definition: typedefs.hpp:36