FEM Tutorial Python/es

Introducción
Este ejemplo pretende mostrar cómo Python realiza un simple Análisis de elementos finitos (FEA) en FreeCADs FEM Module. El modelo de FEM_CalculiX_Cantilever_3D se tomará para este ejemplo.



Requisitos

 * Versión de FreeCAD -> Descripción general del tutorial correspondiente
 * Esto se puede verificar en el menú Ayuda -> acerca de FreeCAD.
 * Al pensar que debido a los cambios continuos en el módulo FEM, se recomienda utilizar la última instantánea de desarrollo de FreeCAD para los análisis FEM con guión en Python.
 * Un módulo de configuración FEM. Marque FEM_CalculiX_Cantilever_3D

FEM mesh (manual)
This section contains the FEM mesh code. Please expand it to view the contents.

Note: Check out the Additional Information section below for how to script mesh generation with GMSH or Netgen mesh object.

Run the analysis
To run the analysis using Python, an instance of the module needs to be created. Once this instance has been created, we have two choices when running the analysis: If there is only one analysis in the document and only one solver in the analysis, then no objects need to be passed on. The method of the  class will activate the analysis if the GUI is up.
 * 1) Run all processes together at once (see "All in one" section below)
 * 2) Run processes one after the other (see "Step by step" section below)

Activating an analysis using Python works a follows:

Netgen
Scripting the Netgen mesh object was attempted in the "Parametrized FEM study" (FreeCAD FEM subforum thread), but has some limitations.

GMSH
On the contrary, the GMSH mesh object fully supports python scripting. See the following forum posts:
 * https://forum.freecadweb.org/viewtopic.php?f=22&t=42922#p365042
 * forum topic http://forum.freecadweb.org/viewtopic.php?f=18&t=20087

Scripting multiple analysis
See forum post: http://forum.freecadweb.org/viewtopic.php?f=18&t=19549#p151385

Standard FreeCAD result object
See forum posts:
 * https://forum.freecadweb.org/viewtopic.php?f=18&t=34048&p=289519#p289519 → scale factor in standard result object
 * http://forum.freecadweb.org/viewtopic.php?f=18&t=4677&start=20#p148982
 * http://forum.freecadweb.org/viewtopic.php?f=18&t=4677&start=30#p149043
 * http://forum.freecadweb.org/viewtopic.php?t=18415#p144028
 * https://forum.freecadweb.org/viewtopic.php?f=18&t=31123&p=258761#p258761 → coloring just one element
 * https://forum.freecadweb.org/viewtopic.php?f=18&t=41951&p=357687#p357685 → reset all result mesh, show colored displacement magnitude

Vtk result object
See forum posts:
 * https://forum.freecadweb.org/viewtopic.php?f=18&t=47227#p405406

Modo de consola
Escribir el archivo de entrada en el modo de consola FreeCAD (sin Gui) se podría hacer en modo de prueba. Consulte la publicación del foro a este respecto: https://forum.freecadweb.org/viewtopic.php?f=22&t=25852&p=208897#p208897

Apéndice
¡Que te diviertas!