diff --git a/docs/PenningTrap_8cpp_source.html b/docs/PenningTrap_8cpp_source.html
index e974bfc..7a2c773 100644
--- a/docs/PenningTrap_8cpp_source.html
+++ b/docs/PenningTrap_8cpp_source.html
@@ -109,147 +109,147 @@ $(document).ready(function(){initNavTree('PenningTrap_8cpp_source.html',''); ini
-
+
-
-
-
-
-
-
-
-
-
-
- 32 for (
size_t j = 0; j < i; j++) {
-
-
- 35 vec3(
vec3().randn() * .1 * this->d)));
+
+
+ 24 return .5 * dt * this->
k_v[0][j];
+
+ 26 return .5 * dt * this->k_v[1][j];
+
+ 28 return dt * this->k_v[2][j];
+
+
+ 31 * (this->k_v[0][j] + 2. * this->k_v[1][j]
+ 32 + 2. * this->k_v[2][j] + this->k_v[3][j]));
+
+ 34 std::cout <<
"Not valid!" << std::endl;
+
-
- 40 double V_0,
double d,
double t)
-
-
-
-
-
-
-
-
- 49 return 1 + f * std::cos(omega_V *
t);
-
-
-
-
-
-
-
+
+
+
+
+ 43 return .5 * dt * this->
k_r[0][j];
+
+ 45 return .5 * dt * this->k_r[1][j];
+
+ 47 return dt * this->k_r[2][j];
+
+
+ 50 * (this->k_r[0][j] + 2. * this->k_r[1][j]
+ 51 + 2. * this->k_r[2][j] + this->k_r[3][j]));
+
+ 53 std::cout <<
"Not valid!" << std::endl;
+
+
+
- 58 for (
size_t i = 0; i < this->
particles.size(); i++) {
-
-
-
-
-
-
-
-
- 67 return .5 * dt * this->
k_v[0][j];
-
- 69 return .5 * dt * this->k_v[1][j];
-
- 71 return dt * this->k_v[2][j];
-
-
- 74 * (this->k_v[0][j] + 2. * this->k_v[1][j]
- 75 + 2. * this->k_v[2][j] + this->k_v[3][j]));
-
- 77 std::cout <<
"Not valid!" << std::endl;
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 77 double norm = arma::norm(res, 2);
+
+ 79 return vec3((this->
particles[j].q / (norm * norm * norm)) * res);
-
+
-
-
- 86 return .5 * dt * this->
k_r[0][j];
-
- 88 return .5 * dt * this->k_r[1][j];
-
- 90 return dt * this->k_r[2][j];
-
-
- 93 * (this->k_r[0][j] + 2. * this->k_r[1][j]
- 94 + 2. * this->k_r[2][j] + this->k_r[3][j]));
-
- 96 std::cout <<
"Not valid!" << std::endl;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 116 return vec3{0., 0., this->
B_0};
-
-
-
-
-
-
+
+
+ 86 if (arma::norm(p->
r_vec) > this->d) {
+ 87 return vec3{0., 0., 0.};
+
+
+
+ 91 * (this->external_E_field(p->
r_vec)
+ 92 + arma::cross(p->
v_vec, this->external_B_field(p->
r_vec))));
+
+
+
+
+
+
+ 99 for (
size_t j = 0; j < this->
particles.size(); j++) {
+
+
+
+
+
+
+
+
+
+ 109 if (arma::norm(this->
particles[i].r_vec) > this->
d) {
+ 110 return vec3{0., 0., 0.};
+
+
+
+
+
+
+
+
+
+
+
+
-
- 125 double norm = arma::norm(res, 2);
-
- 127 return vec3((this->
particles[j].q / (norm * norm * norm)) * res);
-
-
-
-
-
+
+
+
+ 127 for (
size_t j = 0; j < i; j++) {
+
+
+ 130 vec3(
vec3().randn() * .1 * this->d)));
+
+
- 134 if (arma::norm(p->
r_vec) > this->d) {
- 135 return vec3{0., 0., 0.};
-
-
-
- 139 * (this->external_E_field(p->
r_vec)
- 140 + arma::cross(p->
v_vec, this->external_B_field(p->
r_vec))));
-
-
-
-
-
-
- 147 for (
size_t j = 0; j < this->
particles.size(); j++) {
-
-
-
-
-
-
-
-
-
- 157 if (arma::norm(this->
particles[i].r_vec) > this->
d) {
- 158 return vec3{0., 0., 0.};
-
-
+
+ 135 double V_0,
double d,
double t)
+
+
+
+
+
+
+
+
+ 144 return 1 + f * std::cos(omega_V *
t);
+
+
+
+
+
+
+
+
+ 153 for (
size_t i = 0; i < this->
particles.size(); i++) {
+
+
+
+
+
+
+
@@ -424,31 +424,31 @@ $(document).ready(function(){initNavTree('PenningTrap_8cpp_source.html',''); ini
A class that simulates a Penning trap.
-std::vector< Particle > particles
The particles in the Penning trap.
-double B_0
Magnetic field strength.
-vec3 total_force_external(uint i)
Calculate the total external force on a particle.
-
-vec3 total_force_particles(uint i)
Calculate the total force on a particle p_i from other particles.
-vec3 external_B_field(vec3 r)
Calculate B at point r.
+std::vector< Particle > particles
The particles in the Penning trap.
+double B_0
Magnetic field strength.
+vec3 total_force_external(uint i)
Calculate the total external force on a particle.
+sim_arr k_r
A 2D vector containing all where is the index of a particle.
+vec3 total_force_particles(uint i)
Calculate the total force on a particle p_i from other particles.
+vec3 external_B_field(vec3 r)
Calculate B at point r.
void evolve_RK4(double dt, bool particle_interaction=true)
Go forward one timestep using the RK4 method.
-vec3 v_func(uint i, uint j, double dt)
Helper for evolve_RK4 when calculating values.
-vec3 external_E_field(vec3 r)
Calculate E at point r.
-PenningTrap(double B_0=T, double V_0=(25. *V)/1000., double d=500., double t=0.)
Constructor for the PenningTrap class.
-double d
Characteristic dimension.
-void add_particle(Particle particle)
Add a particle to the system.
-double V_0
Applied potential.
+vec3 v_func(uint i, uint j, double dt)
Helper for evolve_RK4 when calculating values.
+vec3 external_E_field(vec3 r)
Calculate E at point r.
+PenningTrap(double B_0=T, double V_0=(25. *V)/1000., double d=500., double t=0.)
Constructor for the PenningTrap class.
+double d
Characteristic dimension.
+void add_particle(Particle particle)
Add a particle to the system.
+double V_0
Applied potential.
simulation_t simulate(double time, uint steps, std::string method="rk4", bool particle_interaction=true)
Simulate the particle system inside the Penning trap over a certain amount of time.
-vec3 force_on_particle(uint i, uint j)
Calculate the force between 2 particles.
-vec3 r_func(uint i, uint j, double dt)
Helper for evolve_RK4 when calculating values.
-
-vec3 total_force(uint i)
calculate the total force on a particle p_i.
-void set_pertubation(double f, double omega_V)
Time dependent perturbation to V_0.
-void reinitialize(double f, double omega_V, double t=0.)
Give all particles new positions and velocities, and change t and V_0.
+vec3 force_on_particle(uint i, uint j)
Calculate the force between 2 particles.
+vec3 r_func(uint i, uint j, double dt)
Helper for evolve_RK4 when calculating values.
+
+vec3 total_force(uint i)
calculate the total force on a particle p_i.
+void set_pertubation(double f, double omega_V)
Time dependent perturbation to V_0.
+void reinitialize(double f, double omega_V, double t=0.)
Give all particles new positions and velocities, and change t and V_0.
void evolve_forward_euler(double dt, bool particle_interaction=true)
Go forward one timestep using the forward Euler method.
double fraction_of_particles_left(double time, uint steps, std::string method="rk4", bool particle_interaction=true)
Simulate and calculate what fraction of particles are still left inside the Penning trap after the si...
void write_simulation_to_dir(std::string path, double time, uint steps, std::string method="rk4", bool particle_interaction=true)
Simulate and write the displacement of all particles to files.
-std::function< double(double)> perturbation
Time-dependent perturbation.
-
+std::function< double(double)> perturbation
Time-dependent perturbation.
+sim_arr k_v
A 2D vector containing all where is the index of a particle.
#define K_E
Coulomb constant. unit: .
Typedef for PenningTrap::simulation return value.
Useful typedefs for cleaner code.
diff --git a/docs/PenningTrap_8hpp_source.html b/docs/PenningTrap_8hpp_source.html
index fab595d..50f6910 100644
--- a/docs/PenningTrap_8hpp_source.html
+++ b/docs/PenningTrap_8hpp_source.html
@@ -118,95 +118,97 @@ $(document).ready(function(){initNavTree('PenningTrap_8hpp_source.html',''); ini
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- 145 double d = 500.,
double t = 0.);
-
-
- 156 double V_0 = (25. *
V) / 1000.,
double d = 500.,
double t = 0.);
-
-
-
-
-
-
-
- 184 void evolve_RK4(
double dt,
bool particle_interaction =
true);
-
-
-
-
- 204 bool particle_interaction =
true);
-
-
- 215 std::string method =
"rk4",
- 216 bool particle_interaction =
true);
-
-
- 229 std::string method =
"rk4",
- 230 bool particle_interaction =
true);
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 154 double d = 500.,
double t = 0.);
+
+
+ 165 double V_0 = (25. *
V) / 1000.,
double d = 500.,
double t = 0.);
+
+
+
+
+
+
+
+ 193 void evolve_RK4(
double dt,
bool particle_interaction =
true);
+
+
+
+
+ 213 bool particle_interaction =
true);
+
+
+ 224 std::string method =
"rk4",
+ 225 bool particle_interaction =
true);
+
+
+ 238 std::string method =
"rk4",
+ 239 bool particle_interaction =
true);
+
+
+
+
A class that holds the properties of a particle.
A class that holds attributes of a particle.
Test class for the Penning trap.
A class that simulates a Penning trap.
-std::vector< Particle > particles
The particles in the Penning trap.
-double B_0
Magnetic field strength.
-vec3 total_force_external(uint i)
Calculate the total external force on a particle.
-
-vec3 total_force_particles(uint i)
Calculate the total force on a particle p_i from other particles.
-vec3 external_B_field(vec3 r)
Calculate B at point r.
+std::vector< Particle > particles
The particles in the Penning trap.
+double B_0
Magnetic field strength.
+vec3 total_force_external(uint i)
Calculate the total external force on a particle.
+sim_arr k_r
A 2D vector containing all where is the index of a particle.
+vec3 total_force_particles(uint i)
Calculate the total force on a particle p_i from other particles.
+vec3 external_B_field(vec3 r)
Calculate B at point r.
void evolve_RK4(double dt, bool particle_interaction=true)
Go forward one timestep using the RK4 method.
-vec3 v_func(uint i, uint j, double dt)
Helper for evolve_RK4 when calculating values.
-vec3 external_E_field(vec3 r)
Calculate E at point r.
-double d
Characteristic dimension.
-void add_particle(Particle particle)
Add a particle to the system.
-double V_0
Applied potential.
+vec3 v_func(uint i, uint j, double dt)
Helper for evolve_RK4 when calculating values.
+vec3 external_E_field(vec3 r)
Calculate E at point r.
+double d
Characteristic dimension.
+void add_particle(Particle particle)
Add a particle to the system.
+double V_0
Applied potential.
simulation_t simulate(double time, uint steps, std::string method="rk4", bool particle_interaction=true)
Simulate the particle system inside the Penning trap over a certain amount of time.
-vec3 force_on_particle(uint i, uint j)
Calculate the force between 2 particles.
-vec3 r_func(uint i, uint j, double dt)
Helper for evolve_RK4 when calculating values.
-
-vec3 total_force(uint i)
calculate the total force on a particle p_i.
-void set_pertubation(double f, double omega_V)
Time dependent perturbation to V_0.
-void reinitialize(double f, double omega_V, double t=0.)
Give all particles new positions and velocities, and change t and V_0.
+vec3 force_on_particle(uint i, uint j)
Calculate the force between 2 particles.
+vec3 r_func(uint i, uint j, double dt)
Helper for evolve_RK4 when calculating values.
+
+vec3 total_force(uint i)
calculate the total force on a particle p_i.
+void set_pertubation(double f, double omega_V)
Time dependent perturbation to V_0.
+void reinitialize(double f, double omega_V, double t=0.)
Give all particles new positions and velocities, and change t and V_0.
void evolve_forward_euler(double dt, bool particle_interaction=true)
Go forward one timestep using the forward Euler method.
double fraction_of_particles_left(double time, uint steps, std::string method="rk4", bool particle_interaction=true)
Simulate and calculate what fraction of particles are still left inside the Penning trap after the si...
void write_simulation_to_dir(std::string path, double time, uint steps, std::string method="rk4", bool particle_interaction=true)
Simulate and write the displacement of all particles to files.
-std::function< double(double)> perturbation
Time-dependent perturbation.
-
+std::function< double(double)> perturbation
Time-dependent perturbation.
+sim_arr k_v
A 2D vector containing all where is the index of a particle.
diff --git a/docs/classPenningTrap-members.html b/docs/classPenningTrap-members.html
index d4bca01..f7e9ce3 100644
--- a/docs/classPenningTrap-members.html
+++ b/docs/classPenningTrap-members.html
@@ -119,7 +119,7 @@ $(document).ready(function(){initNavTree('classPenningTrap.html',''); initResiza
| PenningTrap(double B_0=T, double V_0=(25. *V)/1000., double d=500., double t=0.) | PenningTrap | |
| PenningTrap(uint i, double B_0=T, double V_0=(25. *V)/1000., double d=500., double t=0.) | PenningTrap | |
| PenningTrap(std::vector< Particle > particles, double B_0=T, double V_0=(25. *V)/1000., double d=500., double t=0.) | PenningTrap | |
- | PenningTrapTest (defined in PenningTrap) | PenningTrap | friend |
+ | PenningTrapTest | PenningTrap | friend |
| perturbation | PenningTrap | private |
| r_func(uint i, uint j, double dt) | PenningTrap | private |
| reinitialize(double f, double omega_V, double t=0.) | PenningTrap | |
diff --git a/docs/classPenningTrap.html b/docs/classPenningTrap.html
index 9be2e3b..3cac359 100644
--- a/docs/classPenningTrap.html
+++ b/docs/classPenningTrap.html
@@ -197,13 +197,16 @@ Private Attributes
| | The particles in the Penning trap.
|
| |
| sim_arr | k_v |
+| | A 2D vector containing all \(k_{v,i,j}\) where \(j\) is the index of a particle.
|
| |
| sim_arr | k_r |
+| | A 2D vector containing all \(k_{r,i,j}\) where \(j\) is the index of a particle.
|
| |
@@ -261,7 +264,7 @@ Friends
-Definition at line 20 of file PenningTrap.cpp.
+Definition at line 115 of file PenningTrap.cpp.
@@ -321,7 +324,7 @@ Friends
-Definition at line 29 of file PenningTrap.cpp.
+Definition at line 124 of file PenningTrap.cpp.
@@ -381,7 +384,7 @@ Friends
-Definition at line 39 of file PenningTrap.cpp.
+Definition at line 134 of file PenningTrap.cpp.
@@ -410,7 +413,7 @@ Friends
-Definition at line 101 of file PenningTrap.cpp.
+Definition at line 158 of file PenningTrap.cpp.
@@ -525,7 +528,7 @@ Friends
- Returns
- vec3
-Definition at line 114 of file PenningTrap.cpp.
+Definition at line 66 of file PenningTrap.cpp.
@@ -562,7 +565,7 @@ Friends
- Returns
- vec3
-Definition at line 106 of file PenningTrap.cpp.
+Definition at line 58 of file PenningTrap.cpp.
@@ -611,7 +614,7 @@ Friends
- Returns
- vec3
-Definition at line 119 of file PenningTrap.cpp.
+Definition at line 71 of file PenningTrap.cpp.
@@ -721,7 +724,7 @@ Friends
- Returns
- vec3
-Definition at line 82 of file PenningTrap.cpp.
+Definition at line 39 of file PenningTrap.cpp.
@@ -766,7 +769,7 @@ Friends
-Definition at line 53 of file PenningTrap.cpp.
+Definition at line 148 of file PenningTrap.cpp.
@@ -804,7 +807,7 @@ Friends
-Definition at line 46 of file PenningTrap.cpp.
+Definition at line 141 of file PenningTrap.cpp.
@@ -895,7 +898,7 @@ Friends
- Returns
- vec3
-Definition at line 155 of file PenningTrap.cpp.
+Definition at line 107 of file PenningTrap.cpp.
@@ -933,7 +936,7 @@ Friends
- Returns
- vec3
-Definition at line 130 of file PenningTrap.cpp.
+Definition at line 82 of file PenningTrap.cpp.
@@ -970,7 +973,7 @@ Friends
- Returns
- vec3
-Definition at line 143 of file PenningTrap.cpp.
+Definition at line 95 of file PenningTrap.cpp.
@@ -1026,7 +1029,7 @@ Friends
- Returns
- vec3
-Definition at line 63 of file PenningTrap.cpp.
+Definition at line 20 of file PenningTrap.cpp.
@@ -1111,7 +1114,9 @@ Friends
@@ -1138,7 +1143,7 @@ Friends
Magnetic field strength.
-Definition at line 34 of file PenningTrap.hpp.
+Definition at line 37 of file PenningTrap.hpp.
@@ -1164,7 +1169,7 @@ Friends
Characteristic dimension.
-Definition at line 37 of file PenningTrap.hpp.
+Definition at line 40 of file PenningTrap.hpp.
@@ -1187,9 +1192,10 @@ Friends
-
A 2D vector containing all \(k_{i,j}\) where \(j\) is the index of a particle
-
Definition at line 42 of file PenningTrap.hpp.
+
A 2D vector containing all \(k_{r,i,j}\) where \(j\) is the index of a particle.
+
+
Definition at line 52 of file PenningTrap.hpp.
@@ -1212,9 +1218,10 @@ Friends
-
A 2D vector containing all \(k_{i,j}\) where \(j\) is the index of a particle
-
Definition at line 40 of file PenningTrap.hpp.
+
A 2D vector containing all \(k_{v,i,j}\) where \(j\) is the index of a particle.
+
+
Definition at line 47 of file PenningTrap.hpp.
@@ -1240,7 +1247,7 @@ Friends
The particles in the Penning trap.
-Definition at line 39 of file PenningTrap.hpp.
+Definition at line 42 of file PenningTrap.hpp.
@@ -1266,7 +1273,7 @@ Friends
Time-dependent perturbation.
-Definition at line 36 of file PenningTrap.hpp.
+Definition at line 39 of file PenningTrap.hpp.
@@ -1292,7 +1299,7 @@ Friends
Current time.
-Definition at line 38 of file PenningTrap.hpp.
+Definition at line 41 of file PenningTrap.hpp.
@@ -1318,7 +1325,7 @@ Friends
Applied potential.
-Definition at line 35 of file PenningTrap.hpp.
+Definition at line 38 of file PenningTrap.hpp.
diff --git a/docs/classPenningTrap.js b/docs/classPenningTrap.js
index 987c84c..6e5d013 100644
--- a/docs/classPenningTrap.js
+++ b/docs/classPenningTrap.js
@@ -19,6 +19,7 @@ var classPenningTrap =
[ "total_force_particles", "classPenningTrap.html#a2fe1cefbae18fa5808155ee0d2df713c", null ],
[ "v_func", "classPenningTrap.html#a3c0a44e4e0a94366ff609e81fe463fa2", null ],
[ "write_simulation_to_dir", "classPenningTrap.html#ad8bc4df7ab3eed53b16cfdff38e7760b", null ],
+ [ "PenningTrapTest", "classPenningTrap.html#a869f032f37d0569ed16f224b4c4356ae", null ],
[ "B_0", "classPenningTrap.html#a0cac3509aa96e71a26d3b2c902e27716", null ],
[ "d", "classPenningTrap.html#a66dfe89c68716b9502927b97f59c27d2", null ],
[ "k_r", "classPenningTrap.html#a2f168622587709b9e3c49077f0b9a640", null ],
diff --git a/docs/functions.html b/docs/functions.html
index c2f9801..86b463b 100644
--- a/docs/functions.html
+++ b/docs/functions.html
@@ -144,6 +144,7 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();
Particle() : Particle
particles : PenningTrap
PenningTrap : Particle, PenningTrap
+PenningTrapTest : PenningTrap
perturbation : PenningTrap
diff --git a/docs/functions_rela.html b/docs/functions_rela.html
index 81a1c72..ab3c3e5 100644
--- a/docs/functions_rela.html
+++ b/docs/functions_rela.html
@@ -100,6 +100,7 @@ $(document).ready(function(){initNavTree('functions_rela.html',''); initResizabl
diff --git a/docs/main_8cpp_source.html b/docs/main_8cpp_source.html
index cbf1d30..ecc9633 100644
--- a/docs/main_8cpp_source.html
+++ b/docs/main_8cpp_source.html
@@ -423,7 +423,7 @@ $(document).ready(function(){initNavTree('main_8cpp_source.html',''); initResiza
A class for simulating a Penning trap.
A class that holds attributes of a particle.
A class that simulates a Penning trap.
-void reinitialize(double f, double omega_V, double t=0.)
Give all particles new positions and velocities, and change t and V_0.
+void reinitialize(double f, double omega_V, double t=0.)
Give all particles new positions and velocities, and change t and V_0.
double fraction_of_particles_left(double time, uint steps, std::string method="rk4", bool particle_interaction=true)
Simulate and calculate what fraction of particles are still left inside the Penning trap after the si...
void write_simulation_to_dir(std::string path, double time, uint steps, std::string method="rk4", bool particle_interaction=true)
Simulate and write the displacement of all particles to files.
diff --git a/docs/navtreeindex0.js b/docs/navtreeindex0.js
index 38ecabb..68d8951 100644
--- a/docs/navtreeindex0.js
+++ b/docs/navtreeindex0.js
@@ -19,24 +19,25 @@ var NAVTREEINDEX0 =
"classParticle.html#aedcc7e1bc53b0e2b1a4a07c9a1b47563":[5,0,0,2],
"classParticle.html#af1d7535fb8311eaa77d2b7b345882ec4":[5,0,0,0],
"classPenningTrap.html":[5,0,1],
-"classPenningTrap.html#a0112525d9e79a472e761f8ef402a339f":[5,0,1,23],
-"classPenningTrap.html#a0cac3509aa96e71a26d3b2c902e27716":[5,0,1,19],
+"classPenningTrap.html#a0112525d9e79a472e761f8ef402a339f":[5,0,1,24],
+"classPenningTrap.html#a0cac3509aa96e71a26d3b2c902e27716":[5,0,1,20],
"classPenningTrap.html#a2c01108b52c8e2a003cf9170da9e7682":[5,0,1,15],
-"classPenningTrap.html#a2f168622587709b9e3c49077f0b9a640":[5,0,1,21],
+"classPenningTrap.html#a2f168622587709b9e3c49077f0b9a640":[5,0,1,22],
"classPenningTrap.html#a2fe1cefbae18fa5808155ee0d2df713c":[5,0,1,16],
"classPenningTrap.html#a361f2c4862c90b5e8e2a2f50c6a95655":[5,0,1,6],
"classPenningTrap.html#a36946152fd951b1f7c346c51ff900d8e":[5,0,1,5],
"classPenningTrap.html#a3c0a44e4e0a94366ff609e81fe463fa2":[5,0,1,17],
"classPenningTrap.html#a5846c8f75cdc543fd9cf0b2185a3ef22":[5,0,1,7],
"classPenningTrap.html#a5b6c6d4636f3a6e279ccde59d4a345e8":[5,0,1,0],
-"classPenningTrap.html#a66dfe89c68716b9502927b97f59c27d2":[5,0,1,20],
+"classPenningTrap.html#a66dfe89c68716b9502927b97f59c27d2":[5,0,1,21],
"classPenningTrap.html#a6e9776ff5b149f01080800716455d7c8":[5,0,1,3],
-"classPenningTrap.html#a715329844d75ec4c04f8391421fb4e89":[5,0,1,26],
+"classPenningTrap.html#a715329844d75ec4c04f8391421fb4e89":[5,0,1,27],
"classPenningTrap.html#a7a1d9f0528a12308de25bc30718da20a":[5,0,1,13],
"classPenningTrap.html#a7f210bb2768a5d79ced4b0df0df97598":[5,0,1,8],
"classPenningTrap.html#a826b7fa8e709d481eb1dee7d0c2cdc08":[5,0,1,10],
"classPenningTrap.html#a830be1b8cbf59664e060b6edbeaa302f":[5,0,1,1],
-"classPenningTrap.html#a8ca4e21291f60fde619c14099d8c4e8e":[5,0,1,25],
+"classPenningTrap.html#a869f032f37d0569ed16f224b4c4356ae":[5,0,1,19],
+"classPenningTrap.html#a8ca4e21291f60fde619c14099d8c4e8e":[5,0,1,26],
"classPenningTrap.html#a9a301b0540078c36697880ef204afdf3":[5,0,1,14],
"classPenningTrap.html#a9d1d8e90ca839b928aee1ad0cd4aff43":[5,0,1,12],
"classPenningTrap.html#aaee129f177657455348d0c8ae1441dea":[5,0,1,11],
@@ -44,8 +45,8 @@ var NAVTREEINDEX0 =
"classPenningTrap.html#ac529aa26c288f34eae184a67e6bac41f":[5,0,1,9],
"classPenningTrap.html#ad8bc4df7ab3eed53b16cfdff38e7760b":[5,0,1,18],
"classPenningTrap.html#addc96789dcfec07b75156e19fee82f4f":[5,0,1,2],
-"classPenningTrap.html#ae915f6ad0eef1fb46530e836b6e071e5":[5,0,1,24],
-"classPenningTrap.html#ae9b5afdaa5cd366e94bd294452a1eed4":[5,0,1,22],
+"classPenningTrap.html#ae915f6ad0eef1fb46530e836b6e071e5":[5,0,1,25],
+"classPenningTrap.html#ae9b5afdaa5cd366e94bd294452a1eed4":[5,0,1,23],
"classPenningTrapTest.html":[5,0,2],
"classPenningTrapTest.html#a5f4f0b150e54ce463bb29f76d49883f9":[5,0,2,2],
"classPenningTrapTest.html#a68449d508e66205bc8b27fa5f60db508":[5,0,2,4],
diff --git a/docs/search/all_9.js b/docs/search/all_9.js
index 7a16618..8d94e1e 100644
--- a/docs/search/all_9.js
+++ b/docs/search/all_9.js
@@ -10,7 +10,7 @@ var searchData=
['penningtrap_7',['PenningTrap',['../classPenningTrap.html#a5b6c6d4636f3a6e279ccde59d4a345e8',1,'PenningTrap::PenningTrap(double B_0=T, double V_0=(25. *V)/1000., double d=500., double t=0.)'],['../classPenningTrap.html#addc96789dcfec07b75156e19fee82f4f',1,'PenningTrap::PenningTrap(std::vector< Particle > particles, double B_0=T, double V_0=(25. *V)/1000., double d=500., double t=0.)'],['../classPenningTrap.html#a830be1b8cbf59664e060b6edbeaa302f',1,'PenningTrap::PenningTrap(uint i, double B_0=T, double V_0=(25. *V)/1000., double d=500., double t=0.)'],['../classParticle.html#aa797d319549dc2a0beb06cdbfd430232',1,'Particle::PenningTrap()'],['../classPenningTrap.html',1,'PenningTrap']]],
['penningtrap_2ecpp_8',['PenningTrap.cpp',['../PenningTrap_8cpp.html',1,'']]],
['penningtrap_2ehpp_9',['PenningTrap.hpp',['../PenningTrap_8hpp.html',1,'']]],
- ['penningtraptest_10',['PenningTrapTest',['../classPenningTrapTest.html',1,'']]],
+ ['penningtraptest_10',['PenningTrapTest',['../classPenningTrap.html#a869f032f37d0569ed16f224b4c4356ae',1,'PenningTrap::PenningTrapTest()'],['../classPenningTrapTest.html',1,'PenningTrapTest']]],
['perturbation_11',['perturbation',['../classPenningTrap.html#ae915f6ad0eef1fb46530e836b6e071e5',1,'PenningTrap']]],
['potential_5fresonance_5fnarrow_5fsweep_12',['potential_resonance_narrow_sweep',['../main_8cpp.html#a33d9b1c76c3c80902f89a58b1a6d96ea',1,'main.cpp']]],
['potential_5fresonance_5fnarrow_5fsweep_5finteraction_13',['potential_resonance_narrow_sweep_interaction',['../main_8cpp.html#ac1816f70ec612edc27848ef7f0875fdb',1,'main.cpp']]],
diff --git a/docs/search/related_0.js b/docs/search/related_0.js
index 0d3bc2c..3f7af5a 100644
--- a/docs/search/related_0.js
+++ b/docs/search/related_0.js
@@ -1,4 +1,5 @@
var searchData=
[
- ['penningtrap_0',['PenningTrap',['../classParticle.html#aa797d319549dc2a0beb06cdbfd430232',1,'Particle']]]
+ ['penningtrap_0',['PenningTrap',['../classParticle.html#aa797d319549dc2a0beb06cdbfd430232',1,'Particle']]],
+ ['penningtraptest_1',['PenningTrapTest',['../classPenningTrap.html#a869f032f37d0569ed16f224b4c4356ae',1,'PenningTrap']]]
];
diff --git a/docs/test__suite_8cpp_source.html b/docs/test__suite_8cpp_source.html
index 8374f2c..0e0fee5 100644
--- a/docs/test__suite_8cpp_source.html
+++ b/docs/test__suite_8cpp_source.html
@@ -239,12 +239,12 @@ $(document).ready(function(){initNavTree('test__suite_8cpp_source.html',''); ini
void test_external_B_field()
Test that the external B field gives correct values.
void test_total_force_external()
Test that the total external force returns expected results.
A class that simulates a Penning trap.
-vec3 total_force_external(uint i)
Calculate the total external force on a particle.
-vec3 total_force_particles(uint i)
Calculate the total force on a particle p_i from other particles.
-vec3 external_B_field(vec3 r)
Calculate B at point r.
-vec3 external_E_field(vec3 r)
Calculate E at point r.
-void add_particle(Particle particle)
Add a particle to the system.
-vec3 force_on_particle(uint i, uint j)
Calculate the force between 2 particles.
+vec3 total_force_external(uint i)
Calculate the total external force on a particle.
+vec3 total_force_particles(uint i)
Calculate the total force on a particle p_i from other particles.
+vec3 external_B_field(vec3 r)
Calculate B at point r.
+vec3 external_E_field(vec3 r)
Calculate E at point r.
+void add_particle(Particle particle)
Add a particle to the system.
+vec3 force_on_particle(uint i, uint j)
Calculate the force between 2 particles.
arma::vec::fixed< 3 > vec3
Typedef for a fixed 3d arma vector.