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

Collins
Collins Member Posts: 24
10 Comments Name Dropper
**

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.

Answers

  • av
    av Member Posts: 10
    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.)
    Greetings,
    av

  • Rajesh Meena
    Rajesh Meena Moderator, Employee Posts: 90
    Second Anniversary 10 Comments 5 Answers Solution Developer Community of Practice Member
    ✭✭✭✭

    @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.

  • Collins
    Collins Member Posts: 24
    10 Comments Name Dropper
    **

    @av and @Rajesh Meena

    Thank you for your response, super helpful.

    I will try them out and give you some feedback