Please wait a minute...
大学物理实验, 2026, 39(5): 89-96     https://doi.org/10.14139/j.cnki.cn22-1228.2026.05.015
  本期目录 | 过刊浏览 | 高级检索 |
基于 Unity 和 Python 的光学衍射仿真软件设计与开发#br#
高 静 *,赵毅 ** ,李新磊** ,和康怡 ** ,肖景冉 ** ,石嘉琳 **
燕山大学 理学院,河北 秦皇岛 066000
Designand Development of an Optical Diffraction Simulation Software Based on Unity and Python#br#
GAO Jing * ,ZHAO Yi,LI Xinlei,HE Kangyi,XIAO Jingran,SHI Jialin
School of Science,Yanshan University,Qinhuangdao 066000,China
下载:  PDF (4302KB) 
输出:  BibTeX | EndNote (RIS)      
摘要 为提升光学衍射教学效果,基于 Unity 与 Python 开发,采用 Unity 实现交互界面与功能集成,并通过 Python 封装核心计算模块,形成统一的跨语言协同架构,集数值仿真与虚拟实验于一体。依据傅里叶光学原理,实现了菲涅耳衍射与夫琅禾费衍射的模拟,支持圆孔、多缝等多种结构的参数调节,加入菲涅耳衍射半波带法测孔径、双缝夫琅禾费衍射测波长及朗琴光栅分辨本领分析等虚拟实验模块。仿真结果与理论高度吻合,验证了软件的准确性。该软件有效弥补了传统实验条件不足,为光学教学提供了直观、灵活且可靠的虚拟仿真解决方案。
服务
把本文推荐给朋友
加入引用管理器
E-mail Alert
RSS
()
作者相关文章
高 静
赵 毅
李新磊
和康怡
肖景冉
石嘉琳
关键词:  光学衍射仿真  虚拟实验  Unity  Python    
Abstract: In order to improve the teaching effect of optical diffraction,a specialized has been developed based
on Unity and Python.Unity is used to realize the integration of interactive interface and function,and the core
computing module is encapsulated by Python,establishing a unified cross-language collaborative architecture
that combines numerical simulation with virtual experimentation. Based on Fourier optics principles,the
software simulates both Fresnel and Fraunhofer diffraction,enabling flexible parameter adjustment for various
structures such as circular apertures and multi-slit configurations. It also incorporates advanced virtual
experiment modules,including aperture measurement using the half-wave zone method in Fresnel diffraction,
wavelength determination via double-slit Fraunhofer diffraction,and resolution analysis of Langqin grating.The
simulation results demonstrate strong consistency with theoretical predictions,validating the accuracy and
reliability of the software. The software effectively addresses the limitations of traditional experimental
conditions,offering an intuitive,flexible and reliable virtual simulation solution for optical education.
Key words:  optical diffraction simulation    virtual experiment    Unity    Python
                    发布日期:  2026-10-21     
:  TP 391  
  O 436.1  
