Revisão | c4a1fc32a49e7ba640e0ac956efc711abecfbafe (tree) |
---|---|
Hora | 2008-11-13 03:30:02 |
Autor | iselllo |
Commiter | iselllo |
I added a code useful to rearrange the simulation output in a way suitable for plotting.
@@ -0,0 +1,19 @@ | ||
1 | +#! /usr/bin/env python | |
2 | + | |
3 | +import scipy as s | |
4 | +import numpy as n | |
5 | +import pylab as p | |
6 | + | |
7 | +ini_arr=p.load("cluster_50_monomers.dat") | |
8 | + | |
9 | +box_size=(5000./0.01)**(1./3.) | |
10 | + | |
11 | +ini_arr=s.remainder(ini_arr,box_size) | |
12 | + | |
13 | +ini_arr=s.reshape(ini_arr,(-1,3)) | |
14 | + | |
15 | +p.save("cluster_50.dat", ini_arr) | |
16 | + | |
17 | + | |
18 | + | |
19 | +print "So far so good" |