Different people work on an optical device project: the optical engineer, the mechanical engineer, the product designer, and finally the client or the team that will make the decision. Each of them looks at the same system from a different side. The optical engineer talks about aberrations and irradiance distributions, the mechanical engineer about dimensions and mounts, and the client about whether the product will fulfill its function.
The common language is a picture: where the light goes and what gets in its way. RayViz lets you show it without leaving the CAD environment.
The problem: a result that no one but the author can see
An optical simulation result is usually a set of maps, plots, and numbers. For an optical engineer they are unambiguous, but for a mechanical engineer they only mean that "there is a problem somewhere". To fix it, you need to know which element of the construction causes it.
Typical questions from the mechanical team sound like this:
- does the beam fit in this housing,
- is this mount blocking the light,
- will the bend of the element cause light to escape,
- what happens if I move this element by a few millimeters.
It is best to answer them on a model the team already knows: the CAD solid.
RayViz: ray tracing in SOLIDWORKS
RayViz is a SOLIDWORKS add-in created by Lambda Research. It is fully integrated with the environment in which designers work, and adds to it the ability to assign optical properties and trace rays.
According to the manufacturer, RayViz lets you:
- assign optical properties from the TracePro database directly in SOLIDWORKS, saving them as part of the model,
- define light sources and run ray tracing to see the rays and their paths,
- use catalogs of LED sources and Gaussian and Lambertian sources with different beam widths,
- save the SOLIDWORKS model in the TracePro format and open it in TracePro for full analysis.
This way the designer sees the ray paths on their own solid, not on a separate model prepared by someone else.
What RayViz is best suited for
Lambda Research states that RayViz is particularly helpful in the early stages of product design. Example uses are:
Verifying the beam path. Checking whether light travels as planned, from the source to the target.
Checking vignetting. Checking whether mechanical elements block part of the beam.
Detecting light escaping from a light guide. Checking whether, at the bends of a light guide, light leaves the guide.
These are questions to which an answer can be obtained quickly and without a full energy analysis, and their outcome affects the construction. The earlier a problem is noticed, the cheaper it is to fix.
Showing it to the client: from the beam to a decision
When talking to a client or a board, simplicity works best. Showing ray paths on the product model lets you answer the question "how does it work" without explaining optical concepts. You can see where the light comes from, where it goes, and where it ends up.
When a more polished visualization is needed, for example for a sales presentation, you can use TracePro, which, according to Lambda Research, offers photorealistic rendering of the model. RayViz serves here as a quick first stage, and TracePro as the stage of full analysis and presentation.
From RayViz to TracePro
RayViz and TracePro do not compete but complement each other. The work path can look like this:
- The designer assigns optical properties and checks the ray paths in SOLIDWORKS (RayViz).
- After the initial verification, they save the model in the TracePro format.
- The optical engineer opens the model in TracePro and runs a full analysis: energy distributions, stray light, reports.
- The conclusions return to the construction and the cycle repeats.
This approach lets teams work together on one model and reduces the number of versions passed between them. For more on stray light analysis, see the article Stray light analysis: what it is.
Where OSLO fits in
If the system contains lenses, their design is usually done in OSLO, a program for designing and optimizing lens systems. The result can be transferred to TracePro, which accepts the LEN file format of OSLO. This makes a consistent workflow: optics design in OSLO, visualization and verification in CAD with RayViz, full analysis in TracePro. We write about working with collimators and systems with real mechanics in the article Collimator design.
Example workflow for communicating results
1. Start from the CAD model
Use the solid that the mechanical team already knows, instead of preparing a separate model for the simulation.
2. Assign optical properties
Choose materials from the property database and assign them to the model elements.
3. Define the source
Choose a source from the LED catalog or define a Gaussian or Lambertian source.
4. Run ray tracing and look at the paths
Check whether the beam travels as intended and is not blocked.
5. Gather the team's comments
Discuss the result with the designer and make changes to the solid, then repeat the ray tracing.
6. Move on to full analysis
Save the model in the TracePro format and perform an energy and stray light analysis.
7. Prepare the presentation
For the client, choose the views that show how the system makes sense, and if needed create a visualization in TracePro.
Which tool for which task
| Task | Tool |
|---|---|
| Early verification of ray paths in CAD | RayViz |
| Checking vignetting by the mechanics | RayViz |
| Detecting light escaping from a light guide | RayViz |
| Full optical analysis, energy distributions | TracePro |
| Stray light and reports | TracePro |
| Design and optimization of a lens system | OSLO |
The most common mistakes in communicating simulation results
Showing numbers only
Maps and plots without the context of the geometry are hard to understand for people outside optics.
A separate model for simulation and for construction
Two independent versions of a model quickly drift apart, and changes have to be made twice.
Leaving ray path verification for the end
Problems with vignetting or light escape are cheapest to fix at an early stage.
Treating visualization as a full analysis
Ray paths show what is happening, but they do not replace quantitative analysis, for example of the intensity distribution or the stray light level.
No shared acceptance criterion
Before showing a result, it is worth agreeing on what we expect from it, because otherwise each side will see something different in it.
Summary
A good simulation result is one that leads to a decision. For that to happen, it must be understandable to everyone who makes the decision: mechanical engineers, designers, and the client.
RayViz brings ray tracing into SOLIDWORKS, letting you show ray paths on the CAD solid and quickly check vignetting or light escaping from a light guide. TracePro takes the model on for full energy and stray light analysis, and OSLO is used to design the lenses themselves. Together they form a chain: from the idea, through verification in CAD, to full analysis, in which everyone looks at the same model.
Manufacturer resources
RayViz product page: Lambda Research: RayViz
RayViz in the SOLIDWORKS partner catalog: SOLIDWORKS: RayViz for SOLIDWORKS
Applications of TracePro in spectroscopy, including photorealistic visualization: Lambda Research: Spectroscopy Simulation Using TracePro