Skip to main content

TCMU in Monte Carlo analyses


James.Fry
Ultraviolet
Forum|alt.badge.img

I’ve noticed that if I have a prescription with all coatings on all surfaces with the “Use Layer Multiplier And Offsets” box checked and then execute a Monte Carlo (MC) analysis--in this case just on all coating layer thicknesses via TCMU--all the aforementioned boxed on all surfaces are unchecked and, in order to perform a transmission analysis, I have to check on the boxes again (in the MC files).  This is rather cumbersome.  Is there a way--via a macro command--to turn on layer multipliers?  Or can future OS versions leave whatever’s “checked” in a “checked” state when the MC files get created?

Did this topic help you find an answer to your question?

6 replies

Jeff.Wilde
Luminary
Forum|alt.badge.img+3
  • Luminary
  • 491 replies
  • April 27, 2023

To try and replicate your problem, I used the Cooke Triplet example file and changed the AR coating on surface 1 to a HEAR1 coating with three layers.  The “Use Layer Multiplier and Offsets” option was checked for this coating, and I added TCMU tolerance operands for the 3 layers.  Then I ran a MC analysis and saved a few files.  They all retained the coating multiplier/offsets check option.

So, I wasn’t able to replicate your problem, at least with one multi-layer coating on a single surface.  I’m using OS v23.1.

Regards,

Jeff


James.Fry
Ultraviolet
Forum|alt.badge.img
  • Author
  • Ultraviolet
  • 33 replies
  • April 27, 2023

Thanks, Jeff.  I’m using 23.1.02. 

I used the “Cooke 40 degree field.zos” file from the Samples/Sequential directory.  The prescription has a single-layer AR coating (“AR”) applied to each surface.  I turned on the “Use Layer Multiplier and Offsets” for each surface and ran a Monte Carlo with TCMU -0.03 0.03 as the range on each surface.  When I opened the Monte Carlo result, “Use Layer Multiplier and Offsets” was turned off.  Furthermore, I saved the sample file as “Cooke 40 degree field_TCMU.zos” with “Use Layer Multiplier and Offsets” turned on for all coated surfaces.  When I opened the file, however, everything was turned off on every surface.  

Hmm.


MichaelH
Ansys Staff
Forum|alt.badge.img+2
  • Ansys Staff
  • 348 replies
  • April 27, 2023

Hi James,

If you use the “Cooke 40 degree field.zmx” file, everything works fine.

You have fallen into the binary ZOS trap.  Even though the “new” file format is over 2 years old, there are still a lot of bugs in how it was implemented (and absolutely zero benefit as of now).  In 2022, OpticStudio gave the option of choosing ZMX as the default format.  I would ALWAYS save files as ZMX and avoid ZOS at all costs until a) it is more fully debugged and b) provides actual useful features.  

 


James.Fry
Ultraviolet
Forum|alt.badge.img
  • Author
  • Ultraviolet
  • 33 replies
  • April 27, 2023

Apparently I’ve fallen into the Sarlacc pit again!  I’ll give a .zmx version a go.  Thanks for the response.


Jeff.Wilde
Luminary
Forum|alt.badge.img+3
  • Luminary
  • 491 replies
  • April 27, 2023

Yes, I saved the file as .zos and re-ran the MC analysis, and sure enough the problem arises.  As a general practice I don’t use the .zos format. 

Jeff


Mark.Nicholson
Luminary
Forum|alt.badge.img+3

It would be great if Team Ansys-Zemax could just remove this ‘feature’, it does nothing but get in the way of the work you’re trying to do 👿


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings