[help, info] Visualization of stress results by clipping plane option

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
EkaitzEsteban
Posts: 108
Joined: Wed Sep 12, 2018 1:31 pm

[help, info] Visualization of stress results by clipping plane option

Post by EkaitzEsteban »

Hello,

I am trying to visualize the stress of internal elements using clipping plane option. However, when I am inside the stress-result task, I can't select the clipping plane option (as shown in the figure is disabled).
clippingplane_disable.png
clippingplane_disable.png (654.4 KiB) Viewed 602 times
I try the following options by typing in python API in order to see stress of internal elements:

Code: Select all

# Prepare the Stress_Result data:
FreeCADGui.getDocument("workpiece").getObject("Stress_Result").DisplayMode = u"Faces"
FreeCADGui.getDocument("workpiece").getObject("Stress_Result").MaxFacesShowInner = 5000000
FreeCADGui.getDocument("workpiece").getObject("Stress_Result").Transparency = 40
FreeCADGui.getDocument("workpiece").getObject("Stress_Result").ShowInner = True
and then use the clipping plane option. I can see internal stresses but it is a little bit "weird".
intermediatesolution.PNG
intermediatesolution.PNG (227.9 KiB) Viewed 602 times
Using pivy options, someone can control the clipping plane too...

Code: Select all

from pivy import coin
clip=coin.SoClipPlane()
clip.plane.setValue(coin.SbPlane(coin.SbVec3f(0,0,1),-7)) #  set this to control the clipping plane
Gui.ActiveDocument.ActiveView.getSceneGraph().insertChild(clip,0)
clip.on.setValue(False) # switch off
clip.on.setValue(True) # switch on
intermediatesolution2.PNG
intermediatesolution2.PNG (221.31 KiB) Viewed 602 times
The visualization is the same.

I also try an elegant option posted in this forum https://forum.freecadweb.org/viewtopic. ... 8&start=30. However it is limited to solid/parts. It is not possible to apply, in the stress-result object.

Can someone help me with the visualization of internal stresses?

BTW: all numerical results are correctly written in the .dat file.
Post Reply