Repository for Bachelor's Thesis - Harmonic Functions and the Mass of Asymptotically Flat Half Spaces
This repository contains the Python
source code for my Bachelor's Thesis.
Within the Folder Computations and Graphs
, there is both a Jupyter Notebook computations_and_graphs.ipynb
and a corresponding Python script computations_and_graphs.py
.
-
To run the Jupyter Notebook, just execute it in some Jupyter Environment running a Python 3.10 kernel (any requirements should automatically be installed). This can e.g. be done on the university's cloud Jupyter offering by uploading and running the
.ipynb
file (just be sure to select the kernel "Python 3.10 (XPython)
" and to recreate the folder structure of this project (in particular there should be afigures
folder in the same directory as thecomputations_and_graphs
folder)). -
To run the Python script:
git clone
this repository from the command line andcd
into it.- Create a virtual environment (with Python version 3.10). Assuming Python 3.10 is installed, running the following should work in Windows Powershell:
py -3.10 -m venv .venv .\.venv\Scripts\Activate.ps1 python -m pip install -r .\computations_and_graphs\requirements.txt
On Linux in e.g.
bash
, one can probably use the following:python3.10 -m venv .venv source .venv/bin/activate python -m pip install -r computations_and_graphs/requirements.txt
- Be sure to execute the Python file from witin the
computations_and_graps
directory:
cd ./computations_and_graphs/ python computations_and_graphs.py
- Output should appear in the terminal and in the
figures
folder.
This thesis was written using MikTeX
and my custom package hrftex
. After following the installation instructions here, it should be possible to compile the file
Harmonic_Functions_and_the_Mass_of_Asymptotically_Flat_Half_Spaces.tex
using e.g. pdflatex
or latexmk
.