Revisão | 99fae860e52b3bfc1532a174bdabde783f954f23 (tree) |
---|---|
Hora | 2007-10-05 22:09:46 |
Autor | iselllo |
Commiter | iselllo |
I corrected a few typos and went on developing the code. The aim is to
calculate the time-dependent radial density function.
@@ -65,10 +65,10 @@ | ||
65 | 65 | |
66 | 66 | #prepare the saving of the results |
67 | 67 | |
68 | -set obs [open "rg_lorenzo.dat" "w"] | |
68 | +#set obs [open "rg_lorenzo.dat" "w"] | |
69 | 69 | |
70 | 70 | |
71 | -for {set i 0} { $i < 20 } { incr i} { | |
71 | +for {set i 0} { $i < 3 } { incr i} { | |
72 | 72 | set temp [expr [analyze energy kinetic]/(1.5*$n_part)] |
73 | 73 | puts "t=[setmd time] E=[analyze energy total], T=$temp" |
74 | 74 | integrate $integ_steps |
@@ -90,11 +90,25 @@ | ||
90 | 90 | |
91 | 91 | } |
92 | 92 | |
93 | -close $obs | |
93 | +#close $obs | |
94 | 94 | puts "end of integration" |
95 | 95 | |
96 | -plotObs "rg.dat" { 1:2 } labels { "time" "rg" } out "rg" | |
97 | -exec gv rg.ps | |
96 | +#plotObs "rg.dat" { 1:2 } labels { "time" "rg" } out "rg" | |
97 | +#exec gv rg.ps | |
98 | + | |
99 | +set f [open "config_1" "r"] | |
100 | +while { [blockfile $f read auto] != "eof" } {} | |
101 | +close $f | |
102 | + | |
103 | +puts "ok reading the block file" | |
104 | + | |
105 | +set rdf [analyze rdf 0 0 0.9 [expr $box_l/2] 100] | |
106 | +set rlist "" | |
107 | +set rdflist "" | |
108 | +foreach value [lindex $rdf 1] { | |
109 | +lappend rlist [lindex $value 0] | |
110 | +lappend rdflist [lindex $value 1] | |
111 | +} | |
98 | 112 | |
99 | 113 | |
100 | 114 | puts "So far so good" |
\ No newline at end of file |