Skip to content

Commit

Permalink
updated version and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chbergmann committed Nov 12, 2023
1 parent 2679f5e commit de79526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Parameters:
- `HideFirstPart`: Hide the first part of every ray that comes from the source and goes to the first point of reflection/refraction/nirvana
- `MaxRayLength`: Maximum length of a ray
- `MaxNrReflections`: Maximum number of reflections. This prevents endless loops if the ray is inside a mirror box.
- `Ignored Optical Elements`: List of optical objects that will be ignored by the ray/beam.

### ![SunRayIcon](./icons/raysun.svg) Ray (sun light)
A number of rays with different wavelengths of visible light.
Expand Down Expand Up @@ -116,10 +117,6 @@ Diffraction at a grating object can be specified to be calculated using the orde
![screenshot](./examples/simple_transmission_grating.PNG)
*Above: shows the same body, defined as transmission grating. Note that the diffraction happens at the 2nd surface as specified by the grating type. Differences in refractive indices are taken into account.*

![screenshot](./examples/Concave_mirror_grating_thorlabs_1.PNG)
![screenshot](./examples/Concave_mirror_grating_thorlabs_2.PNG)
*Above 2 screenshots show that non-planar bodies can also be used in the example of a concave reflection grating. A STEP file for a thorlabs concave mirror is used and set as a grating with 500 lpm. Sunray of 1st and 2nd order are shown.*

![screenshot](./examples/echelle_example.PNG)
*Above: an example of a simple echelle spectrometer using a R2 52.91 lpm grating and a set of sunrays from order -47 to -82 (each order comprises ~5-10 nm, sampled by 15 rays around a center wavelength from blue to red) and a flint glass prism. Collimation and camera optics are thorlabs STEP files and a transparent absorber shows the resulting echelle spectrum. Entrance into the spectrometer design is by a 50 mu slit. This is an example with very long calculation time due to the high number of rays. **Note** that the sign of the order is not intuitive. If an error occurs stating that complex numbers are not supported, while diffraction with this order is considered valid by the user, try to change the sign of the order.*

Expand Down
4 changes: 2 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<package format="1" xmlns="https://wiki.freecad.org/Package_Metadata">
<name>Optics</name>
<description>Geometrical optics for FreeCAD. Performs simple raytracing through your FreeCAD objects.</description>
<version>1.0.9</version>
<date>2022-08-26</date>
<version>1.0.10</version>
<date>2023-11-12</date>
<maintainer email="christian.bergmann@mailbox.org">Christi</maintainer>
<license file="LICENSE">LGPL-2.1</license>
<url type="repository" branch="main">https://github.com/chbergmann/OpticsWorkbench</url>
Expand Down

0 comments on commit de79526

Please sign in to comment.