add new function to fem module

About the development of the FEM module/workbench.

Moderator: bernd

twangrt
Posts: 40
Joined: Sun Apr 28, 2019 6:34 pm

Re: add new function to fem module

Post by twangrt »

PR regarding the naming of calculix result files.

https://github.com/FreeCAD/FreeCAD/pull/4871
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: add new function to fem module

Post by bernd »

merged
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: add new function to fem module

Post by Jee-Bee »

twangrt wrote: Sat Jun 19, 2021 1:36 pm PR regarding the naming of calculix result files.

https://github.com/FreeCAD/FreeCAD/pull/4871
Congratulations almost 4 years after i have started (and 3.5 years after i failed!) you have succeeded!!
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: add new function to fem module

Post by bernd »

It's done when it's done ... :D
twangrt
Posts: 40
Joined: Sun Apr 28, 2019 6:34 pm

Re: add new function to fem module

Post by twangrt »

Jee-Bee wrote: Tue Aug 24, 2021 5:37 pm
twangrt wrote: Sat Jun 19, 2021 1:36 pm PR regarding the naming of calculix result files.

https://github.com/FreeCAD/FreeCAD/pull/4871
Congratulations almost 4 years after i have started (and 3.5 years after i failed!) you have succeeded!!
Thanks! My first open source contribution. But all things after this I've tried have failed, or as Bernd mentioned.

You didn't fail. You're just not done yet.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: add new function to fem module

Post by bernd »

twangrt wrote: Sat Aug 28, 2021 2:10 pm You didn't fail. You're just not done yet.
Never heard that one but it totally fits in FreeCAD world :D
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: add new function to fem module

Post by uwestoehr »

twangrt wrote: Sun Feb 21, 2021 3:38 pm Creating an example took more effort than I initially thought, but very educational. Have a look at the PR https://github.com/FreeCAD/FreeCAD/pull/4379

Many thanks fro this great feature!
While documenting the feature for FreeCAD 0.20 I encounter these issues:

* When I load the 3 buckling examples from the "Calculix" examples group, CCX 2.17 crashes. It works when I load the examples from the group "ccxtools" in the FEM examples. So shouldn't the 3 buckling examples therefore not be in the "calculix" group?

* I performed the simulation successfully. But how can I visualize the result as I see in your images? When I click on the CCX results object in the document tree, I get this error message:

Code: Select all

FEM: Graphical bending stress output for beam or shell FEM Meshes not yet supported.
User avatar
NewJoker
Veteran
Posts: 3018
Joined: Sun Oct 11, 2020 7:49 pm

Re: add new function to fem module

Post by NewJoker »

uwestoehr wrote: Sun Mar 13, 2022 3:07 am * When I load the 3 buckling examples from the "Calculix" examples group, CCX 2.17 crashes. It works when I load the examples from the group "ccxtools" in the FEM examples. So shouldn't the 3 buckling examples therefore not be in the "calculix" group?
I tried with Lateral Torsional Buckling example and it runs successfully regardless if it's taken from calculix or ccxtools group.

uwestoehr wrote: Sun Mar 13, 2022 3:07 am * I performed the simulation successfully. But how can I visualize the result as I see in your images? When I click on the CCX results object in the document tree, I get this error message:
Strange, when I run the LTB example, I get the CCX_BucklingFactor_1_95_Results object. When I click on it, I see the results and can make a post-processing pipeline out of it:

results.JPG
results.JPG (32.49 KiB) Viewed 1523 times

How does it look like on your side ? Can you share the FreeCAD info data ?
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: add new function to fem module

Post by uwestoehr »

NewJoker wrote: Sun Mar 13, 2022 11:07 am Strange, when I run the LTB example, I get the CCX_BucklingFactor_1_95_Results object. When I click on it, I see the results and can make a post-processing pipeline out of it:
Thanks for having a look. So there is somehow an error that needs to be fixed.

Here is my test case of the LTB example:
Buckling-Test2.FCStd
(518.9 KiB) Downloaded 39 times

And when I run it, I get:

Code: Select all

13:14:57  run CalculiX at: D:/FreeCAD-build/bin/ccx.exe with: D:/Download/Buckling-Test2\CalculiXccxTools\Mesh.inp
13:15:04  Error() PySide2.QtCore.QProcess.ProcessError.Crashed
13:15:04  CalculiX done without error!
13:15:04  
13:15:04  CalculiX read results...
13:15:04  Read ccx results from frd file: D:/Download/Buckling-Test2\CalculiXccxTools\Mesh.frd
13:15:04  Nodes, but no results found in frd file. It means there only is a mesh but no results in frd file. Usually this happens for: 
- analysis type 'NOANALYSIS'
- if CalculiX returned no results (happens on nonpositive jacobian determinant in at least one element)
- just no frd results where requestet in input file (neither 'node file' nor 'el file' in output section')
13:15:04  Read ccx results from dat file: D:/Download/Buckling-Test2\CalculiXccxTools\Mesh.dat

So I get a crash and this most probably causes that I cannot open the CCX result object.

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.28071 (Git)
Build type: Release
Branch: master
Hash: fd11686fe4d3b8a513587ac0700d519538a105fe
Python 3.8.6+, Qt 5.15.2, Coin 4.0.1, OCC 7.5.3
Locale: German/Germany (de_DE)
Installed mods: 
  * A2plus 0.4.54b
  * Assembly4 0.11.10
  * fasteners 0.3.38
  * Manipulator
User avatar
NewJoker
Veteran
Posts: 3018
Joined: Sun Oct 11, 2020 7:49 pm

Re: add new function to fem module

Post by NewJoker »

uwestoehr wrote: Sun Mar 13, 2022 12:19 pm
It works when I delete the results objects in your file and rerun the analysis. I use a slightly older release since that's the most recent one available for Windows on GitHub at the moment:

OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.27809 (Git)
Build type: Release
Python 3.8.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: Polish/Poland (pl_PL)

The .inp file generated in your case might be incorrect (e.g. without proper output requests). Can you share it here ?
Post Reply