基金资助: 河北省自然科学基金项目(F2020203050);燕山大学教学研究与改革项目(2026XJJG70);国家级大学生创新创业训练计
划项目(202610216033)
引用本文:    
高 静 , 赵 毅 , 李新磊 , 和康怡 , 肖景冉 , 石嘉琳 . 基于 Unity 和 Python 的光学衍射仿真软件设计与开发#br#[J]. 大学物理实验, 2026, 39(5): 89-96.
GAO Jing , ZHAO Yi, LI Xinlei, HE Kangyi, XIAO Jingran, SHI Jialin. Designand Development of an Optical Diffraction Simulation Software Based on Unity and Python#br#. Physical Experiment of College, 2026, 39(5): 89-96.
链接本文:  
https://dawushiyan.jluct.edu.cn/CN/10.14139/j.cnki.cn22-1228.2026.05.015  或          https://dawushiyan.jluct.edu.cn/CN/Y2026/V39/I5/89
[1] 李小芳, 张宇涵, 郭宇翔, 刘锡籼. 基于 Python 的牛顿环仿真实验平台[J]. 大学物理实验, 2026, 39(4): 67-72.
[2] 李柏霖 , 林淇淇 , 容日炎 , 刘帅 . 基于 Python 的双黑洞旋近引力波探测模拟[J]. 大学物理实验, 2026, 39(4): 102-105.
[3] 江 煜, 杨清雷, 王泽华, 刘 珂. 基于 Python 的静电场测绘实验交互式仿真探究#br#[J]. 大学物理实验, 2026, 39(1): 99-104.
[4] 周 权, 焦 洋, 黄思雨, 路后兵, 余 昊. 三维虚拟光学实验平台的实现与应用[J]. 大学物理实验, 2025, 38(5): 100-106.
[5] 王新光, 张晨斌, 庹忠曜, 张红光, 李永涛 . 基于 Python 的驻波仿真模拟[J]. 大学物理实验, 2025, 38(5): 64-73.
[6] 肖同悦 , 黄文瑞 , 黄佳燏, 王凤鹏 . 基于 Python 的全域双点光源干涉仿真 [J]. 大学物理实验, 2025, 38(2): 59-63.
[7] 迟逢逢, 邢 岩, 刘金祥, 刘胜利. Python在光的干涉和半波损失中的应用 [J]. 大学物理实验, 2025, 38(1): 88-93.
[8] 郭禹辰 , 刘 冰. 微波实验虚拟实验室设计与实践 [J]. 大学物理实验, 2024, 37(6): 111-115.
[9] 李小芳 , 张宇涵, 郭宇翔, 刘锡籼. 基于 Python 的杨氏双缝干涉和衍射的仿真模拟 [J]. 大学物理实验, 2024, 37(5): 113-117.
[10] 杨俊秀, 赵文来, 孔艳岩. 三极管共射放大实验电路频率特性的测试与分析 [J]. 大学物理实验, 2024, 37(4): 12-17.
[11] 马佳洪 , 杨道全 , 林坚钦 . 基于琼斯矩阵分析的偏振光虚拟仿真实验设计 [J]. 大学物理实验, 2024, 37(3): 94-98.
[12] 韦 仙 , 杨陈露, 尚敏婕, 王昕萌, 吴彦霞. 基于Python 的单摆非线性动力学研究 [J]. 大学物理实验, 2024, 37(3): 99-105.
[13] 周永军 , 王 凯 , 孙伟伦 , 林笑妍 , 陶 悦 . 基于 Unity3D 的光电效应虚拟仿真实验平台设计与开发 [J]. 大学物理实验, 2024, 37(2): 93-99.
[14] 任刘娜, 付文慧, 苏艳丽, 姜其畅 . 基于 Python 的光学现象可视化分析 [J]. 大学物理实验, 2024, 37(1): 104-106.
[15] 潘乘风, 牛相宏 , 张红光, 陈 伟 . 借助 Python 提高迈克尔逊干涉仪测光波波长实验数据的处理精度与图像可视化 [J]. 大学物理实验, 2023, 36(5): 81-85.
[1] . [J]. Physical Experiment of College, 2020, 33(1): 0 .
[2] . [J]. Physical Experiment of College, 2020, 33(1): 0 .
[3] WU Ming, ZENG Hong, ZHANG Wenpeng, ZHANG Yuanwei, DAI Zhenbing. Theoretical and Experimental Research of A zimuthal-Radial Pendulum [J]. Physical Experiment of College, 2020, 33(1): 1 -6 .
[4] LIU Weiwei, SUN Qing, LIU Chenglin. Research on Selection of Critical Magnetization Current for Measuring Charge-Mass Ratio of Electron by Magnetron Controlling [J]. Physical Experiment of College, 2020, 33(1): 7 -9 .
[5] DENG Li, LIU Yang, ZHANG Hangzhong, ZHOU Kewei, ZHAO guoru, WEI luanyi. MATLAB simulation of Fourier transform of Gaussian beam and the spatial filtering effects basing on 4F optical imaging system [J]. Physical Experiment of College, 2020, 33(1): 10 -16 .
[6] MA Kun. Experiment Study on the Measuring Young' s Modulus by Stretching [J]. Physical Experiment of College, 2020, 33(1): 17 -20 .
[7] FEI Xianxiang, CHEN Chunlei, WANG Wenhua, SHI Wenqing, HUANG Cunyou. Design of Lens Group Focal Length Measurement System Based on Object-Image Parallax Comparison [J]. Physical Experiment of College, 2020, 33(1): 21 -24 .
[8] LI Chunjiang, LI Luyu, YANG Jinglei, LI Tingrong, XIANG Wenli. A New Method for Simple and Rapid Measurement of Refractive Index [J]. Physical Experiment of College, 2020, 33(1): 25 -28 .
[9] WANG Cuiping, YAO Mengyu, YE Liu, LI Aixia, ZHANG Ziyun, DAI Peng. Progress and Applications of Electron Spin Resonance in Biology [J]. Physical Experiment of College, 2020, 33(1): 29 -33 .
[10] CHEN Yingmo, SHEN Siyi, WANG Jie. Study on the Characteristics of Silicon Photocells [J]. Physical Experiment of College, 2020, 33(1): 34 -36 .
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed