Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

op2 reader fails for v1.4 on EPTS and OES1X #688

Open
mathdyn opened this issue Mar 4, 2022 · 7 comments
Open

op2 reader fails for v1.4 on EPTS and OES1X #688

mathdyn opened this issue Mar 4, 2022 · 7 comments

Comments

@mathdyn
Copy link

mathdyn commented Mar 4, 2022

Hi,

I'm using pyNastran 1.4.0 and I'm trying to read two large .op2 files (7GB and 60GB files) generated from OptiStruct.

I'm using read_op2_geom(input_file), where input_file is the .op2 file and read_op2_geom is imported from pyNastran.op2.op2_geom.

When I try to read the first file I get: failed reading b'EPTS' isubtable=-4
When I try to read the second I get: failed reading b'OES1X' isubtable=-19

However, reading much simpler models works just fine. Any help on how to solve this problem would be very much appreciated, thanks.

@mathdyn mathdyn changed the title op2 reader fails for v1.4 fails on EPTS and op2 reader fails for v1.4 fails on EPTS and OES1X Mar 4, 2022
@mathdyn mathdyn changed the title op2 reader fails for v1.4 fails on EPTS and OES1X op2 reader fails for v1.4 on EPTS and OES1X Mar 4, 2022
@SteveDoyle2
Copy link
Owner

SteveDoyle2 commented Mar 6, 2022 via email

@SteveDoyle2
Copy link
Owner

Closing due to lack of activity.

@AlejandroStewart
Copy link

Hello, I have an example of a random analysis raising this error.
This example has bars but the error raises even when no results for bars are requested.

BR
Random_output_test.zip

@SteveDoyle2
Copy link
Owner

Hmm...weird...

There's something you're doing that's causing MSC to double write the stress table. It's putting one in OES1 and one in OES1X. If you dump the data to an F06, it's pretty easy to diff.

I added a super-dev-level parameter in order to separate the tables.

from pyNastran.op2.op2 import OP2
model = OP2()
model.use_table_name_in_code = True
op2_filename = 'random_x_mini.op2'
model.read_op2(op2_filename)
print(model.get_op2_stats())
params:
  BAILOUT = 0
  DDRMM = -1
  EPZERO = 9.99999993922529e-09
  GRDPNT = 0
  HFREQ = 2000.0
  K6ROT = 1.0
  LFREQ = 0.0
  MAXRATIO = 10000000.0
  MODACC = 0
  POST = -2
  PRTMAXIM = 'YES'
  ...
op2_results.gpdt: GPDT(nid_cp_cd_ps, xyz); nnodes=248
op2_results.bgpdt: BGPDT(cd, xyz); nnodes=248
op2_results.stress.chexa_stress[(1, 5, 1, 0, 0, '', '', 'OES1')]
  type=ComplexSolidStressArray ntimes=674 nelements=1 nnodes=9; table_name='OES1'
  eType, cid
  data: [ntimes, nnodes, 6] where 6=[oxx, oyy, ozz, txy, tyz, txz]
  element_node.shape = (9, 2)
  element_cid.shape = (1, 2)
  data.shape = (674, 9, 6)
  CHEXA
  sort1
  freqs = [  15.17999935   16.01000023   16.03000069   16.04999733   21.38999748
...
 1084.9699707  1111.98999023 1160.2598877  1295.0300293 ]

op2_results.stress.chexa_stress[(1, 5, 1, 0, 0, '', '', 'OES1X')]
  type=ComplexSolidStressArray ntimes=674 nelements=1 nnodes=9; table_name='OES1X'
  eType, cid
  data: [ntimes, nnodes, 6] where 6=[oxx, oyy, ozz, txy, tyz, txz]
  element_node.shape = (9, 2)
  element_cid.shape = (1, 2)
  data.shape = (674, 9, 6)
  CHEXA
  sort1
  freqs = [  15.17999935   16.01000023   16.03000069   16.04999733   21.38999748
...
 1084.9699707  1111.98999023 1160.2598877  1295.0300293 ]

eigenvalues[- RANDOM X -  CORES]
  type=RealEigenvalues neigenvalues=8
  title, extraction_order, eigenvalues, radians, cycles, generalized_mass, generalized_stiffness

The code is now even worse :)
(analysis_codei, sort_methodi, counti, isuperelmemnt_adaptivity_index, pval_step, table_name)

@SteveDoyle2 SteveDoyle2 reopened this Nov 2, 2022
@AlejandroStewart
Copy link

AlejandroStewart commented Nov 2, 2022 via email

@SteveDoyle2
Copy link
Owner

SteveDoyle2 commented Nov 2, 2022 via email

@AlejandroStewart
Copy link

Hi there, I have finally had time to prepare the run.

Random_mini_issue_688.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants