2022-04-28 20:18:48 +08:00
|
|
|
# 多线程设置
|
2022-04-29 13:57:31 +08:00
|
|
|
/run/numberOfThreads 4
|
2022-04-28 20:18:48 +08:00
|
|
|
|
|
|
|
# verbose
|
|
|
|
/control/verbose 2
|
|
|
|
/run/verbose 2
|
|
|
|
/event/verbose 2
|
|
|
|
/tracking/verbose 2
|
|
|
|
|
|
|
|
# 初始化
|
|
|
|
/run/initialize
|
|
|
|
|
2022-04-29 13:57:31 +08:00
|
|
|
# 定义 scoring 网格
|
|
|
|
/score/create/boxMesh water_box
|
|
|
|
/score/mesh/boxSize 638. 630. 555. mm
|
|
|
|
/score/mesh/nBin 50 50 40
|
|
|
|
|
|
|
|
# 定义需要获取的物理量与过滤器
|
|
|
|
/score/quantity/energyDesposit eDep
|
|
|
|
/score/quantity/doseDesposit Dose
|
|
|
|
# 过滤器,本例需要考虑次级粒子,不需要
|
|
|
|
# /score/filter/particle gammaFilter gamma
|
|
|
|
/score/close
|
|
|
|
|
|
|
|
# 发射粒子
|
2022-04-28 20:18:48 +08:00
|
|
|
/gun/particle gamma
|
2022-04-29 13:57:31 +08:00
|
|
|
/gun/energy 1 MeV
|
|
|
|
/run/beamOn 1000
|
|
|
|
|
|
|
|
# 保存数据
|
|
|
|
/score/dumpQuantityToFile water_box eDep eDep.txt
|
|
|
|
/score/dumpQuantityToFile water_box Dose Dose.txt
|