This is the second installment of a series that introduces how to automate repetitive tasks and standardized processes in a graphical user interface (GUI) using batch execution. This time, we will explain restart files.
What is a restart file?
|
FEMIS, FEMOS, and each translator can be executed not only through a graphical user interface (GUI) but also via command-line execution (by entering commands using the keyboard in the ENTER COMMAND area).
Furthermore, you can write these commands into a file and then read that file to execute the commands. This type of file containing commands is called a restart file. To load and execute a restart file, go to [File] -> [Load] -> [Restart].
|
|
The user can freely specify the file names. The default extension for each program is as follows:
| program |
File extension |
| FEMIS |
grs |
| FEMOS |
ars |
| FEMIST |
irs |
| FEMOST |
ors |
| IMPORT |
crs |
| Table 1: Program names and restart file extensions |
Move the stock files to the restart file
In the previous explanation, we discussed that the commands executed are output to a stock file. By reading this stock file as a restart file, it is possible to reproduce the operations (commands) that were performed previously.
| RECO CP |
← |
(1) |
SCAL HIDD; DISP |
}← |
(2) |
| MODE DISP LINE 2 OVER NOOV CASE 1 |
← |
(3) |
| WORK ONLY PLAN ON 378 450 448 |
← |
(4) |
| VIEW 1 0 0 |
← |
(5) |
| DENS ST 7 MESH NOOV INDX 0 CASE 1 |
← |
(6) |
The above is an example of a stock file from the previous operation; however, if you change the filename and restart the process, the result will be as follows.
 |
 |
 |
| [1] Model loading |
[2] Drawing hidden line diagrams |
[3] Drawing deformation diagrams |
| |
|
|
 |
 |
 |
| [4] Selection of cut surfaces |
[5] Change of perspective |
[6] Shading and gradation drawing |
However, if things continue as they are, processes will be executed one after another, and only the final screen will be visible for confirmation.
To check the deformation diagram, after drawing it, a command (PAUSE) is inserted to temporarily pause the restart process.
RECO CP
SCAL HIDD ;
DISP
MODE DISP LINE 2 OVER NOOV CASE 1
PAUSE VIEW 1 0 0
DENS ST 7 MESH NOOV INDX 0 CASE 1
When you run this restart file, the restart function in the deformation drawing mode will be stopped. To resume the restart process, either execute "[Special] - [Restart]" from the menu or type "REST" on the keyboard.
Even during a pause, other processes can be executed. For example, after pausing in a deformation analysis, it is possible to check numerical results and then resume the process.
This example (sample set 14) has 2 cases with analysis results, and you can easily check the results for multiple cases by simply copying and pasting the contour plot drawing command and changing the case number.
RECO CP
SCAL HIDD ;
DISP
WORK ONLY PLAN ON 378 450 448
VIEW 1 0 0
DENS ST 7 MESH NOOV INDX 0 CASE 1
PAUSE
DENS ST 7 MESH NOOV INDX 0 CASE 2
(The deformation diagrams (MODE) have been removed)
If you save the restart file in the same folder as the model and name it the same as the model, you can simply drag and drop the restart file, and when you execute the RECO command, it will automatically load a model with the same name (eliminating the need for the file selection operation described in [1]).
Next time, I will introduce how to further edit this restart file and output the screen results as a file.
|