Is there a way to extract mode shapes of all nodes without having to export deformation files first?

Collins Member Posts: 10
Name Dropper First Comment

Currently, I export the deformation .txt files first and then import them back into Python to use the data. This takes time. I would love to extract them in mechanical script and then dump them in Python for direct usage.


  • av
    av Member Posts: 4
    First Comment

    Hello Collins,
    is it an option for you to write the txt-files using APDL commands first, and then operate on them using a python script?
    If it is, then you can query the displacement values with the *vget APDL command, then write it into a txt with the *vwrite APDL command. (My experience is that these functions operate very fast.)

  • Rajesh Meena
    Rajesh Meena Moderator, Employee Posts: 77
    First Anniversary Solution Developer Community of Practice Member Ansys Employee 5 Likes

    @Collins How about using displacement_object.InternalObject.CreateTabbedFile(r'').

    This will you content of text file directly without writing to text file. Please note that it uses InternalObejct which may change in future.