A Linha de Produtos COMSOL®

Simulate Ray Tracing in Optically Large Systems with the Ray Optics Module

Optical Ray Tracing Software

The Ray Optics Module is an add-on to the COMSOL Multiphysics® software that allows you to model electromagnetic wave propagation with a ray tracing approach. The propagating waves are treated as rays that can be reflected, refracted, or absorbed at boundaries in the model geometry. This treatment of electromagnetic radiation uses approximations that are appropriate when the geometry is large compared to the wavelength.

Combining the Ray Optics Module with other modules from the COMSOL® product suite enables ray tracing in temperature gradients and deformed geometries, allowing for high-fidelity structural-thermal-optical performance (STOP) analysis within a single simulation environment.

What You Get with the Ray Optics Module

The Ray Optics Module provides tools for specialized ray optics modeling when combined with the core functionality of the COMSOL Multiphysics® software platform.

The Ray Optics Module includes tools for modeling:

  • Automotive lighting
  • Building and room lighting
  • Cameras
  • Graded-index (GRIN) lenses
  • Interferometers
  • Laser cavity stability analysis
  • Laser focusing systems
  • Lidar systems
  • Optical filters
  • Monochromators
  • Solar radiation and solar energy harvesting
  • Spectrometers
  • Structural-thermal-optical performance (STOP) analysis
  • Telescopes
  • Thermal lensing


Multiphysics couplings:

Included with the Ray Optics Module:

  • Ray heat source



Ray Optics Module Features and Functionality

Explore the features and functionality of the Ray Optics Module in more detail by expanding the sections below.

The Ray Optics Module includes a library of essential geometry parts, including mirrors, lenses, prisms, and aperture stops. Each of these parts is fully parameterized, and many of them include variants with different combinations of input parameters so they can be conveniently modified to fit an optical design.

For example, you can insert a spherical or conic mirror into the geometry sequence; specify whether the surface is concave or convex; enter its radius of curvature; and then specify the clear diameter, full diameter, and diameter of the flat (if any). These inputs can be adjusted manually or by running a Parametric Sweep study. Additionally, the parts can be oriented with respect to previously inserted parts using built-in work planes, and the parts can automatically create named selections to easily assign boundary conditions to the correct surfaces.

The Part Library for the Ray Optics Module includes the following:

  • Lenses
    • Spherical
    • Cylindrical
    • Aspheric
    • Doublet
  • Mirrors
    • Spherical
    • On- and off-axis conic
    • Planar
  • Aperture stops
    • Circular
    • Rectangular
  • Compound parabolic concentrators
    • Axisymmetric
    • Trough
  • Beam splitter
  • Prism
  • Retroreflector
An image showing a collection of parts included with the Ray Optics Module. The Part Library for the Ray Optics Module includes a wide variety of geometry parts, including: elliptical planar mirror (1), compound parabolic concentrator (2), spherical lens (3), spherical mirror (4), rectangular and circular aperture stops (5), off-axis conic mirror (6), and corner cube retroreflector (7).
A visualization of the rays in a Newtonian telescope. Rays in a Newtonian telescope featuring a spherical primary mirror and flat elliptical secondary mirror.
A visualization of the rays in a model of the Hubble Space Telescope. Rays in the Hubble Space Telescope, which uses a standard Ritchey-Chrétien geometry consisting of two on-axis conic mirrors.

The refractive index of each medium can be specified directly or derived from an optical dispersion relation. The dispersion coefficients, such as Sellmeier coefficients, can be loaded from a material database or entered directly into a user-defined material. The refractive index can be complex, wherein the real part determines the speed of light in the medium, while the imaginary part causes ray attenuation or gain.

Thermo-optic dispersion coefficients are also available to adjust the refractive index based on temperature. There is also a temperature-dependent Sellmeier dispersion model that combines the temperature and wavelength dependence into a single set of Sellmeier coefficients, which is especially useful for cryogenic materials.

A slice plot of a double Gauss lens system. A double Gauss lens system shown as a 2D slice. The six lenses are made of three different glasses (shown in blue, green, and red) that have different optical dispersion coefficients.

Rays automatically detect geometry boundaries in their path without the need to specify the order of ray-boundary interactions. When a ray reaches a surface, it can be diffusely or specularly reflected, refracted, or absorbed. You can also assign conditional boundary interactions or randomly choose between two different boundary interactions with a given probability.

At boundaries between dielectric media, each incident ray is deterministically split into reflected and refracted rays. Total internal reflection is also detected automatically. If the ray intensity is solved for, it is automatically updated for the reflected and refracted rays according to the Fresnel equations. You can also define thin dielectric layers on material discontinuities, which can be used as filters, antireflective coatings, or dielectric mirrors.

The Ray Optics Module includes boundary conditions for:

  • Absorption
  • Diffraction gratings
  • Diffuse (Lambertian) scattering
  • Predefined optical components
    • Linear polarizers
    • Linear wave retarders
    • Circular wave retarders
    • Depolarizers
    • User-defined Mueller matrices
  • Reflection/refraction at boundaries between dielectric media
    • Automatically detect total internal reflection (TIR)
    • Reinitialize ray intensity using the Fresnel equations
    • Add single-layer or multilayer thin dielectric coatings to any surface
  • Specular reflection
