弯曲劳厄单色器x射线光学
blxo的Python项目详细描述
BLXO(弯曲劳厄X射线光学)
安装
选项1
pip install blxo
选项2
下载存储库。将blxo
文件夹作为python包导入。在
如何使用它
- 在
用参数定义单色仪。在
示例:
在
- 在
从单色仪上获取感兴趣的特性。在
- 准单光束
qmb=mono.qmb# Quasi-mono beam width (mm)width=qmb['width']# Quasi-mono beam footlength (mm)footlength=qmb['foot_length']# Energy spread of the QMB in terms of angle (rad)ang_spread=qmb['angular_spread']
- 决议
# Energy resolutionmono.energy_resolution# Energy resolution in terms of anglemono.angle_resolution
- 最佳聚焦到探测器距离
mono.f2d_optimal
- 魔术条件计算器
fromblxoimport*# Expect the result to be zero when the magic condition is met.# Magic condition function in terms of anglemc_angle_misalignment=mc.magic_condition_angles(chi=np.radians(4.4671),theta=np.radians(8.99),nu=0.2,t=0.3,r=2000,p=22000)# `mc_angle_misalignment` is expected to be zero (or zero enough) when the magic condition is met.# Magic condition function in terms of focimc_focus_misalignment=mc.magic_condition_foci(chi=np.radians(4.4671),theta=np.radians(8.99),nu=0.2,t=0.3,r=2000,p=22000)# Thickness (t) is not a factor in the calculation, but a called module requires it for some other functions. So just give it any number.
- 其他
mono.lengths.geo_focus()mono.lengths.single_ray_focus()
在
- 项目
标签: