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?
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
- 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?
- What percentage of the time do you present conceptual information as compared with time spent on dynamic and interactive activities?
- Why does my gas detection system hang up for a long period of time after a large signal?