thermomech example - FEM: No nodes found in Frd file.

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

thermomech example - FEM: No nodes found in Frd file.

Post by HoWil »

I have set up a basic model for running a thermomech calculix simulation.I basically introduced only a initial temperature condition.
When I run the simulation I finally get the following 'error'-message in the Report-View and no results:

Code: Select all

FEM: No nodes found in Frd file.
FEM: No result object in active Analysis.
The associated file named 'Body_Mesh.frd' in my tmp folder contains only one line (" 1C").
When I run the same model as stationary mech. simulation everything works great which indicates that the mesh is found and the FEM wb works generally. See the output in the Report-view for running the mech. simulation and than the thermomech. one.

Did I miss something or is this a bug?

BR,
HoWil

OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9592 (Git)
Build type: None
Branch: master
Hash: c2f2a250549163947592069262ce1cd3328b3669
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

Code: Select all

FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/tmp' will be used instead.
FemTools.setup_working_dir()  -->  self.working_dir = /tmp
FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/tmp' will be used instead.
FemTools.setup_working_dir()  -->  self.working_dir = /tmp
FemInputWriterCcx --> self.dir_name  -->  /tmp
FemInputWriterCcx --> self.main_file_name  -->  Body_Mesh.inp
FemInputWriterCcx --> self.file_name  -->  /tmp/Body_Mesh.inp
Constraint: FemConstraintFixed --> mesh group: FemConstraintFixed_Nodes
Writing time input file: 0.032568 

runCalculix
run CalculiX at: ccx with: /tmp/Body_Mesh
calculixStarted()
PySide.QtCore.QProcess.ProcessState.Running
calculixFinished() 0
PySide.QtCore.QProcess.ProcessState.NotRunning
FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/tmp' will be used instead.
FemTools.setup_working_dir()  -->  self.working_dir = /tmp
FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/tmp' will be used instead.
FemTools.setup_working_dir()  -->  self.working_dir = /tmp
FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/tmp' will be used instead.
FemTools.setup_working_dir()  -->  self.working_dir = /tmp
FemInputWriterCcx --> self.dir_name  -->  /tmp
FemInputWriterCcx --> self.main_file_name  -->  Body_Mesh.inp
FemInputWriterCcx --> self.file_name  -->  /tmp/Body_Mesh.inp
Constraint: FemConstraintFixed --> mesh group: FemConstraintFixed_Nodes
Writing time input file: 0.03444 

runCalculix
run CalculiX at: ccx with: /tmp/Body_Mesh
calculixStarted()
PySide.QtCore.QProcess.ProcessState.Running
calculixFinished() 255
PySide.QtCore.QProcess.ProcessState.NotRunning
FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/tmp' will be used instead.
FemTools.setup_working_dir()  -->  self.working_dir = /tmp
FEM: No nodes found in Frd file.
FEM: No result object in active Analysis.
Attachments
tmp.fcstd
(96.35 KiB) Downloaded 23 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: thermomech example - FEM: No nodes found in Frd file.

Post by bernd »

Das file aus den unit tests. Lässt sich wohl auch nachrechnen.

OS: Debian GNU/Linux 8.6 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9592 (Git)
Build type: Unknown
Branch: master
Hash: c2f2a250549163947592069262ce1cd3328b3669
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.0.0
thermomech.fcstd
(16.11 KiB) Downloaded 33 times
screen.jpg
screen.jpg (278.79 KiB) Viewed 1687 times
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: thermomech example - FEM: No nodes found in Frd file.

Post by HoWil »

Thx Bernd for the model. It guided me to the origin of the problem!!!
I used the PLA-material where no material specific values for thermal simulations are specified. The thermal conductivity, the expansion coeff. are all set to zero!
Changing the material in the provided "thermomech.fcstd" to PLA results in the same 'error'/problem.

Is it possible to check these values <>0 for a thermomech. simulation or fill in values (I see that it is hard to find such values)
BR
HoWil
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: thermomech example - FEM: No nodes found in Frd file.

Post by bernd »

HoWil wrote:Thx Bernd for the model. It guided me to the origin of the problem!!!
I used the PLA-material where no material specific values for thermal simulations are specified. The thermal conductivity, the expansion coeff. are all set to zero!
Changing the material in the provided "thermomech.fcstd" to PLA results in the same 'error'/problem.

Is it possible to check these values <>0 for a thermomech. simulation or fill in values (I see that it is hard to find such values)
BR
HoWil
it' true inpla these are missing:

PLA- https://github.com/FreeCAD/FreeCAD/blob ... /PLA.FCMat
Steel-Generic - https://github.com/FreeCAD/FreeCAD/blob ... eric.FCMat

Mhh there is a check ... https://github.com/FreeCAD/FreeCAD/blob ... ls.py#L362 but for some reason the check does not work as it should be ...
Last edited by bernd on Fri Jan 13, 2017 9:11 am, edited 1 time in total.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: thermomech example - FEM: No nodes found in Frd file.

Post by bernd »

bernd wrote: Mhh es hat einen check ... https://github.com/FreeCAD/FreeCAD/blob ... ls.py#L362 springt dann wohl irgendwie nicht an ...
try this:

branch:
https://github.com/berndhahnebach/FreeC ... its/femdev

commit:
https://github.com/berndhahnebach/FreeC ... 3ff499b555
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: thermomech example - FEM: No nodes found in Frd file.

Post by HoWil »

Thx Bernd.
The check does work now :!:
Message
Message
Screenshot from 2017-01-13 15-15-49.png (12.05 KiB) Viewed 1611 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: thermomech example - FEM: No nodes found in Frd file.

Post by bernd »

https://github.com/FreeCAD/FreeCAD/pull/438

BTW: the thermomech example of FEM unit test will be saved as FreeCAD file during unit tests.
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: thermomech example - FEM: No nodes found in Frd file.

Post by HoWil »

bernd wrote:https://github.com/FreeCAD/FreeCAD/pull/438
BTW: the thermomech example of FEM unit test will be saved as FreeCAD file during unit tests.
I do not really understand ... which 'FEM unit test ' do you mean?
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: thermomech example - FEM: No nodes found in Frd file.

Post by bernd »

HoWil wrote:
bernd wrote:https://github.com/FreeCAD/FreeCAD/pull/438
BTW: the thermomech example of FEM unit test will be saved as FreeCAD file during unit tests.
I do not really understand ... which 'FEM unit test ' do you mean?
OS: Debian GNU/Linux 8.6 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9641 (Git)
Build type: Unknown
Branch: master
Hash: d8afbe563e52281daac5fa63b12ef2e9efc61e9e
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.0.0

- Start FreeCAD --> change to Test Workbench --> click on Self Test
- in widget change to TestFem --> click on Start -- > you should get no error --> close the widget
- if you are on Linux --> got to /tmp --> there are three directories
- FEM_static, FEM_frequency, FEM_thermomech --> inside are the FreeCAD files of the test cases
screen.jpg
screen.jpg (140.7 KiB) Viewed 1553 times
Post Reply