FEM FemMesh2Mesh/de: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


{{Docnav
{{Docnav
|[[FEM_MeshGroup|FEM mesh group]]
|[[FEM_CreateNodesSet|Nodes set]]
|[[FEM_SolverCalculixCxxtools|Solver CalculiX Standard]]
|[[FEM_SolverCalculixCxxtools|Solver CalculiX Standard]]
|[[FEM_Workbench|FEM]]
|[[FEM_Workbench|FEM]]
|IconL=FEM_CreateNodesSet.svg
|IconL=FEM_MeshGroup.svg
|IconR=FEM_SolverCalculixCxxtools.svg
|IconR=FEM_SolverCalculixCxxtools.svg
|IconC=Workbench_FEM.svg
|IconC=Workbench_FEM.svg
Line 21: Line 21:
==Beschreibung==
==Beschreibung==


This tool converts surfaces of 3D elements of a selected FEM mesh to mesh, or converts 2D FEM mesh to mesh. Internally it picks FEM mesh element faces which are unique (not shared by two elements) and uses them to create faces of a mesh. Optionally it allows to create a deformed mesh caused by the action of the defined forces. This is done by adding the displacement of the FEM results to the mesh nodes (scale of the displacement can be set by Python).
This tool converts surfaces of 3D elements of a selected FEM mesh to mesh or converts 2D FEM mesh to mesh. Internally, it picks FEM mesh element faces that are unique (not shared by two elements) and uses them to create faces of a mesh. Optionally, it can be used to save a deformed mesh. This is done by adding the displacement of the FEM results to the mesh nodes (the scale of the displacement can be set using Python).


<span id="Usage"></span>
<span id="Usage"></span>
Line 56: Line 56:


{{Docnav
{{Docnav
|[[FEM_MeshGroup|FEM mesh group]]
|[[FEM_CreateNodesSet|Nodes set]]
|[[FEM_SolverCalculixCxxtools|Solver CalculiX Standard]]
|[[FEM_SolverCalculixCxxtools|Solver CalculiX Standard]]
|[[FEM_Workbench|FEM]]
|[[FEM_Workbench|FEM]]
|IconL=FEM_CreateNodesSet.svg
|IconL=FEM_MeshGroup.svg
|IconR=FEM_SolverCalculixCxxtools.svg
|IconR=FEM_SolverCalculixCxxtools.svg
|IconC=Workbench_FEM.svg
|IconC=Workbench_FEM.svg

Latest revision as of 10:14, 2 March 2024

FEM FemNetzZuNetz

Menüeintrag
Mesh → FEM mesh to mesh
Arbeitsbereich
FEM
Standardtastenkürzel
Keiner
Eingeführt in Version
-
Siehe auch
FEM Tutorium

Beschreibung

This tool converts surfaces of 3D elements of a selected FEM mesh to mesh or converts 2D FEM mesh to mesh. Internally, it picks FEM mesh element faces that are unique (not shared by two elements) and uses them to create faces of a mesh. Optionally, it can be used to save a deformed mesh. This is done by adding the displacement of the FEM results to the mesh nodes (the scale of the displacement can be set using Python).

Anwendung

  1. Ein FEM-mesh-Objekt auswählen
  2. Optionally also select the FEM results.
  3. Es gibt mehrereMöglichkeiten den Befehl aufzurufen:
    • Die Schaltfläche FEM-Netz zu Netz drücken.
    • Den Menüeintrag Netz → FEM-Netz zu Netz auswählen.

Skripten

Note: The parameter scale was introduced in version 0.21. For older versions of FreeCAD omit it from your code.

The cantilever example:

from os.path import join
import FreeCAD as App
import Mesh
from femmesh import femmesh2mesh

path = join(App.getResourceDir(), "examples", "FemCalculixCantilever3D.FCStd")
doc = App.openDocument(path)
fem_mesh = doc.Box_Mesh.FemMesh
result = doc.CCX_Results
scale = 1  # displacement scale factor
out_mesh = femmesh2mesh.femmesh_2_mesh(fem_mesh, result, scale)
Mesh.show(Mesh.Mesh(out_mesh))