Step 1: Create Command Log file
ANSYS records every command it executes, whether typed in directly or executed by a function in the Graphical User Interface (GUI), in two places: the session log file (Jobname.log) and the internal database command log. In the case of the Plate with a Hole tutorial, for example, all the commands used to generate the solution were recorded in the session log file (plate.log) and in the database log.
Given that the problem specification for the Plate with a Hole tutorial is very similar to the problem we are solving, we will create a command log/input file based on the commands used to solve the Plate with a Hole tutorial and we will modify these commands to solve our problem. For this tutorial, we will use the database log (vs the session log file) created in the Plate with a Hole tutorial as a starting point. This option will allow us to include only essential commands as part of the command log file.
After completing the Plate with a Hole tutorial, create the Database log file.
Utility Menu > File > Write DB log file
This brings up the Write Database Log window. Enter plate2 under Write Database Log to. This is the name of the log/input file we will modify. Select the Write essential commands only option at the bottom, so that only essential commands are included. Click OK.
Search for the plate2.lwg file in the directory you specified and open it using notepad. Then save this file as plate2.txt. This is the log/input file we will modify. The list of commands generated is shown below.
We can now use this file as a starting point. We will modify these commands to solve our problem.