SteveDoyle2 / pyNastran

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

MSC Nastran 64-bit bug #766

Closed karma0704 closed 5 months ago

karma0704 commented 5 months ago

The reading of op2 binary text only supports 32-bit, not 64-bit. If the op2 file I exported from msc nastran is not 32-bit, pynastran cannot process it. This file reading is compatible with 64-bit and will be considered in future versions. Will it be implemented?

SteveDoyle2 commented 5 months ago

64-bit is supported. I need a small example to fix the issue. A one element problem is fine.

On Wed, Mar 13, 2024 at 2:18 AM karma0704 @.***> wrote:

The reading of op2 binary text only supports 32-bit, not 64-bit. If the op2 file I exported from msc nastran is not 32-bit, pynastran cannot process it. This file reading is compatible with 64-bit and will be considered in future versions. Will it be implemented?

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

karma0704 commented 5 months ago

64-bit is supported. I need a small example to fix the issue. A one element problem is fine. On Wed, Mar 13, 2024 at 2:18 AM karma0704 @.> wrote: The reading of op2 binary text only supports 32-bit, not 64-bit. If the op2 file I exported from msc nastran is not 32-bit, pynastran cannot process it. This file reading is compatible with 64-bit and will be considered in future versions. Will it be implemented? — Reply to this email directly, view it on GitHub <#766>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWPAS3MNO5KD6IALIULYYAKWNAVCNFSM6AAAAABETYG4O2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4DGNBYGYZTEOI . You are receiving this because you are subscribed to this thread.Message ID: @.>

When I used op2_model.read_op2(op2_filename) to read the 64-bit op2 file, the following error occurred: image

image The following is the test file I used: demo1.zip

SteveDoyle2 commented 5 months ago

Can you attach the f06?

SteveDoyle2 commented 5 months ago

Please also attach the 32-bit version of this? You have a new table, so it'd help to compare.

Please also include the following. Otherwise, these tables may not work: GPFORCE(PRINT,PLOT)=ALL ESE(PRINT,PLOT)=ALL

karma0704 commented 5 months ago

Please also attach the 32-bit version of this? You have a new table, so it'd help to compare.

Please also include the following. Otherwise, these tables may not work: GPFORCE(PRINT,PLOT)=ALL ESE(PRINT,PLOT)=ALL

I don’t have the f06 file here, I can provide a 32-bit op2 test file, If the op2 file can be read and parsed normally, you can borrow the function in your program and convert it to f06. testdata.zip

SteveDoyle2 commented 5 months ago

Assuming you are using PARAM,POST,-1, the latest dev version will work with MSC Nastran. Otherwise, you'll have to set:

model = OP2()
model.is_interlaced = False
model.read_op2(op2_filename)

Double check the results. The quad/tri forces seem wrong. It's hard to tell without a single element problem.