Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runing an examlpe #2

Open
Hamza1070 opened this issue Jun 6, 2023 · 1 comment
Open

Runing an examlpe #2

Hamza1070 opened this issue Jun 6, 2023 · 1 comment

Comments

@Hamza1070
Copy link

Hello, Thank you very much for sharing this interesting code. I would like to ask if it is possible to share the steps to follow in order to run the simulation for one example. Thank you.

@miceks
Copy link
Owner

miceks commented Jun 7, 2023

Hi!

I'd love to help. The interface is not the most welcoming since it was mainly designed for my own purposes and then later made available as open source. I'm working from memory here since my Matlab license has expired so forgive me if I get something wrong, but the most basic usage should be:

  1. Create a new batch from the 'File' tab. The default values should be usable for a demo, though make sure the group velocity dispersion is anomalous and use the LLE model at first since it is significantly cheaper to simulate.
  2. Create a system from the lower panel. Again, most of the default values should work, but make sure the values for the the initial and final pump frequency detuning ('Detun') and pump power ('Pump') are set within a region of modulational instability (should be marked by a light blue background in the chart). If you click the 'Fig' toggles, you should be able to select the values graphically.
  3. Run the simulation by pressing 'Run' in the lower right. When the simulation finishes, you should be able to click the system and inspect a playback of the field in the right-side windows. Depending on you initial field, it will probably not be very interesting (flat CW background matching the resonance curve in the 'CW Ref' view), but provided there were some noise in the initial field and the system is in a region of modulational instability, it should eventually transition to something more interesting.
  4. Renew the systems 'budget' in the lower left panel after selecting it and repeat step 3 until something interesting happens to the field (should not take more than a few iterations).

That should be enough to get a single system which transitions either to a stable Turing pattern (or solitons), a periodic breather or optical turbulence depending on the parameters. Once you have a system of interest you can sweep the parameters to new values to see what happens by selecting it and 'Forking' it in the lower panel. This creates a new system with the old ones field as the initial value, and gradually moves the detuning and pump power based on the corresponding 'delta' parameters. The main idea behind the application is to be able to fork and simulate many systems at once to explore the parameter space.

Hope that was possible to follow. There are many more things I didn't cover here, so feel free to ask more questions! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants