Subset of rst and rst file write out

Hello,

I'm trying to use pyANSYS to prepare rst files for some of our inhouse tools that are very old and have extremely small file size limitations.

The original rst files are large static analysis assemblies and I am only interested in the results from a single part. So I want to find a set of functions that will allow me to select only a single part from the assembly and then write out a new rst file that only has that one part.

Any pointers on where I can look to get started?

Tagged:

Best Answer

  • Mike Rife
    Mike Rife Member, Employee Posts: 54
    Second Anniversary 10 Comments First Answer 5 Likes
    ✭✭✭✭
    Answer ✓

    Hi @tdarling Please see the Mechanical APDL help on the RSPLIT and INRES commands. RSPLIT can be used to create a new rst file for a component (specific set) of elements. And INRES can be used to control what results are written to the new result file. These commands have been implemented in PyMAPDL.
    Mike

Answers

  • Matthias
    Matthias Member Posts: 31
    10 Comments Name Dropper First Anniversary
    **

    @tdarling
    And if you only need results of certain result sets, you can use 'delete' and 'compress' commands in the /aux3 processor. If the number of sets you want to keep is much smaller than the total number of sets I recommend to selected all sets for delete and after that use 'undelete' to deselect those you want to keep. This all has to be done before issueing 'compress'. Since delete does not have an 'all' option you can use someting like:

    delete,set,1,1000