For the first time, I tried to simulate a Mach-Zhender. It should work in theory since we have all the elementary bricks (mirror, propagation) but the devil is in the details. The implementation was rather simple, the default phase is such that all the power is transmitted toward the node called E_CCD (top figure): More […]
Author: Jerome Degallaix
Just released on git and on the Mathwork website the latest version of OSCAR. The main changes are from the calculation of the PSD and also how to generate virtual maps from a given PSD. Caculations with the ABCD matrices are also implemented and run in parallel with the FFT for a subset of functions. […]
When a cavity is defined and with one or two objects of the class Mirror, it is possible to define an etalon effect in the input or end mirrors. For that we should add 2 ingredients: One example of such code is give in the OSCAR repository: Example_Mirror_as_input.m But how to choose the right number […]
While in OSCAR, the function Add_Astigmatism() can add an extra sagitta distortion with a Zernike polynomial over a certain diameter, it is not always practical. Sometimes, it is simpler to define a surface with two perpendicular radii of curvature R_x and R_Y. The solution described here was given to me by Jean-Yves Vinet (a big […]
Something to try, the official AI for Matlab: website (I expect it must require a free MathWorks account) The generated code is not bad, some explanations are even added. Here for some simple examples, with the prompt on top:
The method is very similar to the transverse shift of a laser beam on the grid presented in this post. In this case, we will rather shift the aperture which is defined by the variable I.mask inside one instance I of the class Interface. Example:
In this post, we will see a comparison of the same calculation running on the CPU and GPU. The time taken by the simulations depends of course on your CPU and GPU, so the numbers presented here are not absolute. First example, calculation of the steady state high finesse cavity. Grid size Calculation time on […]
FFT simulations could take times. The first idea to speed up would be to buy a new and powerful computer and hoping that Moore’s law will continue forever. The second idea would be to decrease the accuracy, a number which determines when we estimate that we have converged to the steady state field. It could […]
Yes, it is now possible thanks to Matlab Online. First, you would need a Mathworks account, you may have one if you already have a Matlab license. Then go to the OSCAR Gitlab page and at the bottom of the readme file, you will find a button named Open in MATLAB Online: It should open […]
For the next version of OSCAR, every object will be automatically defined with corresponding ABCD matrix, for example: the initial beam, an interface or even a cavity. The advantage of the ABCD matrix is to propose very quick calculations to validate a design (or confirm we have entered the right parameters). For example, with an […]