FreeCAD and ParaView

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
saso
Posts: 1586
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: FreeCAD and ParaView

Postby saso » Tue Mar 17, 2020 1:42 pm

Paraview Video Tutorials
https://www.youtube.com/playlist?list=P ... jb9_ttRLK-

ParaView 5.8 Webinar: Rendering techniques
https://www.youtube.com/watch?v=Xg6Y7Qui8gc

Offline Post-Processing
https://www.youtube.com/watch?v=QTX86gljme4

Post-Processing Strategies using ParaView for Formula Student
https://www.youtube.com/watch?v=ZxJnOB0Gwn8

Introduction to ParaView Postprocessing
https://www.youtube.com/watch?v=MqgDkNBAIio

And a few more on other open-source FEM/CFD tools...
(ParaView is used in Salome-Meca for post-processing and visualization of the results)

Code Aster Tutorials
https://www.youtube.com/playlist?list=P ... hwe9T3Vuy-

Salome CFD with Code Saturne Video Tutorials
https://www.youtube.com/playlist?list=P ... OzJt4sYaYh

Salome-Meca Videos
https://www.youtube.com/playlist?list=P ... bGfKzRAj3f

Salome CAD/CAE Integration Platform
https://www.youtube.com/playlist?list=P ... QL-S81RZsc

Tutorials for Code_Aster and Salome_Meca
https://www.youtube.com/channel/UCWBV4P ... GeQ/videos
DamianBod
Posts: 5
Joined: Fri Jun 12, 2020 11:37 pm

Re: FreeCAD and ParaView

Postby DamianBod » Mon Jun 29, 2020 9:33 pm

Hello,

I tried to do tutorial under the link https://wiki.freecadweb.org/Post-Proces ... h_Paraview. For that purpose I downloaded the proposed BEAM example. When I'm using REINFORCED MATERIAL, I am able to plot all principal stress vectors (major, intermediate, minor) afterwards in ParaView:

https://lh3.googleusercontent.com/pw/AC ... authuser=0

Unfortunately, later I changed material to homogeneous one, and I was surprised that in ParaView I am not able to plot principal stress vectors but only stress tensor components Sxx, Syy, Szz, Sxy, Sxz, Szy:

https://lh3.googleusercontent.com/tQ6le ... authuser=0

It looks like principal stress vectors are only exported to ParaView for reinforced material, or, I am doing something wrong (that is very possible :lol: ). Can some explain to me why it happens ?

Best regards
Damian
User avatar
bernd
Posts: 10975
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FreeCAD and ParaView

Postby bernd » Mon Jun 29, 2020 10:34 pm

DamianBod wrote:
Mon Jun 29, 2020 9:33 pm
It looks like principal stress vectors are only exported to ParaView for reinforced material, or, I am doing something wrong (that is very possible :lol: ). Can some explain to me why it happens ?
Which FreeCAD version do you use? You should use latest 0.19 dev versions. See

https://forum.freecadweb.org/viewtopic.php?f=18&t=12212
DamianBod
Posts: 5
Joined: Fri Jun 12, 2020 11:37 pm

Re: FreeCAD and ParaView

Postby DamianBod » Tue Jun 30, 2020 7:56 am

bernd wrote:
Mon Jun 29, 2020 10:34 pm
DamianBod wrote:
Mon Jun 29, 2020 9:33 pm
It looks like principal stress vectors are only exported to ParaView for reinforced material, or, I am doing something wrong (that is very possible :lol: ). Can some explain to me why it happens ?
Which FreeCAD version do you use? You should use latest 0.19 dev versions. See

https://forum.freecadweb.org/viewtopic.php?f=18&t=12212
Hello Bernd,

Today I downloaded the newest version "FreeCAD_0.19.21775-Win-Conda_vc14.x-x86_64.7z" extracted all files and just opened "freecad.exe" from BIN directory. I did NOT do any other steps or maybe I forgot about something, did I? The final results is the same, and I am not able to plot principal stress vectors.
User avatar
bernd
Posts: 10975
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FreeCAD and ParaView

Postby bernd » Tue Jun 30, 2020 8:06 am

- start FreeCAD
- open FEM 3D cantilever
- change to FEM WB
- Select CCX_Results object in TreeView
- File --> export --> FEM-result VTK
- export to test.vkt
- import back into FreeCAD ...

:shock: you are right they seam missing ... But they should be exported ... https://github.com/FreeCAD/FreeCAD/blob ... #L664-L666
User avatar
bernd
Posts: 10975
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FreeCAD and ParaView

Postby bernd » Tue Jun 30, 2020 8:10 am

- start FreeCAD
- open FEM 3D cantilever
- change to FEM WB
- Select CCX_Results object in TreeView
- create a new PoostProcessing Pipeline (Results --> Post Pipeline from Result)
- double click the new pipeline --> Mode --> Wireframe Surface and Field misses the Principal Stress too.

But if you open the already existing Pipeline from the example file the principal stress is available inside FreeCAD for me.

Would you confirm ?
DamianBod
Posts: 5
Joined: Fri Jun 12, 2020 11:37 pm

Re: FreeCAD and ParaView

Postby DamianBod » Tue Jun 30, 2020 9:45 am

Yes, I confirm both points you mentioned in the previous message. When I work on the example file "FEM 3D cantilever" it looks like that:

1. in the initially defined pipeline, I can choose principal stresses (all three types);

2. when I define new pipeline on my own, they are missed .... :(

As a result principal stress vectors are NOT exported to VTK file and visible under ParaView, and I am not able to enforce orientation to line glyphs along e.g. major principal stress vectors.

On the other hand, I am more calm now that this is not only problem on my side, because I was afraid that I am doing some trivial mistakes ;)
User avatar
bernd
Posts: 10975
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FreeCAD and ParaView

Postby bernd » Tue Jun 30, 2020 11:29 am

Thanks for confirm this. Lools like a regression was added somewhere. I will have a look.
User avatar
bernd
Posts: 10975
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FreeCAD and ParaView

Postby bernd » Tue Jun 30, 2020 1:13 pm

HoWil
Posts: 1199
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: FreeCAD and ParaView

Postby HoWil » Sun Jul 05, 2020 7:48 pm

cross-post to https://forum.freecadweb.org/viewtopic. ... 87#p413587
for the semi-automated use of paraview from inside FC in combination with Elmer to open the generated .vtu files.