HarryvL wrote: ↑Sat Dec 22, 2018 9:40 pm
I calculate eigenvectors in
src/Mod/Fem/feminout/importToolsFem.py and export them to VTK in
src/Mod/Fem/App/FemVTKTools.cpp so that they are available in ParaView for plotting.
Harry
Hello,
I am the new FreeCAD user, that is why please forgive if my questions will be trivial or it will look like I would be lazy and did not want to check it myself (please believe me I am not, and I decided to contact with forum members after many tries to deal on my own with my problem with FreeCAD
) . I started to work with FreeCAD about one month ago and I find it is a very powerful package. I work with FreeCAD 0.18 on Windows 10 platform. After couple days in FreeCAD and performed analyses, I started to look how I can review principal stress vectors and their orientation/direction that is an important issue for me. That is why I looked for such postprocessing feature in FreeCAD, unfortunately as you all know it is not a default feature yet. Afterwards, I found HarryvL's post (
https://forum.freecadweb.org/viewtopic. ... 18&t=29381) that gave me a hope for further usage of FreeCAD.
I would like to get the same results as Harry doing two steps that he mentioned in one of his posts. Unfortunately, it is not clear for me how to use two functions he wrote:
1. calculate eigenvectors in src/Mod/Fem/feminout/importToolsFem.py
2. export them to VTK in src/Mod/Fem/App/FemVTKTools.cpp so that they are available in ParaView for plotting
Question no.1 : "importToolsFem.py" I can use by executing a macro. Am I right?
Question no.2 : Unfortunately I do not know how to use "FemVTKTools.cpp" (I understand that it is C++ file - probably I should compile it in some way). I found this file in master repository on
https://github.com/FreeCAD/FreeCAD, but I do not know how to deal with it. I would very appreciate if someone could explain to me how execute file "FemVTKTools.cpp" and to obtain such results postprocessing like presented under the link
https://wiki.freecadweb.org/Post-Proces ... h_Paraview (subsection "Representation of Vector Results with the Glyph 3D Filter" of the post). Unfortunately when I export VTK file from FreeCAD to ParaView (without usage of importToolsFem.py and FemVTKTools.cpp) I can only choose glyphs orientation like you can see below (DisplacementVectors, StressVectors, StraiVectors - NO MAJOR, MID, MINOR principal stress):
- Attachment_2.png (556.29 KiB) Viewed 1299 times
I hope someone will help me or at least give me some advices that will lead me to the goal. Any advice is precious for me
Best regards
FreeCAD beginner ... Damian