Amrita Pati
Ansys Employee

Hi Soufiane,

You can do that using the Lumerical Scripting Language, by writing the code in the Script File Editor. Lumerical offers a large number of script commands that can easily help you run/post-process your simulations. This will be the simplest approach in my opinion. You may refer to these introductory videos on Ansys Innovation Courses to get started: Lumerical Scripting First Lesson. Lumerical also offers Python and MATLAB Integration, please refer to the following links for more information:

  1. Python API Overview
  2. MATLAB Script Integration

But like I mentioned, the first option would be the most straightforward. And I feel the Lumerical's Scripting Language is very easy to use if you know MATLAB Scripting already.