It's common to perform analyses by varying the conditions using the same model and then compare the results, or to conduct comparative analyses of individual cases across multiple analysis scenarios.
When performing these tasks, generating the results often involves repeating the same operations. This section will introduce a method for automating repetitive and standardized processes through batch execution in such graphical user interfaces (GUIs), thereby reducing the burden of repeatedly performing the same actions.
First, as a preparation, I will explain about stock files.
What is a stock file?
|
FEMIS, FEMOS, and each translator output the history of executed commands to a text file called a "stock file."
Stock files are created in the folder specified as the data directory under [File] - [Preferences] - [Directories], and they have the following file names.※1
f_stocN_YYYYMMDDhhmmss. (Program identification extension)
|
|
The "f_stoc" part is a fixed name. "N" represents the sequence number (2 or greater) when multiple instances of the program are running, and it indicates the date and time when each instance was started.
The file extensions for each program are shown in the table below.
| program |
File extension |
| FEMIS |
GM |
| FEMOS |
PM |
| FEMIST |
GT |
| FEMOST |
PT |
| IMPORT |
IMP |
| Table 1: Program and stock file extensions |
Example 1: "f_stoc_20200821174343.PM"
The FEMOS stock file was started at 17:43:43 on August 21, 2020
Example 2: "f_stoc2_20200821174505.PM"
On August 21, 2020, at 17:45:05, the second FEMOS stock file among multiple instances that were running
※1: If the "Save stock file generation" option is enabled in FEMIS under [File] - [Settings] - [Custom], then the file will be saved with a specific name. Otherwise, it will be named f_stoc. (with the . extension) and initialized each time.
Outputting stock files (an example using FEMOS operations)
(1) Go to [File] and then select [Open].
(2) Click the "Hidden Line" button in the ToolBox to enable hidden line drawing.
(3) [Results] - Execute the deformation diagram drawing for case number 1 in the [Deformation Diagram/Mode Diagram] section.
 |
 |
| ※ From version 9.1 onwards, case numbers can be directly specified within each result display command. |
(4) [Change] - Execute the cut surface using the "Drawing Range Selection" function.
(5) Use the YZ button on the ToolBox to change the viewpoint.
(6) [Result] - Execute the drawing of a principal stress contour plot using the "Contour Plot" function.
When these operations are performed, the following operation history (commands) will be output to the stock file.
| 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) |
Please refer to the online help for details on parameters and other information related to each command
Next time, I will introduce how to use this stock file for automation.
|