Skip to content

Commit 011b26d

Browse files
committed
Merge branch 'master' of github.com:jarvist/FractalLight
2 parents 0ee8033 + fb6e14e commit 011b26d

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,32 @@
22

33
![1D simulation](cavity_sim.png)
44

5-
Unbelievably the 1D version of the code compiled as is, and started running & finding eigenmodes! You must set N to be a sensible value (i.e. 1024 pixels) to compile it as the 2D version, otherwise it crashes with a cryptic linker error about truncation.
5+
The 2006 1D code compiled without edits, and started running & finding eigenmodes! You must set N to be a sensible value (i.e. 1024 pixels) to compile it as the 2D version, otherwise it crashes with a cryptic linker error about truncation.
66

7-
![Lens description](lens.png)
7+
### Compilation (graphical openGL version)
8+
9+
On a 2017 Mac:
10+
```
11+
brew install fftw freeglut
12+
make mac
13+
./glFL
14+
```
15+
16+
If you're on Linux, you should be able to figure it out :^)
817

9-
Example from 2006 of generated 2D modes:
18+
It should open a window and start generating eigenmodes, like this rather low-res (hey - it was 2006! I had to run this overnight on my Duron.) YouTube video.
1019

1120
[![2006 era modes](http://img.youtube.com/vi/-dJPs1nPTjM/0.jpg)](http://www.youtube.com/watch?v=-dJPs1nPTjM)
1221

22+
### What is it doing?
23+
24+
It's simulating the light bouncing around a (highly magnifying) laser cavity. It does this by solving the Huygens-Fresnel integrals in reciprocal space. Practically this means the code spends all its time flipping between real and reciprocal space via Fast Fourier Transforms. The modes form pretty self-similar patterns, when you also have a polygonal aperture in the laser caving.
25+
26+
In the simulation, the brightness is the light intensity, and then the phase information is projected onto a colour sphere.
27+
28+
![Lens description](lens.png)
29+
30+
1331
## Abstract (from the 2006 MSci report)
1432

1533
Codes were written to simulate the propagation of monochromatic light

0 commit comments

Comments
 (0)