• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisãoe75257537fafaf77bbb69e9c0307a445a3b92c61 (tree)
Hora2008-09-16 00:14:21
Autoriselllo
Commiteriselllo

Mensagem de Log

I modified the code plot_statistics_single.py and corrected the
calculation of the coordination number by adding a better way of taking
the average of the coordination number on the generated clusters.

Mudança Sumário

Diff

diff -r d8fadd4f5a16 -r e75257537faf Python-codes/plot_statistics_single.py
--- a/Python-codes/plot_statistics_single.py Wed Sep 10 16:42:05 2008 +0000
+++ b/Python-codes/plot_statistics_single.py Mon Sep 15 15:14:21 2008 +0000
@@ -32,13 +32,13 @@
3232
3333 collisions =1 #whether I should take statistics about the collisions or not.
3434
35-ini_config=1480
36-fin_config=1485 #for large data post-processing I need to declare an initial and final
35+ini_config=0
36+fin_config=1000 #for large data post-processing I need to declare an initial and final
3737
3838 #configuration I want to read and post-process
3939
4040
41-by=1 #this tells how many configurations there are in the file I am reading
41+by=100 #this tells how many configurations there are in the file I am reading
4242
4343 figure=0 #whether I sould print many figures or not
4444
@@ -930,6 +930,7 @@
930930 mean_dist_part_single_cluster=s.zeros(n_config)
931931
932932 overall_coord_number=s.zeros(n_config)
933+ overall_coord_number_cluster=s.zeros(n_config)
933934 v_aver=s.zeros(n_config)
934935 size_single_cluster=s.zeros(n_config)
935936 r_gyr_single_cluster=s.zeros(n_config)
@@ -1033,6 +1034,8 @@
10331034
10341035 #print "coord_list is, ", coord_list
10351036 coord_arr=s.asarray(coord_list)
1037+ overall_coord_number[i]=s.mean(coord_arr)
1038+ print "the overall_coord_number is, ", overall_coord_number[i]
10361039
10371040 cluster_obj.simplify()
10381041 clustering=cluster_obj.clusters()
@@ -1438,8 +1441,9 @@
14381441
14391442
14401443
1441- overall_coord_number[i]=s.mean(coord_arr)
1442-
1444+ #overall_coord_number[i]=s.mean(coord_arr)
1445+
1446+
14431447
14441448
14451449 coord_clust=coord_arr[part_in_clust[my_lim[m]:my_lim[m+1]]]
@@ -1512,7 +1516,9 @@
15121516 cluster_name="coord_number_dist%05d"%my_selection[i]
15131517 p.save(cluster_name,coord_number_dist)
15141518
1515-
1519+ #print "coord_number_dist.mean() is, ", coord_number_dist.mean()
1520+
1521+ overall_coord_number_cluster[i]=coord_number_dist.mean()
15161522
15171523 # cluster_name="df_corr%05d"%my_selection[i]
15181524 # p.save(cluster_name,df_corr)
@@ -1652,6 +1658,20 @@
16521658 p.clf()
16531659
16541660
1661+ p.save("coord_number_averaged_on_clusters.dat",overall_coord_number_cluster)
1662+
1663+ p.plot(time, overall_coord_number_cluster, "ko")
1664+ p.xlabel('time')
1665+ p.ylabel('coordination number')
1666+ #p.legend(('beta=1e-2,100 part','beta=1e-1, 100 part', 'beta=1e-1, 200 part'))
1667+ p.title('Evolution Coordination Number')
1668+ p.grid(True)
1669+ p.savefig('coordination_number_averaged_on_cluster_vs_time.pdf')
1670+ p.hold(False)
1671+ p.clf()
1672+
1673+
1674+
16551675 for i in xrange(len(time_vertical)):
16561676 y_vertical[:,i]=s.linspace(r_gyr_single_cluster.min(),\
16571677 r_gyr_single_cluster.max(),10)