• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revision93e904e0c512de5fb83a29684987abed670ba955 (tree)
Zeit2008-06-16 21:47:03
Autoriselllo
Commiteriselllo

Log Message

Now the code is able to initialize its own random number generator, so I
do not need any longer any input file with the initial particle
positions.

Ändern Zusammenfassung

Diff

diff -r b43c673201d0 -r 93e904e0c512 TCL-codes/restart_aggregates.tcl
--- a/TCL-codes/restart_aggregates.tcl Sun Jun 15 00:27:26 2008 +0000
+++ b/TCL-codes/restart_aggregates.tcl Mon Jun 16 12:47:03 2008 +0000
@@ -2,11 +2,11 @@
22
33 # number of monomers in each cluster
44
5-set n_part 5
5+set n_part 50
66
77 #number of clusters
88
9-set type_of_part 10
9+set type_of_part 200
1010
1111 #total number of monomers
1212
@@ -17,7 +17,7 @@
1717 #Now the situation is different: the box size is chosen and density is not relevant.
1818
1919
20-set box_l 200.
20+set box_l 10000.
2121
2222 # set density 0.03
2323
@@ -47,7 +47,7 @@
4747
4848 # Now I am going to read a simple text file, NOT a block file
4949 #set filename "clusters_ini_$j"
50-set filename "initial_state_folded_and_shifted"
50+set filename "copy_of_cluster50_200"
5151 #set filename "initial_state_folded"
5252
5353 set fp [open $filename "r"]
@@ -105,7 +105,7 @@
105105 #parameters of the simulation
106106
107107
108-set tot_time 300.
108+set tot_time 400.
109109
110110
111111 set my_step 0.00125
@@ -120,7 +120,7 @@
120120
121121 # number of configurations I want to save
122122
123-set N_save 150
123+set N_save 4000
124124 #I save a configuration every time steps
125125
126126 set every [expr $N_step/$N_save]
@@ -176,6 +176,15 @@
176176 set obs5 [open "time.dat" "w"]
177177
178178
179+#initialization random numbers
180+
181+expr srand(200)
182+set l ""; for {set i 0} {$i < [setmd n_nodes]} {incr i} {
183+ lappend l [expr int(32768*rand())]
184+}
185+eval t_random seed $l
186+
187+
179188
180189
181190 #puts "the simulation time now is, [setmd time]"