Jashcraf / poke

Poke (pronounced poh-keh) is a Polarization Ray Tracing and Gaussian Beamlet module for Python
BSD 3-Clause "New" or "Revised" License
33 stars 7 forks source link

HST Fold Mirror Test v.s. CODE V #57

Closed Jashcraf closed 11 months ago

Jashcraf commented 1 year ago

Amplitude

image

Phase

image

Real

image

Imag

image

Jashcraf commented 1 year ago

Here's the CODE V result, phase is off!

image Coupled with that, wavelength might be off

Jashcraf commented 1 year ago

Comparing the two

image

Jashcraf commented 1 year ago

The phase is closer if we use n - ik for the index model

image Maybe this is a good question for Nasrat. But this also necessitated the s-polarization being shifted by -pi, and the p-polarization being shifted by +pi.

e.g.

fs *= np.exp(-1j*np.pi)
fp *= np.exp(1j*np.pi)

And the amplitude calculation isn't affected. image

Jashcraf commented 11 months ago

This has to do with how MUL defines coatings, which depending on how they are specified, will use n - ik