Support Topics
 Support topics: FEM/FEMLEEG

Automating repetitive tasks (3) – Screen output after restart

Maintenance and support service related information

In the previous sections, we explained how to create restart files from stock files and how to execute them. This time, we will introduce a method for automating the output of the analysis results screen using batch execution.

Screen file output


When using images of analysis results from FEMOS in documents or other materials, the following steps are likely to be performed through the GUI.

  1. Model loading
  2. Shape drawing
  3. Result display
  4. Copy the screen or output it as an image file
  5. Paste it into the software used for creating documents, or insert the image

(Items 1 through 4 refer to operations performed within the FEMOS system)


This operation will output the following information to the stock file:


RECO CP 1.
/SCA
/DIS
}
2.
DENS ST 7 MESH NOOV INDX 0 CASE 1 3.

Screen hard copy command

Here, regarding the copy/file output function in screen 4, since it directly interacts with Windows, the operations in screen 4 are not output as commands to the stock file.

To take a hard copy of the screen from a restart file, use the following command.


HDCO [DRAW|WMF|EMF] [FILE|CLIP|CODE|PNG] [MODL|FNAM 'filename']

Next, using the GUI, (1) open a file, (2) enable hidden line drawing, (3) create a shaded contour plot of maximum principal stress, (4) generate a principal value vector diagram, add an HDCO command to the executed stock file, and create a restart file that outputs a screen snapshot.

The HDCO command includes the FILE keyword for specifying the output file and the MODL keyword, which should be set to the same name as the model (the default output format is BMP).


RECO CP
/SCA
/DIS
}
DENS ST 7 MESH NOOV INDX 0 CASE 1
HDCO FILE MODL
VECT ST 8 COMB NOOV CASE 1
HDCO FILE MODL
FINI
(1)
(2)  
(3)
Additional
(4)
Additional
Additional
(A FINI command to terminate FEMOS was also added at the end)

Create a restart file in the same folder as the model, naming it "model_name.ars," and then drag and drop the icon onto the FEMOS icon.



A restart is performed, and files named "model_name_01.bmp" and "model_name_02.bmp" are created.



The HDCO command assigns numbers to filenames in the order they are output.

To make it easier to understand the content of the image later, I added a title to the diagram using the TITL command and created a restart file as follows.


RECO CP
/SCA
/DIS
TITLE: "Maximum Principal Stress Contour Diagram"
DENS ST 7 MESH NOOV INDX 0 CASE 1
HDCO FILE MODL
TITLE: "Principal Component Vector Diagram"
VECT ST 8 COMB NOOV CASE 1
HDCO FILE MODL
FINI


HDCO can output files in BMP format, as well as WMF/EMF/PNG formats. Additionally, instead of using the MODL keyword, you can directly specify the file name with the FNAM keyword, which allows you to use the file name itself to indicate the content, rather than relying on the TITL command.

Please refer to the command reference section of the help documentation for details on command specifications.


DENS ST 7 MESH NOOV INDX 0 CASE 1
HDCO FILEFNAM 'Maximum principal stress contour plot'




(Featured in the Spring issue of Up&Coming '21)
Go back
Up&Coming

FORUM8

LOADING