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
(
vec3
r_vec,
vec3
v_vec,
double
q,
double
m)
16
{
17
// Giving the particle its properties
18
this->r_vec =
r_vec
;
19
this->v_vec =
v_vec
;
20
this->q =
q
;
21
this->m =
m
;
22
}
Particle.hpp
A class that holds the properties of a particle.
Particle::r_vec
vec3 r_vec
position
Definition:
Particle.hpp:25
Particle::v_vec
vec3 v_vec
velocity
Definition:
Particle.hpp:26
Particle::q
double q
Charge.
Definition:
Particle.hpp:27
Particle::m
double m
Mass.
Definition:
Particle.hpp:28
Particle::Particle
Particle(vec3 r_vec, vec3 v_vec, double q=CA_CHARGE, double m=CA_MASS)
Initialize the particle.
Definition:
Particle.cpp:15
vec3
arma::vec::fixed< 3 > vec3
Typedef for a fixed 3d arma vector.
Definition:
typedefs.hpp:23
src
Particle.cpp
Generated by
1.9.6