大学物理 ›› 2025, Vol. 44 ›› Issue (4): 57-.

• 教学改革 • 上一篇    下一篇

基于Julia语言可视化物理教学的应用

王巍   

  1. 南京邮电大学理学院,江苏 南京210023
  • 收稿日期:2024-08-21 修回日期:2024-09-01 出版日期:2025-06-25 发布日期:2025-07-01
  • 作者简介:王巍(1988—),男,浙江青田人,南京邮电大学理学院讲师,博士,主要从事大学物理教学和量子磁性等强关联电子系统工作.
  • 基金资助:
    南京邮电大学科研启动基金(NY220095)

Applicationsof visualization in physics teaching by Julia language

  1. School of Science, Nanjing University of Posts and Telecommunications, Nanjing, Jiangsu 210023, China
  • Received:2024-08-21 Revised:2024-09-01 Online:2025-06-25 Published:2025-07-01

摘要: 本文基于Julia语言的Makie.jl库以及DifferentialEquations.jl库,对简谐振动合成、受迫振动以及来自光栅、正多边形孔和圆孔的夫琅禾费衍射进行了全面的交互式可视化的动态模拟.Julia语言的应用为教师及学生提供了一种新的教学科研手段,有助于提高教学效果,促进学生学习热情.

关键词: Julia语言, 交互式可视化, 大学物理

Abstract: Based on the Makie.jl and DifferentialEquations.jl libraries in the Julia language, we present a comprehensive interactive visualization of harmonic oscillation synthesis, forced vibration, and Fraunhofer diffraction from gratings, regular polygonal apertures, and circular apertures. The application of Julia language offers a novel tool for teaching and research, benefiting both instructors and students by enhancing educational outcomes and fostering student enthusiasm for learning.

Key words: Julia language, interactive visualization, college physics