Journal File Creation and Playback

Recording a Session

Command sequences can be written to a text file, either directly from Trelis or using a text editor. Trelis commands can be read directly from a file at any time during Trelis execution, or can be used to run Trelis in batch mode. To begin and end writing commands to a file from within Trelis, use the command

Record '<filename>'

Record Stop

Once initiated, all commands are copied to this file after their successful execution in Trelis.

Replaying a Session

To replay a journal file, issue the command

Playback '<filename>'

Journal files are most commonly created by recording commands from an interactive Trelis session, but can also be created using automatic journaling or even by editing an ASCII text file.

Commands being read from a file can represent either the entire set of commands for a particular session, or can represent a subset of commands the user wishes to execute repeatedly.

Two other commands are useful for controlling playback of Trelis commands from journal files. Playback from a journal file can be terminated by placing the Stop command after the last command to be executed; this causes Trelis to stop reading commands from the current journal file. Playback can be paused using the Pause command; the user is prompted to hit a key, after which playback is resumed.

Journal files are most useful for running Trelis in batch mode, often in combination with the parameterization available through the APREPRO capability in Trelis. Journal files are also useful when a new finite element model is being built, by saving a set of initialization commands then iteratively testing different meshing strategies after playing that initialization file.