|
Penning Trap Simulation
Simulate particle behavior inside a Penning Trap
|
The main program for this project. More...
#include <cmath>#include <complex>#include <fstream>#include <omp.h>#include <string>#include <vector>#include "PenningTrap.hpp"#include "utils.hpp"Go to the source code of this file.
Macros | |
| #define | PARTICLES 100 |
| #define | N 40000 |
| #define | CHARGE 1. |
| #define | MASS 40. |
Functions | |
| vec_3d | analytical_solution_particle_1 (double t) |
| The analytical solution for particle p1. | |
| void | simulate_single_particle () |
| Simulate a single particle over the period of 50 \( \mu s \). | |
| void | simulate_two_particles () |
| Simulate 2 particles over the period of 50 \( \mu s \) with and without particle interactions. | |
| void | simulate_single_particle_with_different_steps () |
| Simulate a single particle over 50 \( \mu s \) using different amount of steps and different methods. | |
| void | simulate_100_particles () |
| Simulate 100 particles over 50 \( \mu s \). | |
| void | simulate_100_particles_with_time_potential () |
| Simulate 100 particles over 500 \( \mu s \) using a time dependent potential. | |
| int | main () |
Variables | |
| Particle | p1 (CHARGE, MASS, vec_3d{20., 0., 20.}, vec_3d{0., 25., 0.}) |
| Particle 1. | |
| Particle | p2 (CHARGE, MASS, vec_3d{25., 25., 0.}, vec_3d{0., 40., 5.}) |
| Particle 2. | |
| vec_3d analytical_solution_particle_1 | ( | double | t | ) |
| void simulate_100_particles | ( | ) |
| void simulate_100_particles_with_time_potential | ( | ) |
| void simulate_single_particle | ( | ) |
| void simulate_single_particle_with_different_steps | ( | ) |