FEA of a 3D-Printed Part

About the development of the FEM module/workbench.

Moderator: bernd

Klemmkeil
Posts: 24
Joined: Sun Apr 04, 2021 11:12 am

FEA of a 3D-Printed Part

Post by Klemmkeil »

Hello to all female and male readers,
I´m a student from Germany and i am writing my thesis about simulation of 3D-printed parts produced via FDM.
I would like to simulate a part which i sliced with Prusaslicer.
I got an .obj file, but it isn´t a solid. Repairing didn´t worked, it has a huge amount of open contour.
Also i got an G-code file. My idea is to use the G-code, define the layerheigt and the diameter and shape of the deposited filament, and use a macro or something else to extrude this shape along the path given by the G-code. I thought i would get by this way a solid, which i maybe fuse with boolean operations. This solid i would like to simulate and compare the results with an testcase.
My Part is is the testspecimen ISO 527-2 Type 1A. I want to use different infills, such as a honeycomb and diffent percentual grades of an infill.
So manual design is not an option for me.

Are any macros or basebuilds for FreeCAD existing yet? Is my idea makeable in FreeCad?
Of course i can give you an example of the Basepart, obj. file and the G-code.
For usage in the macro i will edit the G-code by leaving out any non necessary part of the Code.

I want to excuse for my bad writing.

Thank you for every answer.
Have a nice day
Nic
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FEA of a 3D-Printed Part

Post by Kunda1 »

Mod edit: Moved to FEM subforum (left a shadow topic in Developer subforum)
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
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: FEA of a 3D-Printed Part

Post by Jee-Bee »

I can remember i have seen something about 3D printing and heat analysis. My head said it has something to do with Ansys.
But i don't know how they did the 3d print shapes how that was created. At current state i would say FC isn't able to do that kind of advanced mesh / shape generation. Second point is that i believe directly that if FC was able to do something similar FC becomes really slow since FC don't have anything related to optimisation of graphical representation!

I would say if it your PHD then you have probably enough time to program so that shape generation of G code is possible. if it is a master thesis i think you have to try somewhere else.
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: FEA of a 3D-Printed Part

Post by keithsloan52 »

Klemmkeil wrote: Sun Apr 04, 2021 11:31 am Hello to all female and male readers,
I´m a student from Germany and i am writing my thesis about simulation of 3D-printed parts produced via FDM.
I would like to simulate a part which i sliced with Prusaslicer.
I got an .obj file, but it isn´t a solid. Repairing didn´t worked, it has a huge amount of open contour.
Also i got an G-code file. My idea is to use the G-code, define the layerheigt and the diameter and shape of the deposited filament, and use a macro or something else to extrude this shape along the path given by the G-code. I thought i would get by this way a solid, which i maybe fuse with boolean operations. This solid i would like to simulate and compare the results with an testcase.
My Part is is the testspecimen ISO 527-2 Type 1A. I want to use different infills, such as a honeycomb and diffent percentual grades of an infill.
So manual design is not an option for me.

Are any macros or basebuilds for FreeCAD existing yet? Is my idea makeable in FreeCad?
Of course i can give you an example of the Basepart, obj. file and the G-code.
For usage in the macro i will edit the G-code by leaving out any non necessary part of the Code.

I want to excuse for my bad writing.

Thank you for every answer.
Have a nice day
Nic
You say repairing did not work, did you look at MeshLab https://www.meshlab.net

You might also research Gmsh and Tetgen.
Klemmkeil
Posts: 24
Joined: Sun Apr 04, 2021 11:12 am

Re: FEA of a 3D-Printed Part

Post by Klemmkeil »

yes i allready looked at meshlab.
I will give it a try tomorrow.
I thought by using a macro, i could also extrude the real form of the filament.
This shape i will investigate in microscopie and will edit it.
thschrader
Veteran
Posts: 3132
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: FEA of a 3D-Printed Part

Post by thschrader »

Klemmkeil wrote: Sun Apr 04, 2021 11:31 am ...
Are any macros or basebuilds for FreeCAD existing yet? Is my idea makeable in FreeCad?
...
I would say yes. Here is a testcase. Maybe you can use this as a starting point.
Fixing broken obj/stl-files is time consuming.

You can re-run the analysis by yourself:
open file in FC
doubleclick on analysis in modeltree, FEM workbench activates
doubleclick on FEMMesh in modeltree, press "apply" for remeshing
doubleclick on solver in tree, write inp-file and run analysis.
Meshing is fast, calculation < 1 min.
Hope that helps.
Frohe Ostern :) (Happy Eastern)
Thomas
test_iso.FCStd
(323.02 KiB) Downloaded 90 times
honeycomb.JPG
honeycomb.JPG (93 KiB) Viewed 4726 times
User avatar
M4x
Veteran
Posts: 1474
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: FEA of a 3D-Printed Part

Post by M4x »

What about designing the 3d model in a way it would look like after the slicer prepared it for printing? Amount of perimeters, infill and so on? Would that work for you?
Klemmkeil
Posts: 24
Joined: Sun Apr 04, 2021 11:12 am

Re: FEA of a 3D-Printed Part

Post by Klemmkeil »

Thank you for your Answer.
It's a good Example for a Simulation.
thschrader wrote: Mon Apr 05, 2021 9:08 am
Klemmkeil wrote: Sun Apr 04, 2021 11:31 am ...
Are any macros or basebuilds for FreeCAD existing yet? Is my idea makeable in FreeCad?
...
I would say yes. Here is a testcase. Maybe you can use this as a starting point.
Fixing broken obj/stl-files is time consuming.

You can re-run the analysis by yourself:
open file in FC
doubleclick on analysis in modeltree, FEM workbench activates
doubleclick on FEMMesh in modeltree, press "apply" for remeshing
doubleclick on solver in tree, write inp-file and run analysis.
Meshing is fast, calculation < 1 min.
Hope that helps.
Frohe Ostern :) (Happy Eastern)
Thomas
test_iso.FCStd
honeycomb.JPG
Klemmkeil
Posts: 24
Joined: Sun Apr 04, 2021 11:12 am

Re: FEA of a 3D-Printed Part

Post by Klemmkeil »

M4x wrote: Mon Apr 05, 2021 1:46 pm What about designing the 3d model in a way it would look like after the slicer prepared it for printing? Amount of perimeters, infill and so on? Would that work for you?
Designing it, would be usefull. But i think it would be really timeconsuming or not exact. So i would get unwanted divergences between the simulation and the testcase.

I'm currently working on a macro, which interpretates my g-code. I'm a newbie in phyton, but i hope to get it working.
When i get good results, i will post the results and the macro in this thread.
User avatar
M4x
Veteran
Posts: 1474
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: FEA of a 3D-Printed Part

Post by M4x »

To answer that, we would need a picture or something like that ;)
Post Reply