Geometric Optics Imaging through medium

Please login with a confirmed email address before reporting spam

Very new to COMSOL geometric optics, trying to model how an image looks after a cross grating / scattering medium / absorption layer domain or boundary. At first I want to keep it as simple as possible and looking for insight to support my challenges. All of my Multiphysics experience thus far has been in wave optics module.

To keep it as simple as possible for now the optical train would be image plane -> medium -> lens -> ray detector. I was able to compute ray trajectories previously, but some troubleshooting change i made to the physics broke things and now am getting an error each run time that prevents ray trajectories from being plotted. Advice / insight / applicable models to point to and learn from are all helpful. I already tried adapting the double gaussian lens for my purpose by adding an additional film domain right in front of the image plane but that seemed to have broken things.

Objective: Input scattering medium or cross grating parameters to model image formation through the medium. Idealistically similar to the double gauss lens tutorial results where the image and formation are next to each other.



1 Reply Last Post 7 nov. 2025, 13:45 UTC−5
Daniel Smith Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 15 hours ago 7 nov. 2025, 13:45 UTC−5

Hi, you are releasing rays from domains rather than boundaries, and adding detectors on domains rather than boundaries.

There are different ways of getting the image projected on a surface. I think in your case, following the method in the attached model. The two Phase Portrait plots in the Image Projection plot group show the appearance of an image from the release point of the rays (left) and on the target surface (right).

Daniel

-------------------
Website: www.phys2ai.com
LinkedIn: www.linkedin.com/in/daniel-smith-phys2ai
Hi, you are releasing rays from domains rather than boundaries, and adding detectors on domains rather than boundaries. There are different ways of getting the image projected on a surface. I think in your case, following the method in the attached model. The two Phase Portrait plots in the Image Projection plot group show the appearance of an image from the release point of the rays (left) and on the target surface (right). Daniel

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.