Loading results failed
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Loading results failed
Hello,
With any model, I cannot see the results after calculation. However, all the input and output files of the calculation seem correct. ResultMesh and CCX_Results are out of the Analyse. Resultmesh is like FEMMeshGmsh and CCX_Results is empty.
Do you have a solution to find them ?
Thank you very much.
View report :
Custom material directory set by user: does not exist.
choose_material in FEM material task panel:
/usr/share/freecad-daily/Mod/Material/StandardMaterial/Steel-Generic.FCMat
References: empty in MaterialSolid, MaterialSolid
References: Face in ConstraintDisplacement, ConstraintDisplacement
References: Face in ConstraintFixed, ConstraintFixed
Check prerequisites.
Check prerequisites.
References: empty in MaterialSolid, MaterialSolid
Start writing CalculiX input file
Write ccx input file to: /tmp/fcfem_0as4_3sc/FEMMeshGmsh.inp
ConstraintFixed:
Type: Fem::ConstraintFixed, Name: ConstraintFixed
found mesh group for the IDs: ConstraintFixed_Nodes, Type: Node
ConstraintDisplacement:
Type: Fem::ConstraintDisplacement, Name: ConstraintDisplacement
found mesh group for the IDs: ConstraintDisplacement_Nodes, Type: Node
Writing time CalculiX input file: 0.02 seconds
run CalculiX at: /usr/bin/ccx with: /tmp/fcfem_0as4_3sc/FEMMeshGmsh.inp
CalculiX done without error!
We will load the ccx frd and dat result file.
Read ccx results from frd file: /tmp/fcfem_0as4_3sc/FEMMeshGmsh.frd
loading results failed
OS: Linux Mint 19.3 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: c1ca01b0e79efa44f39ee377bb97517e2fd7debf
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
With any model, I cannot see the results after calculation. However, all the input and output files of the calculation seem correct. ResultMesh and CCX_Results are out of the Analyse. Resultmesh is like FEMMeshGmsh and CCX_Results is empty.
Do you have a solution to find them ?
Thank you very much.
View report :
Custom material directory set by user: does not exist.
choose_material in FEM material task panel:
/usr/share/freecad-daily/Mod/Material/StandardMaterial/Steel-Generic.FCMat
References: empty in MaterialSolid, MaterialSolid
References: Face in ConstraintDisplacement, ConstraintDisplacement
References: Face in ConstraintFixed, ConstraintFixed
Check prerequisites.
Check prerequisites.
References: empty in MaterialSolid, MaterialSolid
Start writing CalculiX input file
Write ccx input file to: /tmp/fcfem_0as4_3sc/FEMMeshGmsh.inp
ConstraintFixed:
Type: Fem::ConstraintFixed, Name: ConstraintFixed
found mesh group for the IDs: ConstraintFixed_Nodes, Type: Node
ConstraintDisplacement:
Type: Fem::ConstraintDisplacement, Name: ConstraintDisplacement
found mesh group for the IDs: ConstraintDisplacement_Nodes, Type: Node
Writing time CalculiX input file: 0.02 seconds
run CalculiX at: /usr/bin/ccx with: /tmp/fcfem_0as4_3sc/FEMMeshGmsh.inp
CalculiX done without error!
We will load the ccx frd and dat result file.
Read ccx results from frd file: /tmp/fcfem_0as4_3sc/FEMMeshGmsh.frd
loading results failed
OS: Linux Mint 19.3 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: c1ca01b0e79efa44f39ee377bb97517e2fd7debf
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
- Attachments
-
- Anneau-1.FCStd
- (120.15 KiB) Downloaded 29 times
Fada de 3D.
Linux Mint
Linux Mint
Re: Loading results failed
- start FreeCAD
- load your file
- delete results
- rerun analysis
- show results
works great here, no problem with your file ...
- load your file
- delete results
- rerun analysis
- show results
works great here, no problem with your file ...
Re: Loading results failed
would you try to run this code in FreeCAD python konsole and see if the results import fine ...
Code: Select all
import feminout.importCcxFrdResults
feminout.importCcxFrdResults.open(FreeCAD.ConfigGet("AppHomePath") + 'Mod/Fem/femtest/data/ccx/cube_static.frd')
Re: Loading results failed
@Bernd : thank you for your quick answer.
See the attached pictures of results of ring and cube_static ; picture of warning on the Python Konsole
Thank you for your help.
No change about the ring.
The results import from the cube_static doesn't work.
See the attached pictures of results of ring and cube_static ; picture of warning on the Python Konsole
Thank you for your help.
- Attachments
-
- Warning on Python Konsole
- Capture du 2020-05-28 17-06-46.png (132.5 KiB) Viewed 2174 times
-
- Results of cube_static
- Capture du 2020-05-28 17-06-00.png (78.39 KiB) Viewed 2174 times
-
- Results of ring
- Capture du 2020-05-28 17-01-57.png (65.64 KiB) Viewed 2174 times
Fada de 3D.
Linux Mint
Linux Mint
Re: Loading results failed
would you try in FreeCAD python konsole
Code: Select all
import matplotlib.pyplot
import tkinter
Re: Loading results failed
Good night,
Import of matplotlib.pyplot and tkinter impossible in a new freeCAD window, with or without file. Is it a problem of python version ?
Thank you in advance.
Import of matplotlib.pyplot and tkinter impossible in a new freeCAD window, with or without file. Is it a problem of python version ?
Thank you in advance.
Fada de 3D.
Linux Mint
Linux Mint
Re: Loading results failed
it clearly say what is missing on your Linux mint, the package tkinter. Thus
should do the trick
BTW: if you post error messages it would be much more helpful if you would copy them and put them into code tags than making a screen shot. Thus the error message will be found by the search engines and other users with the same problem will find this topic.
Code: Select all
sudo apt-get install python3-tk
BTW: if you post error messages it would be much more helpful if you would copy them and put them into code tags than making a screen shot. Thus the error message will be found by the search engines and other users with the same problem will find this topic.
Re: Loading results failed
Thank you Bernd. Now I can see the results.
When I activate the ccx_results, or when I change displacement direction or stress it remains a warning on the report view as follow for example :
Is it dangerous ?
thank you a lot.
When I activate the ccx_results, or when I change displacement direction or stress it remains a warning on the report view as follow for example :
Code: Select all
Traceback (most recent call last):
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 316, in abs_displacement_selected
self.result_selected("Uabs", self.result_obj.DisplacementLengths, "mm")
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 533, in result_selected
fig_manager.window.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) # stay ontop
File "/usr/lib/python3.6/tkinter/__init__.py", line 2101, in __getattr__
return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'setWindowFlags'
Traceback (most recent call last):
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 316, in abs_displacement_selected
self.result_selected("Uabs", self.result_obj.DisplacementLengths, "mm")
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 533, in result_selected
fig_manager.window.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) # stay ontop
File "/usr/lib/python3.6/tkinter/__init__.py", line 2101, in __getattr__
return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'setWindowFlags'
Traceback (most recent call last):
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 326, in x_displacement_selected
self.result_selected("U1", res_disp_u1, "mm")
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 533, in result_selected
fig_manager.window.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) # stay ontop
File "/usr/lib/python3.6/tkinter/__init__.py", line 2101, in __getattr__
return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'setWindowFlags'
Traceback (most recent call last):
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 326, in x_displacement_selected
self.result_selected("U1", res_disp_u1, "mm")
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 533, in result_selected
fig_manager.window.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) # stay ontop
File "/usr/lib/python3.6/tkinter/__init__.py", line 2101, in __getattr__
return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'setWindowFlags'
Traceback (most recent call last):
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 336, in y_displacement_selected
self.result_selected("U2", res_disp_u2, "mm")
File "/usr/share/freecad-daily/Mod/Fem/femviewprovider/view_result_mechanical.py", line 533, in result_selected
fig_manager.window.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) # stay ontop
File "/usr/lib/python3.6/tkinter/__init__.py", line 2101, in __getattr__
return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'setWindowFlags'
thank you a lot.
Fada de 3D.
Linux Mint
Linux Mint
Re: Loading results failed
AFAIK this module is needed for the histogramm only. Give it a try, it might not work. All other should be working in result task panel.