Optics in FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Veteran
- Posts: 3156
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Optics in FreeCAD
something to play with...
http://satu0king.github.io/LightXlab/simulator/
https://www.youtube.com/watch?v=AxHcLncRkbM
http://satu0king.github.io/LightXlab/simulator/
https://www.youtube.com/watch?v=AxHcLncRkbM
-
- Posts: 31
- Joined: Wed Apr 29, 2015 9:20 pm
Re: Optics in FreeCAD
Excellent work. With some headscratching, we may soon be able to figure out how to couple cheapo 500W laser diode stacks to fibers for building laser cutters for metal. 500W laser Diodes are available for around $1000 like https://www.alibaba.com/product-detail/ ... 61539dmDmO. And this guy talks about how to simulate the raytracing - https://www.aphys.kth.se/polopoly_fs/1. ... s_2009.pdf . It is great that FreeCAD can be extended to just about anything.
Founder, Open Source Ecology
http://opensourceecology.org/
http://opensourceecology.org/
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Optics in FreeCAD
It's always fun to re-read old discussions
I recently found out, there is a program called "Comsol". It cost some serious $$$$$, but apparently it can do pretty much anything physics-related, mechanics, cfd, electrodynamics, acoustics, plasma physics, semiconductors, ..., and custom equations. And allows to tie all these disciplines into one problem. I'm slowly looking into attending a course, it looks like it can elevate engineering caps to a whole new level.
-
- Veteran
- Posts: 3156
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Optics in FreeCAD
Yep.
1x basic module + 40 addons ==> 34000 USD
In germany, a nurse must work 2 years for that...
pricelist:
http://collaborate.bu.edu/engit/Comsol? ... celist.pdf
Re: Optics in FreeCAD
The linked pricelist is the Educational Discount Plan. I wonder what FreeCAD charges from universities .
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Optics in FreeCAD
Just a few videos from an commercial optical design package... Putting everything together what has been shown and discussed in this topic does show some good potential
https://www.youtube.com/watch?v=fwTl236-CYM
https://www.youtube.com/watch?v=qeHdZlcwof8
https://www.youtube.com/watch?v=DJQADlaJvPc
https://www.youtube.com/watch?v=7SIXXMCZ5kA
https://www.youtube.com/watch?v=YtzhNVgeU1I
https://www.youtube.com/watch?v=ScsAYxixy98
https://www.youtube.com/watch?v=fwTl236-CYM
https://www.youtube.com/watch?v=qeHdZlcwof8
https://www.youtube.com/watch?v=DJQADlaJvPc
https://www.youtube.com/watch?v=7SIXXMCZ5kA
https://www.youtube.com/watch?v=YtzhNVgeU1I
https://www.youtube.com/watch?v=ScsAYxixy98
Re: Optics in FreeCAD
I have started to create a workbench for optics:
https://github.com/chbergmann/OpticsWorkbench
Work is still in progess, but you can already draw some sketches and use it as optical mirrors
https://github.com/chbergmann/OpticsWorkbench
Work is still in progess, but you can already draw some sketches and use it as optical mirrors
-
- Posts: 327
- Joined: Tue May 28, 2019 10:51 am
Re: Optics in FreeCAD
Looks especially nice for simpler use cases than many optics tools I have looked at...and not used.
However in my own dumb user klutz fashion, I have not quite understood how to define the elements. It would be very usefull if you could share the FreeCAD model of your example, so I can get past whatever sillyness I have done to cause below (just two sketches, each with one line, and one sketch made into a mirror, then adding a Ray gives below)
Code: Select all
08:06:28 Illegal storage access...
08:06:28 Traceback (most recent call last):
File "C:\Users\spanner888\AppData\Roaming\FreeCAD\Mod\OpticsWorkbench\Ray.py", line 40, in execute
self.redrawRay(fp)
File "C:\Users\spanner888\AppData\Roaming\FreeCAD\Mod\OpticsWorkbench\Ray.py", line 64, in redrawRay
self.traceRay(fp, pos, linearray)
File "C:\Users\spanner888\AppData\Roaming\FreeCAD\Mod\OpticsWorkbench\Ray.py", line 95, in traceRay
isec = line.Curve.intersectCC(edge.Curve)
<class 'RuntimeError'>: Illegal storage access! Please save your work under a new file name and restart the application!
Then I tried making another sketch with a rectangle and made that an absorber, but still get above error trying to add a Ray, so your example file would help me work out how to correctly use your addon.
Re: Optics in FreeCAD
Has anyone play with this KDP-2 from http://ecalculations.com/ An old Fortran design program
And there is a Koko which is based on KDP-2, its longer-term plan is to integrate with FreeCAD
https://github.com/dinosauria123/Koko
And there is a Koko which is based on KDP-2, its longer-term plan is to integrate with FreeCAD
https://github.com/dinosauria123/Koko
Re: Optics in FreeCAD
I have created a new discussion thread in the Open Discussion section:
https://forum.freecadweb.org/viewtopic.php?f=8&t=59860
I will answer your posts there.
https://forum.freecadweb.org/viewtopic.php?f=8&t=59860
I will answer your posts there.