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
15 Particle::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}
Particle.hpp
A class that holds the properties of a particle.
Particle::q
double q
Charge.
Definition: Particle.hpp:23
Particle::Particle
Particle(double q, double m, vec_3d r_vec, vec_3d v_vec)
Initialize the particle.
Definition: Particle.cpp:15
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
vec_3d
arma::vec::fixed< 3 > vec_3d
Typedef for a fixed 3d arma vector.
Definition: typedefs.hpp:36