NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
July 31, 2014, 02:10:23 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
There is a better way to do it; find it. ..."Thomas Edison(1847-1931, American inventor, 1093 patients)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: how simulate a len changing thickness for convex or concave len?  (Read 7274 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
on: June 22, 2009, 01:00:25 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1155msg4448;topicseen#msg4448

Hi prof,

I examine the physlet applet, it seems to have a good example of a thickness of lens changing with focus length f.

I look through many examples of optics here, but i don't see one that has a changing thickness lens.
i notice the lens usually don't change thickness or drawing


any chance of some tips how to make one realistically?

 


* len01.PNG (5.28 KB, 668x355 - viewed 135 times.)

* len02.PNG (6.7 KB, 677x359 - viewed 108 times.)

* len03.PNG (5.46 KB, 668x357 - viewed 112 times.)

* len04.PNG (6.81 KB, 680x360 - viewed 103 times.)
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #1 on: June 22, 2009, 01:43:54 pm » posted from:Taipei,T'ai-pei,Taiwan

Quote
I examine the physlet applet, it seems to have a good example of a thickness of lens changing with focus length f.
Could you provide the URL of the examples ?

I think if you use thin lens approximation in the simulation, the thickness of the lens is only visual effect.

If you want to simulate effect due to thick lens, you need to use Snell's Law to calculate all the refractions occurs at the boundary of lens. You are welcomed to check out Thick Lens

If you want to show how the thickness of a lens affect the focus, that is another story!

Many drawing in Physlet optical bench is only an approximation.
Please check out the attached image. It assumed thin mirror and thin lens case.
The space in the simulation is not the same as real world.
The mirror and lens will be almost like a thin/short line if you want to draw it according to real dimension.


* physletoptics.png (11.83 KB, 664x497 - viewed 115 times.)
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: June 22, 2009, 02:03:17 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Could you provide the URL of the examples ?
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1140.0


I think if you use thin lens approximation in the simulation, the thickness of the lens is only visual effect.

If you want to simulate effect due to thick lens, you need to use Snell's Law to calculate all the refractions occurs at the boundary of lens. You are welcomed to check out Thick Lens

If you want to show how the thickness of a lens affect the focus, that is another story!

Many drawing in Physlet optical bench is only an approximation.
Please check out the attached image. It assumed thin mirror and thin lens case.
The space in the simulation is not the same as real world.
The mirror and lens will be almost like a thin/short line if you want to draw it according to real dimension.

Yes! i only want a visual effect, like physlet ones.

I google and found your thick lens http://www.compadre.org/OSP/document/ServeFile.cfm?ID=8257&DocID=886
but the function to draw the polygon that represents the lens is complicated. I doubt i can copy it over to make it work.

Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #3 on: June 22, 2009, 02:45:34 pm » posted from:Taipei,T'ai-pei,Taiwan

If you just need visual effect, you can change the width of shape (the GUI used to draw lens) and let it change with f.

EJS version of thick lens can be found at Lens (thick lens) and Mirror. The snell's law were used to calculate all the refraction to simulate a real thick lens.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #4 on: June 22, 2009, 09:12:09 pm » posted from:Singapore,,Singapore

If you just need visual effect, you can change the width of shape (the GUI used to draw lens) and let it change with f.

i understand your suggestion,

any tips how i get get a suitable equation?

size X = size*2*(2- Math.sin(f)) doesn't look good
  = size*2*(1/f) is the correct relationship but it doesn't look nice.

i am stuck thinking of a eqn Grin
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: June 22, 2009, 09:39:46 pm » posted from:Singapore,,Singapore

i used a simplified method

fixed relations
if ( f > 1 ) {
  fdraw = 1;
}
else {
  fdraw = f;
  }


Lens X size
= size*2*1/(fdraw+1)

looks better now Grin
Logged
Pages: [1]   Go Up
  Print  
There is a better way to do it; find it. ..."Thomas Edison(1847-1931, American inventor, 1093 patients)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
object in front of concave/convex mirror
Optics
Fu-Kwun Hwang 0 13231 Last post July 06, 2006, 09:26:33 am
by Fu-Kwun Hwang
object in front of concave/convex lens
Optics
Fu-Kwun Hwang 2 18198 Last post January 17, 2009, 04:52:41 pm
by lookang
Ray tracing of image forms with one or two combined convex/concave lens
Optics
Fu-Kwun Hwang 5 10646 Last post July 22, 2009, 10:38:57 pm
by Fu-Kwun Hwang
object in front of concave/convex lens
optics
ahmedelshfie 0 2172 Last post June 09, 2010, 01:48:32 am
by ahmedelshfie
Object in front of concave/convex mirror
optics
ahmedelshfie 0 3751 Last post June 09, 2010, 02:29:17 am
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.05 seconds with 22 queries.since 2011/06/15