ansys / pymapdl-reader

Legacy binary interface to MAPDL binary files.
https://reader.docs.pyansys.com
MIT License
47 stars 23 forks source link

how to get the bottom nodal stress #14

Open xiaomaiAI opened 3 years ago

xiaomaiAI commented 3 years ago

Hi, Is there any method to get the bottom nodal stress from .rst file, Thank you.

akaszynski commented 3 years ago

As in from shell elements? There's not a specific method for this at the moment, but you can grab this from the element nodal results from element_solution_data and then reference the Ansys element guide to determine the format of the data: https://www.mm.bme.hu/~gyebro/files/ans_help_v182/ans_elem/Hlp_E_ElemTOC.html

If you need a specific API call or method to be able to grab these results, let me know and please provide an example rst file with the requested result type (ideally output from MAPDL).

xiaomaiAI commented 3 years ago

Now we can get the nodal stress data from nodal_stress is always top nodal stress in SHELL element. If you can provide a method to output all data(top/mid/bottom) is better. But I can not update the codes because there is a special version that do not store mesh data,I'll try as your suggestion,thank you. shell181.zip

xiaomaiAI commented 3 years ago

Hi, Now I get the element stress from element_stress() and in_element_coord_sys=False, the top half datas are rotated to global, but bottom half don't. Does this method only rotate the top half? Thank you.

akaszynski commented 3 years ago

Completely missed this last comment. Both bottoms and tops should be rotated. I'll patch this.

boxbox-0427 commented 1 year ago

@akaszynski @xiaomaiAI Hi, it's hard to understand the code in this section, the question is that how to extract the max value, just like bottom mentioned above, thanks!