Extract strains in CQUAD4 elements at each ply

36 views
Skip to first unread message

Venkata Kothapalli

unread,
Jun 10, 2024, 6:07:57 PM6/10/24
to pyNastran Discuss
Hello All,

I'm using Nastran 2019 as the solver for the runs and output strains in an op2. I used the op2 reader to access the OP2.

I see different number of elements when checked the stats of cquad4_composite_strain (num of elements = 329) and cquad4_composite_stress (num of elements = 28900 ) in the same op2. Moreover, for model.cquad4_composite_strain, I get the results for element type: TRIA3LC-composite-97 which is unusual as code giving tria elements output when requesting quad elements output.

Attached herewith the snapshot of the python output. Kindly advise what I am missing to get the strain output for all the elements like the stresses. 

Let me know do you need additional clarification to make myself more clear. 

Thanks in Advance,
Venkata Kothapalli

op2_strain_stress.png

Steven Doyle

unread,
Jun 10, 2024, 6:13:19 PM6/10/24
to pynastra...@googlegroups.com
I think you probably have something weird in your script like a duplicate variable name. I would try running from outside of the notebook.

Beyond that, I’d need a small example without proprietary data. The fewer the elements the better.

--
You received this message because you are subscribed to the Google Groups "pyNastran Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pynastran-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/7213f849-ccd9-4f4b-841c-b8753b40b750n%40googlegroups.com.

Venkata Kothapalli

unread,
Jun 11, 2024, 10:56:47 AM6/11/24
to pyNastran Discuss

Hello Steve,

I used to extract the results from outside notebook and I had the same issue. Attached herewith a test model (no  proprietary data involved) for your reference. Kindly check and let me know how can I access the strain data per ply from op2.

Thanks in Advance,
Venkata Kothapalli
Model_18_8_test_sol101_2.zip

steve

unread,
Jun 11, 2024, 11:24:53 PM6/11/24
to pyNastran Discuss
I cannot reproduce your issue using the latest dev version or 1.4.1.

op2_results.stress.cquad4_composite_stress[1]
type=RealCompositePlateStressArray nelements=2304 ntotal=16128
data: [1, ntotal, 9] where 9=[o11, o22, t12, t1z, t2z, angle, major, minor, max_shear]
element_layer.shape = (16128, 2)
data.shape = (1, 16128, 9)
element type: QUAD4LC-composite-95
sort1
lsdvmns = [1]; dtype=int32

op2_results.strain.cquad4_composite_strain[1]
type=RealCompositePlateStrainArray nelements=2304 ntotal=16128
data: [1, ntotal, 9] where 9=[e11, e22, e12, e1z, e2z, angle, major, minor, max_shear]
element_layer.shape = (16128, 2)
data.shape = (1, 16128, 9)
element type: QUAD4LC-composite-95
sort1
lsdvmns = [1]; dtype=int32
run.py
Reply all
Reply to author
Forward
0 new messages