【G4基础08】GPS-2-Macro Commands宏命令


一、G4GeneralParticleSource配置方式

  • 从/gps命令树输入命令
  • 在g4macro文件中包含/gps命令

二、G4ParticleGun的等价命令

表2.2: G4ParticleGun equivalent commands

Command Arguments Description and restrictions
/gps/List List available incident particles 列出可用的事件粒子
/gps/particle name Defines the particle type [default geantino], using GEANT4 naming convention. 使用GEANT4 命名约定定义粒子类型[默认geantin]。
/gps/direction Px Py Pz Set the momentum direction [default (1,0,0)] of generated particles using (2.1) 设置生成粒子的动量方向
/gps/energy E unit Sets the energy [default 1 MeV] for mono-energetic sources. The units can be eV, keV, MeV,GeV, TeV or PeV. (NB: it is recommended to use /gps/ene/mono instead.) 为单能源设置能量[默认1 MeV]
/gps/position X Y Z unit Sets the centre co-ordinates (X,Y,Z) of the source [default (0,0,0) cm]. The units can be micron, mm, cm, m or km. (NB: it is recommended to use /gps/pos/centre instead.) 设置源的中心坐标[默认(0,0,0)cm]
/gps/ion Z A Q E After /gps/particle ion, sets the properties (atomic number Z, atomic mass A, ionic charge Q, excitation energy E in keV) of the ion.
/gps/ionLvl Z A Q lvl After /gps/particle ion, sets the properties (atomic number Z, atomic mass A, ionic chargeQ, Number of metastable state excitation level (0-9) of the ion. / gps /粒子离子后,设定离子的性质(原子序数Z,原子质量A,离子电荷Q,亚稳状态激发能级数(0-9))。
/gps/time t0 unit Sets the primary particle (event) time [default 0 ns]. The units can be ps, ns, us, ms, or s.设置主要粒子(事件)时间[默认0 纳秒]
/gps/polarization Px Py Pz Sets the polarization vector of the source, which does not need to be a unit vector. 设置源的偏振矢量,该矢量不需要是单位矢量。
/gps/number N Sets the number of particles [default 1] to simulate on each event.
/gps/verbose level Control the amount of information printed out by the GPS code. Larger values produce more detailed output. 控制GPS 代码打印的信息量。较大的值会产生更详细的输出.
/gps/polarization Px Py Pz Sets the polarization vector of the source, which does not need to be a unit vector. 设置源的偏振矢量,该矢量不需要是单
  • 4
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值