Physics

Reports and Notes:

Read my bachelorproject about N-body simulation of galaxy clusters (pdf).

A project (“førsteårsprojekt”) about dark matter structures (pdf). (in danish)

Some notes on linear algebra (pdf) (in danish)

MatIntro-notes (pdf) (in danish)

Math-notes from high-school (pdf) (in danish)

High school report (“SSO”) on Special Relatity (in danish)

N-body-simulation

The following movie shows the collision between the Milky Way and the Andromeda Galaxy. The simulation was run with my home made tree-code.

The movie visualizes a N-body-simulation with 81920 stars / particles. I have used the same initial conditions as “model B” in “Dubinski, Mihos & Hernquist, 1996, ApJ, 462, 576″.

Power spectrum

Here is a python-program that generates a power spectrum of a function:

powerspectrum.py

C Makefile

Makefile template

Histogram

The source code can be downloaded here:

histogram.c

On a unix-based operating system with “gcc” installed the following command can be used to compile the program:

$gcc -lm histogram.c -o histogram.o

The datapoints should be in a file like data.txt. Use this command to make a histogram with five bins:

$./histogram.o data.txt 5

The general syntax is:

$./histogram.o InputFile NumberOfBins

Gnuplot script

Run the script using “$gnuplot script”.

The following script creates a plot like this:

Here is the script (and a datafile!):

script

logr_rhooversigma3.txt

LaTeX Article template

My LaTeX-template:
Article template (font-encoding: utf-8)

LaTeX Beamer template

A beamer template:

Beamer template (TeX-file)

An example of a beamer slide show:

Calculating the next solar eclipse.. (pdf)

.emacs

Here is my .emacs-file:
my.emacs

vimrc

vimrc

2 responses

5 03 2010
Jonas

NØØØØØØØØØØØØØØØØØRRRDDD

6 03 2010
martinsparre

Og det kommer fra dig :)

Leave a comment