首页 | 本学科首页   官方微博 | 高级检索  
     检索      

非定常输运问题适应于消息传递并行编程环境的香农熵计算方法
引用本文:上官丹骅,邓力,张宝印,姬志成,李刚.非定常输运问题适应于消息传递并行编程环境的香农熵计算方法[J].物理学报,2016,65(14):142801-142801.
作者姓名:上官丹骅  邓力  张宝印  姬志成  李刚
作者单位:北京应用物理与计算数学研究所, 北京 100094
基金项目:能源局专项(批准号:2015ZX06002008)和中国工程物理研究院科学技术发展基金(批准号:2014B0202029)资助的课题.
摘    要:在多计算步的非定常输运问题的蒙特卡罗模拟中,为自动调整每一步的样本数以获得较高的计算效率,可以有多种准则.一种可选的方法是在每一步每隔若干样本监测一次系统中未死亡粒子属性分布对应的香农熵的收敛情况以决定何时停止追加样本,此种方法需要在每一步频繁计算香农熵值.由于在MPI消息传递并行编程环境下香农熵的经典计算方法必须广播大量的数据,导致每一步的计算时间随香农熵计算频率的提高而快速增大,这显然是不能满足实际需求的.本文提出了一种适应于消息传递并行编程环境的香农熵计算新方法,该方法计算得到的香农熵值并不等价于经典方法,但二者之间的差别会随着样本数的增加而趋于零.新方法的最大优势是高频计算香农熵值的时间代价大为降低,为最终实现基于香农熵收敛判断的每步样本数的自动调整奠定了必要的基础.

关 键 词:非定常输运问题  蒙特卡罗方法  香农熵
收稿时间:2016-01-27

Efficient method of calculating Shannon entropy of non-static transport problem in message passing parallel programming environment
Shangguan Dan-Hua,Deng Li,Zhang Bao-Yin,Ji Zhi-Cheng,Li Gang.Efficient method of calculating Shannon entropy of non-static transport problem in message passing parallel programming environment[J].Acta Physica Sinica,2016,65(14):142801-142801.
Authors:Shangguan Dan-Hua  Deng Li  Zhang Bao-Yin  Ji Zhi-Cheng  Li Gang
Institution:Institute of Applied Physics and Computational Mathematics, Beijing 100094, China
Abstract:For the Monte Carlo simulation of the non-static transport problem, there must be many calculation steps. Because some particles cannot finish their transport in the last step, they are naturally used as the source particles of the present step. These particles are called undied particles. It is difficult to adjust the history number of each step to obtain higher efficiency because the adjusting rule is hard to find. The most direct method is to set a large enough history number for all steps. But evidently, it is unnecessary for some steps. Among all possible rules, one candidate of adjusting the history number is to check the convergence situation of Shannon entropy (corresponding to the distribution of some undied particle attributes) every some samples in each step to determine whether or not to simulate more particles. So, this method needs to calculate the Shannon entropy frequently. Because the classical method of calculating Shannon entropy in message passing parallel programming environment must reduce massive data, it is unpractical to be used in this situation for the great increasing of computation time with the high frequency of entropy calculation. In this paper, we propose an efficient method of calculating the entropy in the message passing parallel programming environment by letting each process calculate its entropy value based on the local data in each processer and calculating the final entropy by averaging all the entropy values gotten by all processes. The entropy value calculated by this method is not the same as that by the classical method when using finite history number, but the difference goes to zero when the history number goes to infinity. The most remarkable advantage of this method is the small increasing of computation time when calculating the entropy frequently. It is a suitable method of calculating Shannon entropy when adjusting the history number automatically based on the judgment of the convergence situation of Shannon entropy.
Keywords:non-static transport problem  Monte Carlo method  Shannon entropy
本文献已被 CNKI 等数据库收录!
点击此处可从《物理学报》浏览原始摘要信息
点击此处可从《物理学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号