FreeCAD FEM static python macro

In this tutorial:
how to automate/prepare FEM Simulation, using Python & macros in FreeCAD.
How to execute macros shown here:
https://vimeo.com/1135044147

  1. Step 1: How to automate

    Hi there,

    In order to perform repetitive actions, it usefull to create automation using macros in FreeCAD and Python scripting language.

    To create Python macros in FreeCAD, click, please:

    Macro>Create>Give specific Macros_Name>Write macros

    To edit macros:

    Macro>Create>Selece specific Macros_Name>Edit

    It's recommende to use external Python GUI - editor IDLE, Kate OR Notepad++. 

    Debugging code & testing possible, when Python console activated:

    Click please View> Panels> Python console 

    View> Panels> Report View

    To execute macro, hit Ctrl +F6.

    Select Material, Run Solver (.inp files + CalculiX) & View Results.


    Thanx.

  2. Step 2: Python script

    Script schould consist of:

    >importing necessary FreeCAD/Python libraries:

    >creating document:

    >adding primitive:

    >creating Analysis container:

    >applying boundary conditions: fixed face(s):

    >applying load(pressure):

    > and most important step, meshing:



Comments