Modeling reflection and refraction of freeform surfaces
DOI:
https://doi.org/10.31349/RevMexFisE.22.020211Keywords:
Snell’s law, Reflection law, Ray tracing, Total Internal Reflection, Freeform Optics, Nonimaging OpticsAbstract
In this work, we present a detailed procedure for computer implementation of the laws of refraction and reflection on an arbitrary surface with rotational symmetry with respect to the propagation axis. The goal is to facilitate the understanding and application of these physical principles in a computational context. This enables students and instructors alike to develop simulations and interactive applications that faithfully replicate the behavior of light and sound propagating in a diversity of media separated by arbitrary surfaces. In particular, it can help to explore freeform optics. Additionally, we include a practical example demonstrating these implementations using either Matlab or open-source Octave programming language.
References
K. Falaggis, et al., Freeform optics: introduction, Opt. Express 30 (2022) 6450, https://doi.org/10.1364/OE.454788
E. Hecht, Optics, 4th ed. (AddisonWesley, San Francisco, CA, 2002)
D. T. Blackstock, Fundamentals of Physical Acoustics, 4th ed. (John wiley and Sons, New York, NY, 2000)
E. Kang and J. Park, Development of sound reflection and refraction experiment equipment, Phys. Educ. 57 (2022) 065015, https://doi.org/10.1088/1361-6552/ac8a84
M. Born and E. Wolf, Principles of optics: electromagnetic theory of propagation, interference and diffraction of light (Elsevier, 2013)
D. Malacara Hernández, Óptica básica, 3rd ed. (Fondo de cultura económica, 2015)
A. Cornejo Rodríguez and G. Urcid Serrano, Reporte Tecnico: Óptica geométrica resumen de conceptos y fórmulas Parte I, INAOE (2005)
H. Kuttruff, Room acoustics, 5th ed. (CRC Press, UK, 2009)
A. Krokstad, S. Strom, and S. Sørsdal, Calculating the acoustical room response by the use of a ray tracing technique, J. Sound Vib. 8 (1968) 118, https://doi.org/10.1016/0022-460X(68)90198-3
MathWorks, MATLAB 24.2.0.2637905 (R2024b) (The MathWorks Inc., Natick, Massachusetts, United States, 2024), URL https://www.mathworks.com
J. W. Eaton et al., GNU Octave version 9.2.0 manual: a high-level interactive language for numerical computations (2024), https://www.gnu.org/software/octave/doc/v9.2.0/
J. Rogel-Salazar, Essential MATLAB and Octave (CRC Pres, Boca Raton, 2014)
J. Stewart et al., Precalculus: Mathematics for calculus, 8th ed. (Cengage Learning, Boston, MA, 2024)
S. Lang, A first course in calculus, 5th ed. (Springer-Verlag, New York, 1986)
D. L. Lee, Electromagnetic principles of integrated optics (John wiley and Sons, USA, 1986)
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 J. E. Gómez-Correa, A. L. Padilla-Ortiz, S. Chávez-Cerda

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Authors retain copyright and grant the Revista Mexicana de Física E right of first publication with the work simultaneously licensed under a CC BY-NC-ND 4.0 that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.