How can I recover from an unexpected termination (crash) of the Flux program?

The Flux applications (Flux 2D and Flux3D) are "driven" by the PyFlux (Python for Flux) programming language. As you open Flux to create a geometry, a log of the Python instructions is created automatically in the working directory. This file contains the command language versions of all the commands executed in Flux. In the event the program terminates, you can re-open the Flux program and run the Python file. This will repeat everything done in the last session.

The following are the steps to recover your project utilizing the Python file:


Navigate to the directory that you were working in. Copy the file named (2D application) or (3D application) to another file name (keep the .py extension).

Note: You may want to open this new .py file with a text editor and delete the last 1 or 2 commands (presuming that the program may have terminated due to some incorrect action). If necessary delete "saveProjectAs(.....)" commands or change the name of the saved project.

2Open Flux 2D or Flux3D through the Flux Supervisor.

Select Project->Command file->Execute in direct modeā€¦ In the window that opens, navigate to the directory you are working in and select the Python file you named in step 1. Click on Open. The Flux program will now run the Python script and get you back to where you left off.

Note: You can also run the Python file in batch mode. It allows faster execution without graphic refreshment.

Note: You can write your own Python files to automate Flux or to create "macros".