Refraction law and Fermat principle: a project using the ant colony optimization algorithm for undergraduate students in physics

被引:0
作者
Vuong, Q. L. [1 ]
Rigaut, C. [1 ]
Gossuin, Y. [1 ]
机构
[1] UMONS, Pl Parc 20, B-7000 Mons, Belgium
关键词
ant colony optimization; programming project; refraction; Fermat principle; physics simulation; COMPUTATIONAL PHYSICS;
D O I
10.1088/1361-6404/aab6e0
中图分类号
G40 [教育学];
学科分类号
040101 ; 120403 ;
摘要
A programming project for undergraduate students in physics is proposed in this work. Its goal is to check the Snell-Descartes law of refraction using the Fermat principle and the ant colony optimization algorithm. The project involves basic mathematics and physics and is adapted to students with basic programming skills. More advanced tools can be used (but are not mandatory) as parallelization or object-oriented programming, which makes the project also suitable for more experienced students. We propose two tests to validate the program. Our algorithm is able to find solutions which are close to the theoretical predictions. Two quantities are defined to study its convergence and the quality of the solutions. It is also shown that the choice of the values of the simulation parameters is important to efficiently obtain precise results.
引用
收藏
页数:12
相关论文
共 20 条