A visualization of the rays in a white pupil Échelle spectrograph. A white pupil Échelle spectrograph is modeled by employing two mirrors, two diffraction gratings, and a Petzval lens system, combined to sort rays into a 2D array of points according to their wavelength.

Rays can be initialized by entering their coordinates directly, importing the coordinates from a text file, or releasing rays from selected geometric entities. Rays can be released from any selection of domains, boundaries, edges, or points in the geometry. There are also dedicated features to produce solar radiation at a specified location on Earth's surface or to release reflected or refracted rays from an illuminated boundary.

When solving for the ray intensity, it can be initialized either by using an expression or loading a photometric data file (specifically an IES file) into the model.

At each release position, the rays can be launched in a user-specified direction, or a number of different directions can be sampled from a spherical, hemispherical, conical, or Lambertian distribution.

A screenshot of the COMSOL software GUI with a solar dish receiver model open. Ray trajectories and deposited power in the focal plane for a solar dish receiver system under ideal conditions (left) and real conditions (right), accounting for surface roughness and solar limb darkening.

The rays can propagate through both homogeneous and graded-index (GRIN) media. They can also be monochromatic or polychromatic, where you can specify a distribution of wavelengths or enter a set of discrete values.

To solve for additional quantities along the ray paths, the Geometrical Optics interface includes built-in handling of ray intensity and polarization. The intensity calculation uses a form of Stokes–Mueller calculus that makes it easy to keep track of fully polarized, unpolarized, and partially polarized rays.

A visualization of a collimated incident beam focused through a Luneburg lens. A collimated incident beam is focused to a point on the other side of this Luneburg lens, a type of spherically symmetric graded-index (GRIN) lens.

With the COMSOL Multiphysics® postprocessing tools, you have the ability to create both visually pleasing and informative simulation results. You can plot rays as lines, tubes, points, and vectors in 2D or 3D, and color the rays by an arbitrary expression that can vary between different rays and even along each ray's path. When solving for ray intensity, you can also plot polarization ellipses along the rays.

COMSOL Multiphysics® also provides the flexibility to show more than just ray paths, with other dedicated plots to view interference fringes and to decompose optical path difference into individual monochromatic aberration terms. You can also plot the intersection points of rays with a plane, sphere, hemisphere, or a more specialized surface.

An image of the COMSOL Multiphysics GUI with a Czerny-Turner spectrometer model open. Ray diagram of a spectrometer in a crossed Czerny–Turner configuration with rays colored by wavelength (left) and a 1D plot of the spectral resolution as a function of wavelength (right).
An example of a stability analysis performed in COMSOL. Stability analysis of a laser cavity in a symmetric bowtie configuration. In the 1D plot, the results of the ray trace are compared to the cavity stability predicted by ABCD matrix theory. The ray diagram shows a stable configuration (a parameter value for which the stability is 1 because the ray remains trapped.

After building a ray optics model, there are a host of further opportunities available with the Application Builder that further simplify the simulation workflow. For instance, you can restrict the inputs and control the outputs of your model, parameterize the model geometry, and provide templated report generation.

You can use simulation applications to run your own tests more quickly or distribute applications to other members of your team to run their own tests, further freeing up your time and resources for other projects.

The process is simple:

  1. Transform your ray optics model into a simple user interface (an application)
  2. Customize the application to your needs by selecting inputs and outputs for the application users
  3. Use the COMSOL Server™ or COMSOL Compiler™ products to make them accessible to other team members
  4. Enable your team to run their own design analyses without further assistance

Expand the capabilities of simulation throughout your team, organization, classroom, or customer base by building and using simulation applications.

A screenshot of a simulation application used to design solar dish receivers. The solar dish receiver model, turned into a simulation application, is more accessible for designing solar dish receivers without knowing the background physics.

Optical Design and Diagnostics for the Real World

Optical systems can be extremely sensitive to changes in their environment, especially when operating under extreme conditions such as underwater and outer space. You can create high-fidelity optical simulations using the COMSOL Multiphysics® software and the specialized add-on Ray Optics Module.

The most obvious environmental factor is temperature, since the refractive indices of most materials follow some form of thermo-optic dispersion relation. Physical deformations in the optical system, either due to thermal stress or other applied loads, can also significantly affect the image quality. You can conveniently account for all of these multiphysics phenomena in a single integrated modeling environment, making it easy to conduct coupled structural-thermal-optical performance (STOP) analyses. You can also combine the Ray Optics Module with other add-on modules that offer expanded structural and thermal modeling capability — for example, to account for thermal radiation, conjugate heat transfer, hyperelastic materials, and piezoelectricity.



Vdara is a registered trademarks of CityCenter Land, LLC.



Vdara is a registered trademarks of CityCenter Land, LLC.

Toda empresa possui uma necessidade de simulação diferente. Para avaliar completamente se o software COMSOL Multiphysics® atenderá ou não aos seus requisitos, entre em contato conosco. Ao falar com um de nossos representantes de vendas, você receberá recomendações personalizadas e exemplos totalmente documentados para ajudá-lo a aproveitar ao máximo sua avaliação e orientá-lo a escolher a melhor opção de licença para atender às suas necessidades.

Basta clicar no botão "Contate a COMSOL", preencher seus dados de contato, fazer qualquer comentário ou pergunta, e enviar. Você receberá uma resposta de um representante de vendas em um dia útil durante o horário comercial.

Próximo Passo:
Solicite uma Demonstração do Software