|
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 "constants.hpp"#include "utils.hpp"Go to the source code of this file.
Macros | |
| #define | PARTICLES 100 |
| #define | N 40000 |
Functions | |
| vec3 | 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 | potential_resonance_wide_sweep () |
| Simulate 100 particles over 500 \( \mu s \) using a time dependent potential. | |
| void | potential_resonance_narrow_sweep () |
| Simulate 100 particles over 500 \( \mu s \) using a time dependent potential. | |
| void | potential_resonance_narrow_sweep_interaction () |
| Simulate 100 particles over 500 \( \mu s \) using a time dependent potential. | |
| int | main () |
Variables | |
| Particle | p1 (vec3{20., 0., 20.}, vec3{0., 25., 0.}) |
| Particle 1. | |
| Particle | p2 (vec3{25., 25., 0.}, vec3{0., 40., 5.}) |
| Particle 2. | |
| vec3 analytical_solution_particle_1 | ( | double | t | ) |
| void potential_resonance_narrow_sweep | ( | ) |
| void potential_resonance_narrow_sweep_interaction | ( | ) |
| void potential_resonance_wide_sweep | ( | ) |
| void simulate_100_particles | ( | ) |
| void simulate_single_particle | ( | ) |
| void simulate_single_particle_with_different_steps | ( | ) |