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

principal_nodal_stress #56

Merged
merged 2 commits into from
Jul 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansys/mapdl/reader/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,7 @@ def element_solution_data(self, rnum, datatype, sort=True, **kwargs):

return enum, element_data, enode

def principal_nodal_stress(self, rnum):
def principal_nodal_stress(self, rnum, nodes=None):
"""Computes the principal component stresses for each node in
the solution.

Expand Down Expand Up @@ -2458,7 +2458,7 @@ def principal_nodal_stress(self, rnum):

"""
# get component stress
nodenum, stress = self.nodal_stress(rnum)
nodenum, stress = self.nodal_stress(rnum, nodes)
pstress, isnan = _binary_reader.compute_principal_stress(stress)
pstress[isnan] = np.nan
return nodenum, pstress
Expand Down