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

2D Plane Stress Example needs slight update #2557

Closed
mikerife opened this issue Dec 8, 2023 · 4 comments · Fixed by #2558
Closed

2D Plane Stress Example needs slight update #2557

mikerife opened this issue Dec 8, 2023 · 4 comments · Fixed by #2558
Assignees

Comments

@mikerife
Copy link

mikerife commented Dec 8, 2023

Description of the modifications

The 2D Plane Stress Concentration Example will not return the correct stress concentration plot. The MAPDL/PyMAPDL and PyMAPDL Reader can post process both the single/combined result file along with the individual result files (one for each DMP core used). The second time through the loop both the combined and individual files exist so the prior analysis is being post processed. The simple correct is to add a "finish" [ mapdl.finish() ] following the PyMAPDL solve command. This will force MAPDL to combine the core result files into one result file.

Mike

Useful links and references

No response

@germa89 germa89 self-assigned this Dec 11, 2023
@pmaroneh
Copy link
Contributor

Other solution is to run in SMP mode through mapdl = launch_mapdl(additional_switches='-smp')

@germa89
Copy link
Collaborator

germa89 commented Dec 11, 2023

@mikerife I'm adding mapdl.finish() after both mapdl.solve() commands. See this PR #2558 .
Also, how the h*** did you find out that error?

@pmaroneh I think your suggestion is very useful, so the users are more aware of differences between SMP and DMP. But because how the documentation runs on GitHub, doing that change won't have any effect. Basically because the examples do not start MAPDL instances, they just connect to an existing one.

@pmaroneh
Copy link
Contributor

The way I had found out is that the plot comparing the computed results with the analytical results don't match if you use DMP.

@mikerife
Copy link
Author

@mikerife I'm adding mapdl.finish() after both mapdl.solve() commands. See this PR #2558 . Also, how the h*** did you find out that error?

@germa89 It started by noticing that there was a set of core rst files and a combined rst file the second time through the loop, then asking myself "WTF" since it should be one or the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants