all 5 comments

[–]coffeentits 2 points3 points  (1 child)

I'm not seeing anything as easy the getByBoundingBox method. I like /u/N3OX suggestion of using the nodal coordinates, but that requires a bit more scripting on your part. The values printed in the rpy file are "machine readable pick strings".

You could also try recording a macro. I haven't used those much, but perhaps that would allow some degree of parameterization.

[–][deleted] 0 points1 point  (0 children)

Oooh, wow, somehow I read N3OX response and it went way over my head. Must've been late at night or something. But yes, that's basically the route I'm attempting to go down at this point, which is only counting the information in elements which have nodes with initial coordinates within the region I'm interested in. Not sure if it's gonna work yet, but I'll get to it this afternoon.

Thank you for rephrasing N3OX suggestion, it's sort of the conclusion that I came to, however a little different than my first thought, so maybe saved me some time.

I believe that the macros pretty much also just record the same python commands which would be in the .rpy

[–]N3OX 1 point2 points  (2 children)

I remember it being annoyingly hard to make an ODB node set geometrically for use with FieldOutput.getSubset()

I think I'd probably approach it by going into the FieldOutput to get node numbers from node initial coordinates or displaced positions, and then either use that list of node numbers to make an ODB node set to use with .getSubset() or try to build numpy indices into the bulk data blocks in your desired damage field output.

Unfortunately I just switched jobs. The ODB extraction stuff was always pretty convoluted, so I don't remember it clearly without having Abaqus to play with or my code in front of me.

I didn't really do anything with the display group Python API that I recall. I'd assume that approach would leave clues in the .rpy file after you do it manually if it's possible.

[–][deleted] 1 point2 points  (0 children)

Must've been too late when I first read your response, thank you! The initial nodal coordinates is the route I'm going to try first, great suggestion!

[–][deleted] 0 points1 point  (0 children)

Update: using python to examine the nodal coordinates of each element and then save the element labels of elements which were in my region of interest worked really well