/OpticsWorkbench

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

WorkbenchIcon Optics Workbench

Geometrical optics for FreeCAD.
Performs simple raytracing through your FreeCAD objects.

Total alerts Language grade: Python

screenshot

Installation

Manual Installation

cd ~/FreeCAD/Mod/ 
git clone https://github.com/chbergmann/OpticsWorkbench.git

When you restart FreeCAD, "Optics Workbench" workbench should now show up in the workbench dropdown list.

Getting started

Tools

RayIcon Ray

A single ray for raytracing

2D Beam 2D Beam

A row of multiple rays for raytracing

Radial Beam 2D Radial Beam

Rays coming from one point going to all directions in a 2D plane

Spherical Beam Spherical Beam

Rays coming from one point going to all directions

Optical Mirror Optical Mirror

The selected FreeCAD objects will act as mirrors

Optical Absorber Optical Absorber

The selected FreeCAD objects will swallow the rays of light

Optical Lens Optical Lens

The selected FreeCAD objects will act as lenses
The Refration Index has to be provided. The parameter Material contains a list with pre defined refraction indexes.

Off Switch off lights

Switches off all Rays and Beams

On (Re)start simulation

Switches on and recalculates all Rays and Beams

Example Example 2D

generates the screenshot above

Example Example 3D

screenshot

Discussion

Please offer feedback or connect with the developer via the dedicated FreeCAD forum thread.

License

GNU Lesser General Public License v3.0