SteveDoyle2 / pyNastran

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

nastran_to_vtk BUG #773

Closed karma0704 closed 5 months ago

karma0704 commented 5 months ago

Hello, gentleman! When I call nastran_to_vtk to complete the export of 64-bit bdf and op2 files into VTK files, the export cannot be performed normally. It may be that the data parsing is incorrect. I used the 32-bit version of the same file to test and found that the 32-bit file was normal. In contrast, I found that there were differences between the 32-bit and 64-bit files when processing the CompositeStrainStressResults2 object. The 64-bit input is as shown below: image

Because of this The error caused "" to be thrown image

I don't know how to fix this problem fundamentally. If I could understand it better, I could fix it, but not now. I have provided the test demo before, and it should be available in models now.

SteveDoyle2 commented 5 months ago

It's fixed. So I thought that was disabled, but it was on.

The isinstance(itime, int) should use iresult. Basically, there's say 6 results, [oxx, oyy, txy, omax, omin, max_shear]. These are listed as iresult=0 -> 5. You can also calculate von_mises, so it uses a string to flag that it's not in the data array.