FemByGen Workbench - Parametric FEM Analysis

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FemByGen Workbench - Parametric FEM Analysis

Post by Kunda1 »

For convenience here's the fembygen Results.py source: https://github.com/Serince/FEMbyGEN/blo ... Results.py
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
serince
Posts: 10
Joined: Fri Sep 03, 2021 2:41 pm

Re: FemByGen Workbench - Parametric FEM Analysis

Post by serince »

markus_freecad wrote: Fri Sep 30, 2022 9:51 am Hi,
I have problems with an easy test example.

At the end there is no result matrix because of this.
Could anyone help?

Kindly regards
Markus
Hi Markus,

It was a bug that occurred only for an analysis container (one loadcase). I fixed it. Can you update the Fembygen workbench?

All the best,
Serdar
Outsourced
Posts: 81
Joined: Wed Feb 03, 2021 8:07 am

Re: FemByGen Workbench - Parametric FEM Analysis

Post by Outsourced »

Hello Sedar,
Congratulations on the release of the workbench, FEMByGen & Beso are putting the 'Aided' in The CAD!

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/Australia (en_AU)
Installed mods: 
  * A2plus 0.4.59d
  * Assembly3 0.11.3
  * Assembly4 0.12.4
  * FEMbyGEN 1.1.0
  * lattice2 1.0.0
  * ModernUI
Please Note the error & the file are attached/Included (Forum says file too large) https://drive.google.com/file/d/1JNfPuK ... sp=sharing.
Basically its a bracket analysis & It hang up after the results button was triggered.
Attachments
Screenshot Comms_03.png
Screenshot Comms_03.png (71.66 KiB) Viewed 10924 times
serince
Posts: 10
Joined: Fri Sep 03, 2021 2:41 pm

Re: FemByGen Workbench - Parametric FEM Analysis

Post by serince »

Outsourced wrote: Sat Oct 08, 2022 6:15 am Hello Sedar,
Congratulations on the release of the workbench, FEMByGen & Beso are putting the 'Aided' in The CAD!

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/Australia (en_AU)
Installed mods: 
  * A2plus 0.4.59d
  * Assembly3 0.11.3
  * Assembly4 0.12.4
  * FEMbyGEN 1.1.0
  * lattice2 1.0.0
  * ModernUI
Please Note the error & the file are attached/Included (Forum says file too large) https://drive.google.com/file/d/1JNfPuK ... sp=sharing.
Basically its a bracket analysis & It hang up after the results button was triggered.
Hi,
Probably, one of your analysis is not completed. Can you check all results in the their generated file, not in master file. My mean, in the same folder there are some folders which name is Gen1 , Gen2... open that freecad files to check results probably one of them is not completed. In the next update, I will add better error handling to see details. I coudn't even open your model when I open your model, because my notebook freezed.
I suggest that modelling 2D this kind of simulattion. If thickness and the other sizes are too different, 2D results are more trustable. After sketch, you can convert your wires to surface in part menu. Then you can define thickness in FEM workbench.

All the best,
Outsourced
Posts: 81
Joined: Wed Feb 03, 2021 8:07 am

Re: FemByGen Workbench - Parametric FEM Analysis

Post by Outsourced »

Thanks for the reply, I will look into 2d FEM sometime in the near future, I just thought with the subtractions generated in beso, it would be better to break down the simulation to 1mm for the ease of using pressure loading and the finished part could easily be traced from 1mm sim. I havent trainned in 2d as of yet but understand the concept line & triangular loading mmm can calculix even do triangular loading.....too late to study atm. Lol
serince
Posts: 10
Joined: Fri Sep 03, 2021 2:41 pm

Re: FemByGen Workbench - Parametric FEM Analysis

Post by serince »

Outsourced wrote: Mon Oct 10, 2022 11:31 am Thanks for the reply, I will look into 2d FEM sometime in the near future, I just thought with the subtractions generated in beso, it would be better to break down the simulation to 1mm for the ease of using pressure loading and the finished part could easily be traced from 1mm sim. I havent trainned in 2d as of yet but understand the concept line & triangular loading mmm can calculix even do triangular loading.....too late to study atm. Lol
I have done for you
FC0.20.1_Gen_Des_FEMbyGen(1)_08.10.22.FCStd
(224.24 KiB) Downloaded 93 times
maybe you can write a tutorial document in wiki :D .

