• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修订版adb72c59d2f73bc2989ee7f1f64aa5ae955a9a04 (tree)
时间2008-01-07 19:00:56
作者iselllo
Commiteriselllo

Log Message

I simply modified the definition of the length I am using in the routine
for numerical derivatives; now it is worked out correctly every time I
define a new r vector where r is the independent variable.

更改概述

差异

diff -r 4c573ce35ef7 -r adb72c59d2f7 Python-codes/plot_potential.py
--- a/Python-codes/plot_potential.py Sun Jan 06 23:59:46 2008 +0000
+++ b/Python-codes/plot_potential.py Mon Jan 07 10:00:56 2008 +0000
@@ -314,6 +314,8 @@
314314 r_cut=1.1
315315 min_tabul_distance=0.01 #minimum tabulated distance for the force
316316 r=s.linspace(min_tabul_distance,r_cut,NN)
317+#r=s.linspace(0.9,r_cut,NN)
318+
317319 h_max=60.
318320 sig=0.1
319321 h_min=-30.
@@ -349,7 +351,9 @@
349351 my_f_analytic=myforce_modified(h_max,r_core, r_cut,sig,r_min,h_min,r)
350352
351353 my_force=s.zeros(NN)
352-length=r_cut-min_tabul_distance
354+#length=r_cut-min_tabul_distance
355+length=r.max()-r.min()
356+
353357 d.der1(my_pot,my_force,length)
354358
355359 my_force=-my_force #the force is minus the grad of the potential!