Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I want to simulate a fairly large and complex optical system. How do I minimize the amount of time spent in the interactive mode for setting up and debugging the command.dat file?

0
Posted

I want to simulate a fairly large and complex optical system. How do I minimize the amount of time spent in the interactive mode for setting up and debugging the command.dat file?

0

Upon starting the program in the interactive mode, choose a very small mesh, say, one having NMAX = NMAY = 128. As you build your optical system simulator by entering parameters and options from the keyboard, DIFFRACT runs the beam through this system and gives answers that are not necessarily correct, since the chosen mesh is too coarse. Ignore these results and continue building your simulation until all components of your system are in place. Then quit the program and edit the COMMAND.DAT file using a text editor. Within this COMMAND.DAT, you can now reset NMAX and NMAY to their realistic values, modify any other parameter values that you want, add any necessary looping commands ($Increment, $Multiply, $Make, $Jump, $Tags), and save the modified version of the file as the new COMMAND.DAT. DIFFRACT may now be run in the non-interactive mode from this new COMMAND.DAT file, and you may choose either the STEP option (if you want to examine intermediate results), or the ZOOM option (if y

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123