Commands Object Post Processing Specifications

The Commands object can perform post processing actions when inserted under the Solution object.

For solved analyses, you can specify a command and choose whether the Mechanical APDL Solver processes the specified commands only or whether the solver processes the entire solution (including the new command) all over again using the Invalidate Solution control. This control is, by default, set to No - does not invalidate the results. If the solver is not specified as Mechanical APDL, then the Invalidate Solution control defaults to Yes and is read-only.

An example of the Commands object and its Details is illustrated below.

 

As shown on the status/progress dialog box, the Solver processes only the newly specified commands.

 

Post Output File

The post command entries generate a new and independent solution output file, post.dat. The post.dat file contains only the content of unsuppressed command objects. The output file can be viewed in the Worksheet for the Solution Information object by setting the Solution Output control to Post Output, as shown below.

 


Note:
  • This post processing solution only happens if changes or additions are made to the Commands of a Solution object for an otherwise solved environment. If the solution is unsolved or obsolete for some other reason, then the commands are executed as part of the normal solving process.

  • Existing and post processed results are available for use with any subsequent linked analyses.

  • When using this mode, Mechanical APDL runs all commands including the ones that may have existed as a part of the regular solve. Some commands may require certain variables or parameters to be active for execution or to produce correct results. As a result, it may be necessary to resume the Mechanical APDL db file by making sure that the Analysis Settings>Analysis Data Management>Save MAPDL db option is set to Yes prior to restarting the entire solution.

  • The solve mode is always In Process.

  • If the command snippet is inserted or edited with the Invalidate Solution setting set to Yes, then you can issue post-processing commands using the last restart point of a completed solution. The solution executes without incurring the cost of a full solve, as it sends only the post commands and will generate solve.out as a solution output file.

  • If you are using the Mechanical APDL post processing command, SET, and you are not executing a complete re-solve of the solution or if you do not resume a database file (file.db) first, the default result file name is file.rst. Therefore, if your result file name is not file.rst, you need to implement the FILE command before any SET commands in order to open the proper file. An example is a thermal analysis that uses the file name file.rth. In this case, either a FILE,file,rth command or a RESUME command (if the file.db was saved during the full solution) is needed.


Note that the generated Output files are written to the Solver Files Directory and are named accordingly. An example of the directory is shown below.

 


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