You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,11 @@ Caustics ([wikipedia](https://en.wikipedia.org/wiki/Caustic_(optics))) are lumin
4
4
5
5
In [this post](https://laurentperrinet.github.io/sciblog/posts/2020-06-19-caustic-optics.html), I will develop a simple formalism to generate such patterns, with the paradoxical result that it is *very* simple to code yet generates patterns with great complexity, such as:
This is joint work with artist [Etienne Rey](https://laurentperrinet.github.io/authors/etienne-rey/), in which I especially follow the ideas put forward in the series [Turbulence](http://ondesparalleles.org/projets/turbulences/).
10
14
@@ -18,4 +22,17 @@ python3 -m pip install -e .
18
22
```
19
23
## running it
20
24
21
-
Launch [jupyter](https://jupyter.org/).
25
+
```
26
+
from caustique import init
27
+
opt = init()
28
+
opt.bin_dens = 8
29
+
30
+
from caustique import Caustique
31
+
c = Caustique(opt)
32
+
z = c.wave()
33
+
gifname = c.plot(z)
34
+
```
35
+
36
+
## exploring more
37
+
38
+
Launch [jupyter](https://jupyter.org/) and open the notebook.
0 commit comments