I am trying to read final separation distances from an op2 file. I can see the table name (OSPDS1) is included in model.table_names
, where model is the return value from read_op2(file_name, build_dataframe=True, debug=False)
.
I have read every page of pyNastran's documentation and cannot for the life of me figure out how to retrieve the data for a table. I know the name I'm looking for is OSPDS1 based on the op2_scalar source code (https://pynastran-git.readthedocs.io/en/latest/_modules/pyNastran/op2/op2_interface/op2_scalar.html?highlight=separation#). I think one of set_additional_generalized_tables_to_read()
or set_additional_result_tables_to_read(tables)
is part of the answer. I've gotten each of them to run using the _table_mapper
output, but then don't know what to do from there. Do I reread the op2 file somehow now that I've set this table to be read?
I can't really provide a minimum running example because I can't upload the op2 file. If absolutely necessary, I can create a new run of some simplified geometry.