Skip to content

Grid point forces from OptiStruct -> Runtime Error when Reading OP2 with more than 2 loadcases in one sim file #824

@qink1986

Description

@qink1986

Hello,

Similar Error(#710) occor when reading OP2 file when more than 2 loadcases in one file.

Description:
When parsing an OptiStruct-generated OP2 file when more than 2 loadcases, PyNastran crashes with a FortranMarkerError and RuntimeError during the reading of the OGPFB1 table.

Error Log:

ERROR: op2_reader.py:4897 isubtable=-8  
...  
pyNastran.op2.errors.FortranMarkerError: imarker=0; markers=[-8, 1, 0]; marker_actual=(-10, 1, 0) table_name=b'OGPFB1'  
...  
RuntimeError: marker0 < isubtable; marker0=-10 isubtable=-8

Additional Context:
No results show in GUI, when only one loadcase contained.

Attached test files show the issue occurs specifically with OptiStruct's handling of GPFORCE data.
01_bar.zip

Request:
Could you investigate the parsing logic for the OGPFB1 table in OptiStruct OP2 files? The error suggests a marker/subtable mismatch during binary read.

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions