The ANSYS LS-DYNA program allows certain sense switch controls that enable you to interrupt the solution process and to check the solution status. This section describes how to use these sense switch controls.
While the LS-DYNA execution is in progress, type Ctrl+C in the console window of the ANSYS LS-DYNA program. This interrupts the LS-DYNA program execution and lets you enter program control commands (that is, switches) in the console window of ANSYS LS-DYNA. (Unlike in ANSYS, you are not thrown out of the ANSYS LS-DYNA GUI by the Ctrl+C interrupt, and the LS-DYNA solver will continue to run in the background.) A typical segment of output from the console window is shown below:
______________________________________________________________ dt of cycle 1 is controlled by solid element 1 time........................... 0.00000E+00 time step...................... 3.30496E-05 kinetic energy................. 2.82787E+03 internal energy................ 1.00000E-20 spring and damper energy....... 1.00000E-20 hourglass energy .............. 0.00000E+00 system damping energy.......... 0.00000E+00 sliding interface energy....... 0.00000E+00 external work.................. 0.00000E+00 eroded kinetic energy.......... 0.00000E+00 eroded internal energy......... 0.00000E+00 total energy................... 2.82787E+03 total energy / initial energy.. 1.00000E+00 energy ratio w/o eroded energy. 1.00000E+00 global x velocity.............. 0.00000E+00 global y velocity.............. -6.23477E+01 global z velocity.............. 0.00000E+00 cpu time per zone cycle............ 6666660 nanoseconds average cpu time per zone cycle.... 6666660 nanoseconds average clock time per zone cycle.. 15167664 nanoseconds estimated total cpu time = 6 sec ( 0 hrs 0 mins) estimated cpu time to complete = 6 sec ( 0 hrs 0 mins) estimated total clock time = 13 sec ( 0 hrs 0 mins) estimated clock time to complete = 13 sec ( 0 hrs 0 mins) enter sense switch: ______________________________________________________________
At this point, you can enter one of the following four switches:
| sw1 | ANSYS LS-DYNA terminates. A restart file is written. |
| sw2 | ANSYS LS-DYNA responds with time and cycle numbers and continues to run. This allows you to see how far the solution has actually progressed. |
| sw3 | ANSYS LS-DYNA writes a restart file and continues to run. |
| sw4 | ANSYS LS-DYNA writes a results data set and continues to run. |
The first estimate of CPU time reported in the console window (before the issuance of Ctrl+C) is usually inaccurate (see “estimated total cpu time” in the output example shown above). You can use Ctrl+C to interrupt the execution of the LS-DYNA solver, then type the sense switch sw2 to get a better estimate of the execution time and cycle numbers. The ANSYS LS-DYNA program writes all important messages (errors, warnings, failed elements, contact problems, etc.) to the ANSYS LS-DYNA console window and to the LS-DYNA ASCII output file d3hsp.
On a Linux system, the progress of the ANSYS LS-DYNA solution can also be checked by reading the last lines of certain ASCII output files. To do so, use another window to go to the directory where the ANSYS LS-DYNA program was started. Type the following command at the system prompt:
tail -m filename
where filename = d3hsp or glstat or matsum. For m (the number of lines to be viewed), a value of 30 should be sufficient.
The d3hsp file will always be created by ANSYS LS-DYNA. The files glstat and matsum will be created only if the following commands were issued in the PREP7 or SOLUTION processors of ANSYS LS-DYNA:
| EDOUT,GLSTAT |
| EDOUT,MATSUM |
(See Postprocessing of this manual for more information on how output control commands are used.)
The files d3hsp, glstat and matsum are ASCII files. As the solution progresses, these files are written at requested time points. By looking at the current "time" value of the solution from the last 30 lines of any one of these files and comparing this "time" value against the specified "end time" value on the TIME command, you can determine the progress of the solution.