All the best
Outsourced
Posts: 81
Joined: Wed Feb 03, 2021 8:07 am

Re: FemByGen Workbench - Parametric FEM Analysis

Post by Outsourced »

Hello Serince,
Sadly my time with experimental features is out of reach for a while, due to major life & death renovations. So there are 6 downloads on the above file perhaps the follows could contribute a little. Keep up the good work I will be back in approx 6 months.
PMMA
Posts: 31
Joined: Mon Nov 14, 2022 8:07 pm

Re: FemByGen Workbench - Parametric FEM Analysis

Post by PMMA »

Got some issues under snap-version.

Code: Select all

OS: Ubuntu Core 20 (Budgie:GNOME/budgie-desktop)
Word size of FreeCAD: 64-bit
Version: 0.21.30988 (Git) Snap 426
Build type: Release
Branch: master
Hash: 0679c40d26ab2f48ca0f8cd0c34ac3bdbdacec54
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * CurvedShapes 1.0.3
  * ArchTextures
  * MOOC 2022.4.21
  * EM
  * Pyramids-and-Polyhedrons
  * freecad.gears.backup1667327399.8652053
  * ModernUI.backup1662298220.4497876
  * POV-Ray-Rendering
  * CfdOF 1.17.5
  * CADExchanger
  * MOOC.backup1662298235.0115418
  * InventorLoader
  * fasteners 0.3.50
  * sheetmetal 0.2.57
  * InventorLoader.backup1667327052.9532268
  * BIM 2021.12.0
  * ExplodedAssembly
  * OSE3dPrinter
  * ModernUI
  * ose-piping
  * lattice2 1.0.0
  * dodo 1.0.0
  * Curves 0.5.2
  * FEMbyGEN 1.1.0
  * 3D_Printing_Tools
  * freecad.gears
  * MeshRemodel 1.8919.0
Error:

Code: Select all

07:45:30  Please delete earlier generations: Gen1 already exist in the folder
The example work.

My testfile works without changes under:

Code: Select all

OS: Ubuntu 20.04.5 LTS (Budgie:GNOME/budgie-desktop)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: German/Germany (de_DE)
Installed mods: 
  * InventorLoader 1.3.0
  * FEMbyGEN 1.1.0
So i think it is related to something in the snap-version.
serince
Posts: 10
Joined: Fri Sep 03, 2021 2:41 pm

Re: FemByGen Workbench - Parametric FEM Analysis

Post by serince »

PMMA wrote: Fri Nov 18, 2022 6:50 am
Error:

Code: Select all

07:45:30  Please delete earlier generations: Gen1 already exist in the folder
So i think it is related to something in the snap-version.
Hi,

Actually, the error message explained the condition. When you press the generate button, generation folders are created in the same path as your file. If you want to again generate, these folders (Gen1, Gen2....) must be deleted. Please press the "Delete earlier generations" button at the bottom of the same screen or delete the Gen1, Gen2 ... folders in the FreeCAD master model file path. If you are getting an error message despite doing this, could you try moving your master file to another folder?

Apart from that, I made some changes, such as multicore operations. can someone test the dev branch?

All the best,
PMMA
Posts: 31
Joined: Mon Nov 14, 2022 8:07 pm

Re: FemByGen Workbench - Parametric FEM Analysis

Post by PMMA »

1. Delete earlier generations [x]
2. Move master file [x]
Actually, the error message explained the condition. When you press the generate button, generation folders are created in the same path as your file. If you want to again generate, these folders (Gen1, Gen2....) must be deleted. Please press the "Delete earlier generations" button at the bottom of the same screen or delete the Gen1, Gen2 ... folders in the FreeCAD master model file path. If you are getting an error message despite doing this, could you try moving your master file to another folder?
My snapversion also gives me the error:

Cannot rename project file to backup file.

I have to save my files especially with the ending .FCStd, otherwise i get a hidden File.
Maybe its related to that.

Under the AppImage your workbench runs fine.
I like it
Post Reply