SteveDoyle2 / pyNastran

A Python-based interface tool for Nastran's file formats
Other
393 stars 154 forks source link

How to make a mode shape screenshot automatically? #738

Closed Jongkyukim123 closed 1 year ago

Jongkyukim123 commented 1 year ago

I would like to make a picture files including modes shape with eigenvalues, using pynastran and op2 file(solved by MSC nastran SOL103) without bdf. I struggled to get the result. Extracted node position, element data, eigenvector, etc. And imported and used vtk. But it is very difficult to me that all extracted datas translate to vtk type data. I need your help. And if you need detail code, I.will re-upload. Thank you

SteveDoyle2 commented 1 year ago

Have you tried the gui? Select your mode shape, open up the legend menu, find your displacement scale factor, and open up the animation menu from there.

Beyond that, you could also try Paraview

On Mon, Aug 7, 2023 at 1:38 AM Jongkyukim123 @.***> wrote:

I would like to make a picture files including modes shape with eigenvalues, using pynastran and op2 file(solved by MSC nastran SOL103) without bdf. I struggled to get the result. Extracted node position, element data, eigenvector, etc. And imported and used vtk. But it is very difficult to me that all extracted datas translate to vtk type data. I need your help. And if you need detail code, I.will re-upload. Thank you

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/738, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWPR7IQBKCPLVM33A6DXUCSRTANCNFSM6AAAAAA3GUST5E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Jongkyukim123 commented 1 year ago

Thank you for your rapid reply~ I already have tried use pynastrangui. It give me proper result. But I want make a picture file automattically with one click, using only OP2 file.

So, I made a plan to make a code using pyNastran below. 1st : extract node position. 2nd : extract element imformation. 3rd : extract eigenvector and make a new position. 4th : generate vtk data 5th : visualize by vtk

But I think you already have a these proccess. So If you have any good ideas for making these processes, please share them.

SteveDoyle2 commented 1 year ago

There’s an example of using the gui to take a screenshot and close the gui with one command line call.

If you want to do it a different way, I don’t really have a good suggestion.

On Mon, Aug 7, 2023 at 5:02 PM Jongkyukim123 @.***> wrote:

Thank you for your rapid reply~ I already have tried use pynastrangui. It give me proper result. But I want make a picture file automattically with one click, using only OP2 file.

So, I made a plan to make a code using pyNastran below. 1st : extract node position. 2nd : extract element imformation. 3rd : extract eigenvector and make a new position. 4th : generate vtk data 5th : visualize by vtk

But I think you already have a these proccess. So If you have any good ideas for making these processes, please share them.

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/738#issuecomment-1668723371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWP2AOL7EJU6DSPFYJTXUF6Y3ANCNFSM6AAAAAA3GUST5E . You are receiving this because you commented.Message ID: @.***>

Jongkyukim123 commented 1 year ago

Then could you share the example?

SteveDoyle2 commented 1 year ago

Checkout the end of the gui overview. It’s under command line scripting

On Mon, Aug 7, 2023 at 6:40 PM Jongkyukim123 @.***> wrote:

Then could you share the example?

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/738#issuecomment-1668784701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWMV2OD2AVOKSYT64TTXUGKHHANCNFSM6AAAAAA3GUST5E . You are receiving this because you commented.Message ID: @.***>

Jongkyukim123 commented 1 year ago

Where can I find gui overview? Because this is my first time for using github, So I'm not used to this system.

SteveDoyle2 commented 1 year ago

https://pynastran-git.readthedocs.io/en/1.3/quick_start/index.html#gui

On Mon, Aug 7, 2023 at 7:43 PM Jongkyukim123 @.***> wrote:

Where can I find gui overview? Because this is my first time for using github, So I'm not used to this system.

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/738#issuecomment-1668825503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWPUAFYNXLMHKJ5TAQTXUGRVXANCNFSM6AAAAAA3GUST5E . You are receiving this because you commented.Message ID: @.***>

Jongkyukim123 commented 1 year ago

Thank you~!!