Project aims¶
The course aim is to enable you to write a computer simulation of a physical system, something which you might have to do again in your later studies or in your professional life. In the second half of the course you will work on an individual project writing and documenting such a simulation. There are at this time two general topics your simulation can cover:
- a gravitational simulation of an N-body system and
- the passage of a particle through matter.
The project itself is open ended, meaning that within the areas above you are free to choose and to extend your simulation in your own way. The level of open-endedness in this project serves as a bridge between the more fixed assignments in your first year and the increasingly self-directed project work in the third and fourth years. A few ideas for what you can do are given below.
Gravitational simulation¶
One possible final project for PHYS5151 involves writing a Python program to simulate the motion of several "particles" (or "bodies") under the mutual influence of their gravitational fields. You will then use your program to perform gravitational simulations and write up your findings in a report.
Project ideas¶
Within the general framework of simulating the gravitational effect of multiple bodies on each other (i.e., the core assignment for this project variant), several different simulations are possible. You are welcome to come up with your own ideas, but here are some possibilities that come to mind:
-
The Sun and its 8 planets
-
Jupiter and its moons
-
Saturn, its rings (with some approximations), and its moons
-
A known exoplanet system, such as TRAPPIST-1 or K2-138
Students who complete this and are interested in extending their project may consider the following add-ons:
-
Add Pluto and / or other dwarf planets to your solar system and argue based on physics whether or not they should be classed as main planets
-
Explore the effect of the proposed 'Planet 9' on the orbits of the other planets
-
Explore ways to improve the accuracy of simulating Mercury's orbit
-
Simulate the passage through the solar system of at least one interstellar object, of which there are 3 currently known:
-
1I/'Oumuamua
-
2I/Borisov
-
3I/ATLAS
-
-
Correlate solar energy arriving on Earth with the appearance of historical ice ages
-
Simulate the Artemis mission to encircle the Moon, and/or evaluate NASA's current trajectory plan for an Artemis mission to Mars
-
Create your own stable exoplanet system with an interesting configuration
Note: we strongly recommend ensuring your core project and report are submittable for credit at a level you are satisfied with before pursuing add-ons.
Particle physics project¶
One possible final project for PHYS5151 involves writing a Python program to simulate the passage of particles through matter. There are two main physical effects: the energy loss of a particle according to the Bethe-Bloch formula and the multiple scattering of particles at the nucleans of the matter traveresed.
Project ideas¶
Several projects are possible simulating the energy loss and scattering angle of particles traversing matter.
-
Radiation therapy: Typical radio-therapy involves an electron beam (EBT). Proton therapy will have an advantage as it is more focused. Pion therapy or ion therapy may have even more advantages. Compare the energy deposit of electrons, pions, protons and C-ions along a certain path and the end-point of the path.
-
Muon penetration power:
-
Simulate the survival rate of cosmic muons while traversing a vulcano or a pyramid. The Mt. Asama papers are linked here and here. For the Khufu pyramid start here and here
-
Simulate the muon background in neutrino experiments. Neutrino experiments are often located ~1km under ground. What is the muon background in these experiments?
-
-
Muon tomography (scattering): simulate the energy loss and scattering angle of muons traversing a certain configuration of material, e.g. find a lead sphere in a block of aluminium.
-
Particle identification: Simulate dE/dx for pions, kaons and muons in different (liquid) gasses. Up to what momentum can you still distinguish between the particle types? See for example the PDG detector review figure 35.16.
Coding and code submission¶
Throughout the course you have worked on elements of code that may go into the project, e.g. classes for particles and materials, dictionaries, numerical stability, choice of step size and so on. These are good starting points for your simulation.
The bundle (i.e. zip file) of files you upload should:
-
include code that carries out the model;
-
include either the data used to start the simulation, or code that fetches that data in a replicable way (e.g. a Python package that imports the JPL ephemeris);
-
code that generates the figures included in your report;
-
a README file with instruction how to run / use the code.
The code itself should
-
contain the evidence that you did the work above, e.g. retain the code with the basic tests, the different options for doing e.g. acceleration calculations, etc.;
-
contain documentation explaining what the various classes/methods are, and how to run the simulation;
-
generally be reasonably self-contained, i.e. not require the marker to write any code themselves to make anything work.
Project report¶
The aims of this project are:
-
to write a Python program to simulate the physicsal system of your choice;
-
to test the accuracy and reliability of your simulation program;
-
to use your program to generate some scientifically interesting results; and
-
to write up your findings in a report.
The report should:
-
be written in latex (e.g. Overleaf);
-
have a brief abstract: having a sentence or two each on the aims of the project, your method of choice, and your results;
-
introduce (briefly) the basic physics involved in the project you have chosen, and motivate the investigation into the topic;
-
demonstrate that you understand why numerical modelling is required for the project you have chosen (e.g., for probabilistic simulation of muon survival rates, or for simulating orbits in an N-body gravity-only system where \(N>2\));
-
document your code, i.e. briefly state what classes you implemented, what their relation is, how your numerical simulation is executed, and how your consistency and stability checks are implemented (you may use UML diagrams, help / print / doc functionality of your classes / methods / functions)
-
demonstrate that you have implemented your chosen physics correctly, so it will need to present results on test cases where you do not need the programming (e.g. an anlytical solution) and thus can get an answer to check your code against;
-
try different options for doing the key numerical steps (e.g. Euler vs. Euler-Cromer), and evaluate them based on what is important to the simulation (e.g. accuracy of orbit over time versus computational cost), and then describe how you chose which options to move forward with in a final model;
-
evaluate the final model against basic physics, e.g. conservation of energy, angular momentum, linear momentum;
-
evaluate the step size and its relation to accuracy; state whether you needed to compromise on this;
-
evaluate the stability of the simulation against a variation of the initial conditions and determine the Lyapunov exponent, e.g. determine whether the simulation converges or diverges after a large number of steps;
-
state directly and rigorously things that went well (quantifying how well) and that did not go well (quantifying that too); and
-
summarise your main conclusions and discuss future work that could be done to improve the model or take the work forward;
-
document in an appendix whether and how you used AI.
Figures are an essential part of the report. Depending on the number and size of figures you use, aim for around 5-7 pages for your report. Your language should be scientific (i.e. not prosaic) and concise. We will not read and mark more than 10 pages (not including references).