Activating a Control Program in Transient Solutions

Use the following steps to access and invoke a user-control program to use with the Maxwell 2D or 3D transient solver. User control programs can be either externally created executable (.exe) files, or Python (*.py) scripts.

To specify a control program to use to generate the solution:

  1. Select the Use Control Program check box.

    The control program field becomes active, allowing you to enter the name of the user control program.

  2. Click the ... button to select the user control program you want to use during the solution generation process.

    The Open window appears.

  3. Select the control program, and click Open to return to the Advanced tab of the Solve Setup dialog box.
  4. Enter the arguments to pass to the control program in the Arguments text box. The solver calls the program in the following format:

    program_name specified_arguments

  5. If you select the Call after last timestep for post processing check box, then the control program is called after the simulation is completed.

    If you use a Python control program, the script is called with --post flag

    (for example: my_script.py --post).

    For a compiled control programs the script is called with -post flag

    (for example: my_tool.exe -post).

  6. Click OK to accept the configuration or Cancel to ignore the settings. You return to the Solve Setup window.

Related Topics 

Control Program File Formats in Transient Solutions

Using a Control Program in Maxwell 2D and 3D Transient Solutions