Page 3 of 4

Re: [fixed] Principal Stress Plots

Posted: Mon Jun 13, 2022 6:56 pm
by HarryvL
I can't build - have an issue with shiboken2 library.

I think the error is easy to fix by renaming method "calculate_principal_stress" to "calculate_principal_stress_reinforced" everywhere (3 locations) in resulttools.py. That or change the test to call calculate_principal_stress instead. Not elegant, but it should work. See attached:

resulttools.py
(27.14 KiB) Downloaded 54 times

Sorry, I can't do any better at the moment. I did not know today was the deadline for FC20 release ... pure coincidence.

Re: [fixed] Principal Stress Plots

Posted: Mon Jun 13, 2022 7:11 pm
by HarryvL
Perhaps better to roll back to earlier commit and leave this fix for the next version.

I can't run all the tests required.

Re: [fixed] Principal Stress Plots

Posted: Tue Jun 14, 2022 12:35 am
by uwestoehr
I had to revert the second PR. Only the removal of the 3 stresses are now in.

The release was made. so everything further in the next release cycle.

Please then just make PRs by yourself. This way the CI will run the tests for us that such trouble won't happen again.

thanks and regards
Uwe

Re: [fixed] Principal Stress Plots

Posted: Tue Jun 14, 2022 4:34 am
by HarryvL
Great, thanks Uwe.

Re: Principal Stress Plots

Posted: Sun Jul 24, 2022 3:46 am
by uwestoehr
HarryvL wrote: Mon Jun 13, 2022 2:26 pm 1) I moved the three stresses up to the vector section, because that’s what they are and that’s what you need to display them in ParaView.
I had to revert your removal of the principal stresses because they caused a regression:
- for "normal" mechanical analyses one needs these 3 principal stresses.

It was my mistake to merge this, because when you look at the links in the comments above the definition of the stresses:
git commit 3af54a7dda
you see that we need to distinguish here:
- if reinforced material -> we get PS1Vector etc. but also the principal stress scalars
- otherwise only the scalars

So maybe just a renaming should fix your issue. Here is a PR that does this:
https://github.com/FreeCAD/FreeCAD/pull/7246

Please give it a try and report back.

Re: Principal Stress Plots

Posted: Sat Aug 20, 2022 2:05 pm
by HarryvL
uwestoehr wrote: Sun Jul 24, 2022 3:46 am Please give it a try and report back.
I am not good at github, so manually typed your proposed modifications, compiled and tested this:

Principal Stress Vector Check.png
Principal Stress Vector Check.png (124.58 KiB) Viewed 1374 times

The Principal Stress Vectors are transferred properly to ParaView and can be used in the relevant filters.

Thanks for solving this issue and apologies for the late response.

Re: Principal Stress Plots

Posted: Sat Aug 20, 2022 5:46 pm
by Kunda1
@HarryvL here's a trick:

Re: Principal Stress Plots

Posted: Sat Aug 20, 2022 6:17 pm
by Jee-Bee
Thanks I didn't know that too.

Re: Principal Stress Plots

Posted: Sat Aug 20, 2022 7:27 pm
by HarryvL
Kunda1 wrote: Sat Aug 20, 2022 5:46 pm @HarryvL here's a trick:
Thanks !

Re: Principal Stress Plots

Posted: Mon Aug 22, 2022 9:26 pm
by uwestoehr
HarryvL wrote: Sat Aug 20, 2022 2:05 pm The Principal Stress Vectors are transferred properly to ParaView and can be used in the relevant filters.

Thanks for solving this issue and apologies for the late response.
Thanks. I merged the PR now and will backport this to FreeCAD 0.20.x later.