Hi Steve,
I am running into an issue reading the contents of an op2 file and not sure what is causing the issue. Have successfully read .op2 files containing nonlinear stress data in the past. Any insight into what is causing this? Thanks in advance!
DEBUG: op2_reader.py:299 date = (12, 10, 24)
DEBUG: op2_reader.py:382 mode='nx' version='2020.1'
DEBUG: op2_scalar.py:2172 table_name=b'PVT0' (PARAM cards)
DEBUG: op2_scalar.py:2172 table_name=b'CASECC' (case control)
DEBUG: op2_scalar.py:2172 table_name=b'EQEXINS' (internal/external ids (superelement))
DEBUG: op2_reader.py:653 eqexin idata=(101, 339401, 0, 0, 0, 0, 0)
DEBUG: op2_scalar.py:2172 table_name=b'OGPWG' (grid point weight)
DEBUG: op2_scalar.py:2172 table_name=b'OQG1' (spc/mpc forces)
DEBUG: op2_scalar.py:2172 table_name=b'OUGV1' (g-set U in CD frame)
DEBUG: op2_scalar.py:2172 table_name=b'OEF1X' (element force at intermediate stations)
DEBUG: op2_scalar.py:2172 table_name=b'OES1X1' (nonlinear stress)
failed reading b'OES1X1' isubtable=-1542
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\tkinter\__init__.py", line 1967, in __call__
return self.func(*args)
^^^^^^^^^^^^^^^^
File "C:\Users\BrianRussell\Desktop\hapi\src\hapi\GUIs\post_analysis_tool_guis\op2_summary_report_gui.py", line 39, in run_examine_op2_tool
op2_tools.create_op2_contents_report(result_paths,
File "C:\Users\BrianRussell\Desktop\hapi\src\hapi\analyses\nastran\post_tools\op2\op2_tools.py", line 26, in create_op2_contents_report
op2_data = result.read_op2(exclude_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BrianRussell\Desktop\hapi\src\hapi\analyses\nastran\analysis_nastran.py", line 116, in read_op2
op2_data = read_op2(op2_name, exclude_results=exclude_results)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2.py", line 1424, in read_op2
model.read_op2(op2_filename=op2_filename, build_dataframe=build_dataframe,
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2.py", line 600, in read_op2
table_names = OP2_Scalar.read_op2(self, op2_filename=op2_filename,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_scalar.py", line 1998, in read_op2
self._read_tables(table_name, table_names)
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_scalar.py", line 2194, in _read_tables
op2_reader.read_results_table()
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_reader.py", line 3510, in read_results_table
self.read_results_table4()
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_reader.py", line 3535, in read_results_table4
self._read_subtables()
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_reader.py", line 3751, in _read_subtables
self._read_subtable_3_4(table3_parser, table4_parser, passer)
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_reader.py", line 3852, in _read_subtable_3_4
record_len = self._get_record_length()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_reader.py", line 3438, in _get_record_length
markers1 = self.get_nmarkers(1, rewind=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_reader.py", line 2495, in get_nmarkers
return self.get_nmarkers4(n, rewind=rewind, macro_rewind=macro_rewind)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_reader.py", line 2519, in get_nmarkers4
data = self.read_block4()
^^^^^^^^^^^^^^^^^^
File "C:\Users\BrianRussell\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyNastran\op2\op2_interface\op2_reader.py", line 3032, in read_block4
ndata, = op2.struct_i.unpack(data)
^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 4 bytes