|
Posizione nel menu |
---|
Mesh → Converti mesh FEM in mesh |
Ambiente |
FEM |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Tutorial di FEM |
Questo strumento converte in mesh le superfici degli elementi 3D di una mesh FEM selezionata. Sceglie le facce dell'elemento mesh FEM che sono uniche (non condivise da due elementi) e le usa per creare le facce di una mesh. Facoltativamente consente di creare una mesh deformata dall'azione delle forze definite. Ciò avviene aggiungendo lo spostamento dei risultati FEM ai nodi della maglia.
introduced in version 1.0: The tool also creates a Mesh2Fem object which is a triangular FEM mesh generated from the surface mesh.
Note: The parameter scale was introduced in version 0.21. For older versions of FreeCAD omit it from your code.
The cantilever example in FreeCAD version 1.0:
from os.path import join
import FreeCAD as App
import Mesh
from femmesh import femmesh2mesh
path = join(App.getResourceDir(), "examples", "FEMExample.FCStd")
doc = App.openDocument(path)
fem_mesh = doc.FEMMeshGmsh.FemMesh
result = doc.CCX_Results
scale = 10 # displacement scale factor
out_mesh = femmesh2mesh.femmesh_2_mesh(fem_mesh, result, scale)
Mesh.show(Mesh.Mesh(out_mesh))
Constraints