• R/O
  • SSH

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

File Info

Révision c4a1fc32a49e7ba640e0ac956efc711abecfbafe
Taille 288 octets
l'heure 2008-11-13 03:30:02
Auteur iselllo
Message de Log

I added a code useful to rearrange the simulation output in a way suitable for plotting.

Content

#! /usr/bin/env python

import scipy as s
import numpy as n
import pylab as p

ini_arr=p.load("cluster_50_monomers.dat")

box_size=(5000./0.01)**(1./3.)

ini_arr=s.remainder(ini_arr,box_size)

ini_arr=s.reshape(ini_arr,(-1,3))

p.save("cluster_50.dat", ini_arr)



print "So far so good"