A 2D Demo for Spherical Mirrors in Excel – with virtual reflected rays

This is a demonstrative model for 2D spherical mirror ray tracing in Excel displaying both the real reflected rays and the virtual reflected rays. You you have the option of turning the visibility of the virtual rays off if you wish.  It works in Excel 2003 at about 40 frames per second and in Excel 2007 at about 4 frames per second. You can start it in  a hands-off demo mode by clicking the “Fully Automatic Demo” button and at any time you can hit the the “Demo Style” button to choose a flexible (pulsating) mirror or a rigid one.  You can stop this mode by clicking either the Joystick chart or the “Fully Automatic Demo” button. You can enter a semi-manual demo mode by clicking the Joystick chart and you will adjust the position of the light source by moving the joystick with the mouse. In order to be correctly callibrated make sure to click the red dot in the middle of the joystick chart whenever you start the virtual joystick. To stop the joystick macro you can click anywhere on the joystick chart. You can choose a flexible or rigid mirror in this mode too. You can adjust the speed of the model too using the “Demo Speed” button. You can use the model in fully manual mode by typing in various parameters. If you mess things up just download the model again from the site.

[sociallocker][/sociallocker]

This article has 6 Comments

  1. Martijn,

    Unfortunately this sheet is limited to a spherical mirror, you could change the mirror but the reflection will not be correct. Sorry.

    George

  2. Hi,

    you have created some amazing spreadsheets! I am trying to change the ‘mirrors_experimental_5.xls’ spherical mirror to a parabolic shape. I had no problem to change the red mirror shape into a parabola but the ray tracing isn’t done by the same source parameters so it seems. I don’t quite understand how the matrix calculation goes. Could I mail you the spreadsheet to show how far I’ve got, or, maybe you have already done a version with a parabol instead of a sphere?

  3. Thanks, Chrisham. The math stuff is mostly high school. The most important in developing any model is not your background or IQ but the time you spend and persistance you put into it. Try to play a lot and to read as little as you can. Reading spoils your creativity and motivation. There are few things you need to know well such as Pythagoras theorem, triangle similarity, vector composition etc (mainly high school stuff). When you forget some theory get the habit to derive it from very basic principles. Contrary to the appearances you actually save time doing so. If you can visualize something in your mind as a simple mechanical analogy you WILL be able to model it. Math is secondary! Stop reading, collaborating, listening to or asking other people. Finish school if you are still in and get a job. In your spare time start playing with the models that interest you the most. And do spend 10 hours of thinking for any minute of reading. You are gonna first build a huge confidence level and then achieve much more like this. Oh, and be slow even for small models, don’t rush if you want to achieve something. Rushing will waste much more time than you think, in the long term, plus it might be the main obstacle in getting where you need to go. Trust your own mind 1000 times more than anyone else, no matter who that anyone else is (it can be Newton for instance). Cheers, George

  4. Your stuff is always amazing…. I wish I could make sense of how you come up with the math stuff…..sigh!

  5. How much it’s possible it’s actually it’s up to the user. Cheers, George

Leave a Reply

Your email address will not be published. Required fields are marked *