ChinaNet

标题: 怎么改变你运行种子数(for Beamnrc) [打印本页]

作者: zhuer91    时间: 2015-4-8 09:41
标题: 怎么改变你运行种子数(for Beamnrc)
本帖最后由 zhuer91 于 2015-4-8 10:02 编辑

可能是我对蒙特卡洛模拟的原理不懂,现在才知道,如果其他参数不变,只有改变蒙特卡洛模拟的种子数值后的再次模拟,才算新一次的模拟
如果你任何参数都不改变,而只是再次运行一次,那么结果没有任何变化。

那么怎么改变你运行种子数呢?

首先:
就是修改Beamnrc的主参数输入界面中的“Run Option”为“restart”,这样每次都是一次新的运行(种子数每次都改变)。

再次:修改Beamnrc的主参数输入界面中“RNG Seed Options”一项
选择
"start run with stored RNG read in" (-1)

(means start first history with RNG status from a file (unit 2).  This is a debugging tool.   If run quits, rerun using "store RNG at start of each history", then try again with Output set to "interactions" or "steps" and/or the debugger on.)

最后,
修改*.egsrns的输入文件,在附件中(请大家把后缀名修改为egsrns),大家可以下载使用。

如果你需要修改 自己的种子参数,种子数是为2位数的那两组数据,而其他的数字都是7位数的数字,我也不知道是什么东西。


同时,不知道为什么,Beamnrc主输入参数界面中的Initial RNG seed 1, 2,在此过程中并不管用。

我用的是Windows系统的Beamnrc。

希望对大家有用。


转自52MC论坛





欢迎光临 ChinaNet (http://www.nuclear.net.cn/) Powered by Discuz! X3.1