Skip to content

StasFainer/ray-optics

 
 

Repository files navigation

Example figure

Ray Optics Simulation

DOI

A web app for creating and simulating 2D geometric optical scenes. Our goal is to make it easy for students to build physical intuition by "playing around", for teachers to do dynamical demonstrations, and at the same time also include tools for more advanced usage.

Features

  • Simulate various light sources: ray, beam, and point source
  • Simulate reflection in linear, circular, and parabolic mirror
  • Simulate beam splitter
  • Simulate refraction in linear or circular interfaces, including both refracted and reflected rays
  • Simulate mixture of colors and chromatic dispersion
  • Simulate ideal lens/mirror, which obeys lens/mirror equation
  • View extensions of rays to see if they converge to a virtual image
  • View real images, virtual images, and virtual objects directly
  • View images that can be observed from some given position
  • Distance, angular, energy flow, and momentum flow measurements
  • Export as SVG diagram

Links

Contributing

Contributions are welcome. Possible contributions include but not limited to the followings:

  • New tools
  • New items in the gallery
  • New translations

For contribution guidelines, see CONTRIBUTING.md.

Cite this project

APA:

Tu, Y.-T. (2016). Ray Optics Simulation [Computer software]. https://doi.org/10.5281/zenodo.6386611

BibTeX:

@software{Tu_Ray_Optics_Simulation_2016,
  author = {Tu, Yi-Ting},
  doi = {10.5281/zenodo.6386611},
  month = {2},
  title = {{Ray Optics Simulation}},
  url = {https://phydemo.app/ray-optics/},
  year = {2016}
}

License

Copyright 2016–2023 Yi-Ting Tu

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Third-Party Software

Ray Optics Simulation includes or depends upon the following third-party software, either in whole or in part. Each third-party software package is provided under its own license.

FileSaver.js

FileSaver.js is distributed under the MIT license. The source code is available at: https://github.com/eligrey/FileSaver.js

canvas2svg

canvas2svg is distributed under the MIT license. The source code is available at: https://github.com/gliffy/canvas2svg

Bootstrap

Bootstrap is distributed under the MIT license. The source code is available at: https://github.com/twbs/bootstrap

jQuery

jQuery is distributed under the MIT license. The source code is available at: https://github.com/jquery/jquery

MathQuill

MathQuill is distributed under the Mozilla Public License, version 2.0. The source code is available at: https://github.com/mathquill/mathquill

Evaluatex

Evaluatex is distributed under the MIT license. The source code is available at: https://github.com/arthanzel/evaluatex

MathJax

MathJax is distributed under the Apache License, version 2.0. The source code is available at: https://github.com/mathjax/MathJax-src

json-url

json-url is distributed under the MIT license. The source code is available at: https://github.com/masotime/json-url

Math.js

Math.js is distributed under the Apache License, version 2.0. The source code is available at: https://github.com/josdejong/mathjs

TeX Math Parser

TeX Math Parser is distributed under the MIT license. The source code is available at: https://github.com/davidtranhq/tex-math-parser

About

Create & simulate 2D geometric optical scenes interactively.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 66.9%
  • JavaScript 32.1%
  • Other 1.0%