FEM FemMesh2Mesh/it: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
</div> |
</div> |
||
<span id="Description"></span> |
|||
== Descrizione == |
== Descrizione == |
||
Line 22: | Line 23: | ||
</div> |
</div> |
||
<span id="Usage"></span> |
|||
==Utilizzo== |
==Utilizzo== |
||
Line 31: | Line 33: | ||
== Scripting == |
== Scripting == |
||
'''Note''': The parameter ''scale'' was {{Version| |
'''Note''': The parameter ''scale'' was {{Version|0.21}}. For older versions of FreeCAD omit it from your code. |
||
⚫ | |||
When you just require the displacement scale factor, check your mesh object name and the scale factor in the following code: |
|||
{{Code|code= |
{{Code|code= |
||
⚫ | |||
⚫ | |||
import FreeCAD as App |
|||
mesh_obj = FEMMeshGmsh # the name of your mesh object |
|||
scale = 5 # displacement scale factor |
|||
out_mesh = femmesh.femmesh2mesh.femmesh_2_mesh(FreeCAD.ActiveDocument.mesh_obj.FemMesh, FreeCAD.ActiveDocument.CCX_Results, scale) |
|||
import Mesh |
import Mesh |
||
⚫ | |||
Mesh.show(Mesh.Mesh(out_mesh)) |
|||
}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
fem_mesh = doc.Box_Mesh.FemMesh |
|||
{{Code|code= |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
fem_mesh = fc_file.getObject("Box_Mesh").FemMesh # do not remove the _ |
|||
⚫ | |||
scale = 1 # displacement scale factor |
scale = 1 # displacement scale factor |
||
from femmesh import femmesh2mesh |
|||
out_mesh = femmesh2mesh.femmesh_2_mesh(fem_mesh, result, scale) |
out_mesh = femmesh2mesh.femmesh_2_mesh(fem_mesh, result, scale) |
||
import Mesh |
|||
Mesh.show(Mesh.Mesh(out_mesh)) |
Mesh.show(Mesh.Mesh(out_mesh)) |
||
}} |
}} |
Latest revision as of 14:40, 12 October 2023
Converti mesh FEM in mesh |
Posizione nel menu |
---|
Mesh → Converti mesh FEM in mesh |
Ambiente |
FEM |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Tutorial di FEM |
Descrizione
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.
Utilizzo
Scripting
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))
FEM
- Materials: Solid, Fluid, Nonlinear mechanical, Reinforced (concrete); Material editor
- Element geometry: Beam (1D), Beam rotation (1D), Shell (2D), Fluid flow (1D)
Constraints
- Electromagnetic: Electrostatic potential, Current density, Magnetization
- Geometrical: Plane rotation, Section print, Transform
- Mechanical: Fixed, Displacement, Contact, Tie, Spring, Force, Pressure, Centrif, Self weight
- Thermal: Initial temperature, Heat flux, Temperature, Body heat source
- Overwrite Constants: Constant vacuum permittivity
- Solve: CalculiX Standard, Elmer, Mystran, Z88; Equations: Deformation, Elasticity, Electrostatic, Electricforce, Magnetodynamic, Magnetodynamic 2D, Flow, Flux, Heat; Solver: Solver control, Solver run
- Results: Purge, Show; Postprocessing: Apply changes, Pipeline from result, Warp filter, Scalar clip filter, Function cut filter, Region clip filter, Contours filter, Line clip filter, Stress linearization plot, Data at point clip filter, Filter function plane, Filter function sphere, Filter function cylinder, Filter function box
- Additional: Preferences; FEM Install, FEM Mesh, FEM Solver, FEM CalculiX, FEM Concrete; FEM Element Types
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub