Extracting maximum Hill's failure criteria

105 views
Skip to first unread message

L D

unread,
Apr 19, 2021, 4:57:33 AM4/19/21
to pyNastran Discuss
Hello everyone,

In addition to extracting the Von Mises stresses, I have to extract the maximum Hill's criteria for all elements.
The only documentation I could find on it was applying :
ft = 'HILL' 
With the failure theory being {HILL, HOFF, TSAI, STRN, None}
In the class pyNastran.bdf.cards.properties.shell.PCOMB

Is there a way to extract from an OP2 file the maximum Hill's criteria for a number of elements?

Thank you in advance for your help.

Best,

Laurène 

Steven Doyle

unread,
Apr 19, 2021, 11:08:23 AM4/19/21
to pyNastran Discuss
Yes, the stats you listed in your other email has them.   That tells you how to access them, e.g.,

model = read_op2(op2_filename)
  ctria3_composite_force_failure_indices =  model. op2_results.failure_indices.ctria3_composite_force[1]  


op2_results.failure_indices.ctria3_composite_force[1]

  type=FailureIndicesArray nelements=1895; table_name='OEFIT'

  data: [1, nelements, 3] where 3=[failure_index_for_ply (direct stress/strain), failure_index_for_bonding (interlaminar stresss), max_value]

  data.shape = (1, 1895, 3)

  element type: TRIA3LC-composite

  sort1

  loadIDs = [1]



--
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/e90db38a-f24b-46a7-b1e8-8b71b651f48en%40googlegroups.com.

L D

unread,
Apr 20, 2021, 2:57:49 AM4/20/21
to pyNastran Discuss
Perfect, thank you very much for your help!

Best,

Laurène

ashwin prabhu

unread,
Jan 11, 2022, 8:16:11 AM1/11/22
to pyNastran Discuss
Hi  Laurène or Steve,

Can you guys let me know if you guys were able to get the maximum failure index(maximum Hill's criteria) for a number of elements.

op2_results.failure_indices.ctria3_composite_force[1]

  type=FailureIndicesArray nelements=1895; table_name='OEFIT'

  data: [1, nelements, 3] where 3=[failure_index_for_ply (direct stress/strain), failure_index_for_bonding (interlaminar stresss), max_value]

  data.shape = (1, 1895, 3)

  element type: TRIA3LC-composite

  sort1

  loadIDs = [1]

Do let me know how we can print this data out to a frame i.e. like failure_index_for_ply or failure_index_for_bonding  and max_value.

Thanks,
Ashwin

Steven Doyle

unread,
Jan 11, 2022, 9:52:14 AM1/11/22
to pynastra...@googlegroups.com
I don’t really remember that issue, but based on the previous thread, my guess is you’re not using the main branch directly from github.  You’re probably using 1.3.

Steve

ashwin prabhu

unread,
Jan 12, 2022, 12:21:05 AM1/12/22
to pyNastran Discuss
Appreciate you getting back, i do understand the thread is a year old, but what i am trying to do is similar to what Laurène was trying.
I have checked the version steve that i have its 1.3.3 which i have pip installed as suggested.
What i am trying is to print the elements related to a particular composite material and extracting maximum Hill's failure index for all those elements.
what i am getting from the above code is as below

failureInd   type=FailureIndicesArray nelements=3684; table_name='OEFIT'

  data: [1, nelements, 3] where 3=[failure_index_for_ply (direct stress/strain), failure_index_for_bonding (interlaminar stresss), max_value]
  data.shape = (1, 3684, 3)
  element type: TRIA3LC-composite
  sort1
  loadIDs = [11001]

Do let me know how i can proceed here.
I am looking into test_op2 to check if any other tables can help or something.

Again appreciate you getting back.

Steven Doyle

unread,
Jan 14, 2022, 10:32:34 PM1/14/22
to pyNastran Discuss
Ashwin, 

 Try the main branch on github.  I believe the 1.3.3 doesn't support failure indices properly.

Steve

ashwin prabhu

unread,
Jan 19, 2022, 4:20:08 AM1/19/22
to pyNastran Discuss
Hi Steve,

Have taken the main branch as suggested.

I am trying to get the data something like attached.
Can you please help me out if its possible to do so.
FailureIndices.jpg

Steven Doyle

unread,
Jan 19, 2022, 6:17:50 PM1/19/22
to pyNastran Discuss
I'm not sure exactly how it's stored, but you can see if you run the following on the command line:
>>> test_op2 your_file.op2

You'll see a summary of the data in the file.  If you're familiar with say extracting pcomp stress, it should be similar to that.  An IDE helps as well.


Reply all
Reply to author
Forward
0 new messages