I wrote a Python / Freecad library to do HUNDREDS of simulations in less than 20 minutes

Ғылым және технология

I wrote a library to run quick structural parametric studies in FreeCAD!
It's available to everyone on pypi, instructions on the project's GitHub: github.com/da-crivelli/freeca...
Did I mention it's free and open source? And that it only takes 20 lines of Python to run hundreds of test cases?
You can download the tutorial model and Python script from here: github.com/da-crivelli/freeca...
If you like what you are seeing and you want to see more, consider buying me a coffee :) www.buymeacoffee.com/dacrivelli
Prerequisites:
- FreeCAD 0.20 www.freecad.org/
- Python 3.8.10 www.python.org/downloads/rele...
- (optional) pipenv pipenv.pypa.io/en/latest/
- (optional) ParaView www.paraview.org/
Timestamps:
00:00 Intro
00:50 Part design in FreeCAD
03:46 FEA set up in FreeCAD
09:46 Parametric study in Python
18:00 Looking at plots of results
19:20 Full results in Paraview

Пікірлер: 29

  • @anilyasasvi8705
    @anilyasasvi8705 Жыл бұрын

    hello, thank you for the video. but in my system this version is for python 3.8.. Now I am using the updated version of python.. could you pls help me in gtting these files for my current version

  • @engineeringmaths

    @engineeringmaths

    Жыл бұрын

    You can install multiple versions of Python on your system, and create a virtual environment that uses the correct version (using "pipenv --python 3.8"). There's some step by step instructions on the README file in the repository here: github.com/da-crivelli/freecad-parametric-fea Let me know how you get on!

  • @anilyasasvi4197

    @anilyasasvi4197

    Жыл бұрын

    @@engineeringmaths I tried to work with the python file but it is showing the below error..pls help me Error text: [36mERROR: Ignored the following versions that require a different python version: 0.1.0 Requires-Python >=3.8.10,=3.8.10,=3.8.10,=3.8.10,

  • @martincronje5242
    @martincronje5242 Жыл бұрын

    Love how you bring out the advance uses of FreeCAD.

  • @AeroSIFT
    @AeroSIFTАй бұрын

    thats a nice work of parametric analysis using FEM

  • @user-cl7lx1cq6p
    @user-cl7lx1cq6p4 ай бұрын

    sweet capability.. I think I am going to jump to FreeCad and python.

  • @Toni-yl4hc
    @Toni-yl4hc Жыл бұрын

    Great implementation!!

  • @FilterYT
    @FilterYT Жыл бұрын

    Neat, cool topic, thanks for sharing!

  • @dewigriffiths3775
    @dewigriffiths3775 Жыл бұрын

    Nice work! You would have told me off for such a mesh when you were helping me with my PhD though!

  • @engineeringmaths

    @engineeringmaths

    Жыл бұрын

    Sadly you have to mesh externally for now if you want to have anything half decent, the freecad integration of gmsh and netgen doesn't support structured meshes yet :( I do feel a bit dirty!

  • @stefankrimbacher7917
    @stefankrimbacher7917 Жыл бұрын

    Very useful video for me. Thanks

  • @RafaGmod
    @RafaGmod Жыл бұрын

    Woow, excelent video!!

  • @Ray88G
    @Ray88G Жыл бұрын

    Thank you .

  • @user-yu2wr5qf7g
    @user-yu2wr5qf7g Жыл бұрын

    Excellent. Thx.

  • @laurentcnc6662
    @laurentcnc6662 Жыл бұрын

    Very interesting development, congrat ! Anyway 360p video contrast fairly with your great job ;-(

  • @engineeringmaths

    @engineeringmaths

    Жыл бұрын

    Weird, I can see the 720p version! Have you tried forcing high quality by clicking on the cog icon?

  • @laurentcnc6662

    @laurentcnc6662

    Жыл бұрын

    @@engineeringmaths Yep

  • @engineeringmaths

    @engineeringmaths

    Жыл бұрын

    @@laurentcnc6662 weird! I just loaded it in a private browsing session and it went straight to 1080p.

  • @patrickschonfeld1125
    @patrickschonfeld11259 ай бұрын

    Wow... Nice work. I will try this next week on my design. Habe you ever heard form evolutionary algorithms?

  • @engineeringmaths

    @engineeringmaths

    7 ай бұрын

    I have programmed the SKO method in Abaqus in the early 2000s for a few projects but haven't touched evolutionary algorithms in ages! I assume technology has changed a lot since...

  • @madaniasurat7780
    @madaniasurat7780 Жыл бұрын

    wow good

  • @anilyasasvi4197
    @anilyasasvi4197 Жыл бұрын

    Could pls let me know how to implement the freecadparametericfea to advanced versions of python

  • @engineeringmaths

    @engineeringmaths

    Жыл бұрын

    Currently I have not tested it with anything other than python 2.8.10 and I have restricted the pypi package to that version to ensure it works with freecad 0.20. If you want to test it with different Python / FreeCAD versions, the source code is available at github.com/da-crivelli/freecad-parametric-fea/

  • @anilyasasvi4197

    @anilyasasvi4197

    Жыл бұрын

    @@engineeringmaths thank you for the support, i tried the way but my python terminal is showing that it is for older versions less than 3.9.0 where as min is 3.10.0.could you help me regarding this

  • @YouTubeuser00
    @YouTubeuser00 Жыл бұрын

    Any idea how I would go about integrating NetGen into my freecad install (as a flatpak) on Ubuntu?

  • @engineeringmaths

    @engineeringmaths

    Жыл бұрын

    I haven't tried installing it on Ubuntu and I thought you could specify the path to netgen in the settings, but it doesn't seem to be possible. I am working on adding support for gmsh in the near future, which should solve a lot of issues.

  • @anilyasasvi4197
    @anilyasasvi4197 Жыл бұрын

    I tried to work with the python file but it is showing the below error..pls help me Error text: [36mERROR: Ignored the following versions that require a different python version: 0.1.0 Requires-Python >=3.8.10,=3.8.10,=3.8.10,=3.8.10,

  • @engineeringmaths

    @engineeringmaths

    Жыл бұрын

    What's the output of "pipenv run python --version" in your project's folder?

  • @anilyasasvi4197

    @anilyasasvi4197

    Жыл бұрын

    @@engineeringmaths the error is the output of the project folder

Келесі