弯曲劳厄单色器x射线光学

blxo的Python项目详细描述


BLXO(弯曲劳厄X射线光学)

安装

选项1

pip install blxo

选项2

下载存储库。将blxo文件夹作为python包导入。在

如何使用它

  1. 用参数定义单色仪。在

    示例:

^{pr2}$
  1. 从单色仪上获取感兴趣的特性。在

    1. 准单光束
    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']
    1. 决议
    # Energy resolutionmono.energy_resolution# Energy resolution in terms of anglemono.angle_resolution
    1. 最佳聚焦到探测器距离
    mono.f2d_optimal
    1. 魔术条件计算器
    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.
    1. 其他
    mono.lengths.geo_focus()mono.lengths.single_ray_focus()

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Selenium Webdrive(Java)使用名称的预定义部分生成变量   java如何在Android Studio中创建水平滚动的标题?   Java中的层次枚举   java从响应获取对象列表   从向后兼容的可序列化对象中提取java超类   使用放大按钮在滚动条上显示java ChangeListener   java Jsp默认日期格式   java广播接收器未接收   当字符不是来自英文字母表时,java Datadog字符串编码   java GWT将字符串转换为小数点后2位的浮点值   java Android SMS API   java在codenameone中同时滚动X和Y窗格   Java应用程序使用Datacap WTM服务中止ibm data studio批处理   java如何在Struts配置文件中配置文件夹中的文件路径