Ray Optics Module Updates
For users of the Ray Optics Module, COMSOL Multiphysics® version 5.6 brings faster and more accurate ray rendering, new dedicated features to scatter rays in dilute particle-laden media and on rough surfaces, and a new Ideal Lens feature for quick setup of paraxial lens systems without the need for a detailed geometry. Read more about these and other Ray Optics features below.
Faster and More Accurate Ray Rendering
When rendering a Ray Trajectories plot, a new setting can be used to accurately render all intersection points of rays with surfaces in the geometry, even if they do not correspond to output time steps in the solution data. To perfectly render every intersection point of every ray with a surface, the old implementations scaled quadratically with the number of rays, whereas the new behavior scales linearly with the number of rays, potentially giving a massive speedup when the number of rays is very large. This also applies to the calculation of intersection points between rays and a sphere, hemisphere, or plane. You can see this new feature in the following models:
- bow_tie_laser_cavity
- laser_cavity_with_a_thin_lens
- transparent_light_pipe
- petzval_lens_stop_analysis
- two_mirror_laser_cavity
- white_pupil_echelle_spectrograph
Partial Transparency in Plots
While partial transparency in plots can now be used across a wide range of application areas, its usage in ray optics is notable because many plots will have multiple layers, such as ray trajectories together with surfaces in the surrounding geometry. Partial transparency allows the rays to be shown more clearly even as they propagate through the barrel of a camera. You can see the new transparency feature in the following models:
- compact_camera_module
- cross_grating_echelle_spectrograph
- double_gauss_lens_image_simulation (new model)
- double_gauss_lens
- gregory_maksutov_telescope
- luneburg_lens
- newtonian_telescope_structural_analysis
- newtonian_telescope
- petzval_lens_stop_analysis
- petzval_lens
- schmidt_cassegrain_telescope
- white_pupil_echelle_spectrograph
Optical Scattering in Domains
You can now model ray attenuation in a domain containing water droplets, dust, smoke, bubbles, or other small particles with the Scattering Domain node. This new feature computes the extinction, scattering, and absorption cross sections of the scattering particles. It supports Rayleigh theory, Mie theory, and some asymptotic models for optically large scattering particles. The functions that compute the extinction and scattering cross sections from the Mie theory are now available as general functions, and can be used anywhere in the COMSOL® software. The extinction of rays can be random or, if the ray intensity is solved for, each ray's intensity can be attenuated continuously.
Reflection and Refraction at Rough Surfaces
A Scattering Boundary feature has been introduced to allow for more flexibility in how rays are scattered from surfaces. You can now choose to scatter rays in reflection and transmission.
A Scattering Surface boundary condition can be used to show the effect of changing surface slope error on spot diagrams.
Ideal Lens Boundary Condition
An Ideal Lens feature can be used to model a paraxial surface with a known focal length. You can also use thin and thick lens formulations to specify the equivalent paraxial lens.
New Cone-Based Ray Release: Flat Cone in 3D
In 3D models, when you release a cone of rays, you can now choose to define a ray fan or a flat cone. You can orient the flattened cone of rays so that it lies in any plane. Additionally, some other conical ray release features offer more flexibility in choosing the transverse direction, meaning that you now have more control over the exact placement of rays in the conical distribution.
Random Sampling of Vacuum Wavelength, Frequency, and Other Variables
When you initialize auxiliary dependent variables on particles, you can sample their initial values deterministically or, new with version 5.6, randomly. When using the random option, you can sample from built-in normal, lognormal, or uniform distributions. You can also sample deterministically or randomly from a wavelength or frequency distribution if the rays are polychromatic.
Reset Ray Frequency or Vacuum Wavelength
When rays are reflected at a boundary, you can now choose to reinitialize their vacuum wavelength or frequency. You can specify a new value directly or sample it from a distribution.
Easier Sampling from Uniform Distributions
When you initialize auxiliary dependent variables on particles, if the initial values are sampled from a uniform distribution, you now specify the maximum and minimum value in the distribution. Previously, it was necessary to specify a mean and standard deviation. This also applies to initial values of the ray frequency or vacuum wavelength when releasing polychromatic light. You can see this new setting in the Czerny-Turner Monochromator model.
Absorbing Thin Dielectric Films
You can now compute the deposited ray power in absorbing thin dielectric films on boundaries by adding the Deposited Ray Power subnode to a Material Discontinuity node. If the reflecting and refracting surface has a thin coating with a complex-valued refractive index, then some energy will be deposited onto the surface. Additionally, the sign conventions for handling complex-valued refractive indices in thin dielectric films have been updated to be more consistent with the treatment of complex-valued refractive indices in domains.
New Geometry Parts
In COMSOL Multiphysics® version 5.6, the Part Library for the Ray Optics Module offers a new Spherical Polygonal Lens part.
New Tutorial Models and Applications
COMSOL Multiphysics® version 5.6 brings two new tutorial models to the Ray Optics Module.
Double Gauss Lens Image Simulation
Application Library Title:
double_gauss_lens_image_simulation
Petzval Lens Geometric Modulation Transfer Function
Application Library Title:
petzval_lens_geometric_modulation_transfer_function