Writing and Reading the Mechanical APDL Application Files

The Tools menu includes options for writing the Mechanical APDL application input files and for reading the Mechanical APDL application results files.

To write the Mechanical APDL application input file:

  1. Highlight the Solution object folder in the tree.

  2. From the Main Menus, choose Tools> Write Input File.

  3. In the Save As dialog box, specify a location and name for the input file.

To read the Mechanical APDL application result files:

  1. Highlight the Solution object folder in the tree.

  2. From the Main Menus, choose Tools> Read Result Files.

  3. Browse to the folder that contains the Mechanical APDL application result files and click Open.

  4. In the dialog box that follows, select the unit system, then click OK.

    The Unit System used during the solution is stored in the results file (/UNITS command). The Select Results in Unit System dialog box displays to have you verify the system. Selecting a unit system that differs from the specified result file unit system causes a warning message to display.

    If the application does not have a specified unit system (/UNITS,0), then the application warns you that you have updated the system based on your choice in the Select Results in Unit System dialog box.


Important:  The application does not overwrite any existing result files that are in the Solver Files Directory.



Caution:
  • Errors will occur if the Mechanical APDL application result files are from a version of the Mechanical application that is older than the version currently running.

  • The procedure above instructs you to browse to the folder that contains the Mechanical APDL application result files. This folder should only contain files pertinent to that solution because Mechanical copies all the files contained in this folder to the Solver Files Directory. In addition, for the file names that match the jobname you select in the file browse window the application renames them to the “file” jobname during the copy.


Mechanical APDL Application Analysis from a Mechanical Application Mesh

The option for writing the Mechanical APDL application file can be used to perform analyses in the Mechanical APDL application while taking advantage of the meshing capabilities within the Mechanical application. The procedure is as follows:

  1. Attach the model into the Mechanical application.

  2. Mesh the model.

  3. Select the Solution folder in the tree.

  4. Tools> Write Input File... and specify a location and name for the input file.

  5. Use this input file to complete your analysis in the Mechanical APDL application. The meshed model will contain generic elements encoding only shape and connectivity information. Such elements can then be replaced by others that are appropriate to your desired analysis.


Note:  Any named selection group from the Mechanical application is transferred to the Mechanical APDL application as a component according to specific naming rules and conventions.


Using Writing and Reading Files Together

The writing and reading options are useful when used together. You can use the write option, then solve at your leisure on the machine of your choice. When the solution is done, you can use the read option to browse to the directory that contains the Mechanical APDL application output files (for example, result file, file.err, solve.out, file.gst, file.nlh). Workbench will then copy all files into your solution directory and proceed to use those files for postprocessing.

The reading option minimally requires that the target directory include the Result (.rst) and the Error (.err) files. The application cannot read the .rst file without an accompanying .err file, even if the .err is an empty file.


Note:  You must ensure that the mesh in the result file matches the mesh in Workbench. This includes the Workbench generated mesh from the geometry as well as any nodes or elements defined in the input file (such as for contact or remote boundary conditions). Failure to do so could result in incorrect results and unexpected behavior.


The reading Mechanical APDL application file option is available for all analysis types except rigid dynamic analyses and shape analyses.

The writing Mechanical APDL application file option is available for all analysis types except rigid dynamic analyses.

System units must be specified in the Mechanical APDL application result files being read for Result Tracker graphs to display properly. Result Tracker graphs will display in the Mechanical APDL application result file units if the units specified when reading the files are inconsistent with those in the files.


Release 18.2 - © ANSYS, Inc. All rights reserved.