FEM FemMesh2Mesh
Jump to navigation
Jump to search
Outdated translations are marked like this.
Расположение в меню |
---|
Mesh → FEM mesh to mesh |
Верстаки |
FEM |
Быстрые клавиши |
Представлено в версии |
- |
См. также |
FEM tutorial |
Description
This tool converts surfaces of 3D elements of a selected 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.
Two dimensional elements from the FEM mesh are not taken into account. If you need to convert them, you can use a python script below.
Usage
- Select a FEM mesh object.
- Optionally also select the FEM results.
- There are several ways to invoke the command:
- Press the
FEM FemMesh2Mesh button.
- Select the Mesh →
FEM mesh to mesh option from the menu.
- Press the
Scripting
Example: Load FreeCAD's 3D FEM example from the Start Workbench and run the following code
femmesh_obj = App.ActiveDocument.getObject("Result_mesh").FemMesh
result = App.ActiveDocument.getObject("CalculiX_static_results")
import femmesh.femmesh2mesh
out_mesh = femmesh.femmesh2mesh.femmesh_2_mesh(femmesh_obj, result)
import Mesh
Mesh.show(Mesh.Mesh(out_mesh))
Converting 2D elements
Select a mesh and run the following python script
import Mesh
def extend_by_triangle(i, j, k):
triangle = [input_mesh.getNodeById(element_nodes[i]),
input_mesh.getNodeById(element_nodes[j]),
input_mesh.getNodeById(element_nodes[k])]
return output_mesh.extend(triangle)
selection = FreeCADGui.Selection.getSelection()
input_mesh = App.ActiveDocument.getObject(selection[0].Name).FemMesh
output_mesh = []
for element in input_mesh.Faces:
element_nodes = input_mesh.getElementNodes(element)
if len(element_nodes) in [3, 6]: # tria3 or tria6 (ignoring mid-nodes)
extend_by_triangle(0, 1, 2)
elif len(element_nodes) in [4, 8]: # quad4 or quad8 (ignoring mid-nodes)
extend_by_triangle(0, 1, 2)
extend_by_triangle(2, 3, 0)
obj = Mesh.Mesh(output_mesh)
Mesh.show(obj)
FEM
- Материалы: Solid, Fluid, Nonlinear mechanical; Material editor
- Element geometry: Beam (1D), Beam rotation (1D), Shell (2D), Fluid flow (1D)
Ограничения
- Электростатика: Potential
- Жидкости: Initial velocity, Fluid boundary, Flow velocity
- Механика: Fixed, Displacement, Plane rotation, Contact, Transform, Force, Pressure, Self weight, Bearing, Gear, Pulley
- Термические: Initial temperature, Heat flux, Temperature, Heat source
- Сетка: Mesh Netgen, Mesh GMSH, Mesh boundary layer, Mesh region, Mesh group, Nodes set, Mesh to mesh
- Решение: Calculix tools, CalculiX, Elmer, Z88; Уравнения: Heat, Elasticity, Electrostatic, Fluxsolver, Flow; Решатель: Solver control, Solver run
- Результаты: Purge, Show; Постобработка: Apply changes, Pipeline from result, Create warp vector filter, Create scalar clip filter, Create cut filter, Create clip filter, Create data along line filter, Create linearized stresses,
Create data at point filter, Create functions
- Дополнительно: Preferences; FEM Install, FEM Mesh, FEM Solver, FEM CalculiX, FEM Project, FEM Concrete; FEM Element Types
Документация пользователя

- Установка: Windows, Linux, Mac; Начинающим
- Базовая: О FreeCAD, Верстаки, Настройки, Структура документа, Настройка интерфейса, Свойства, Модель мыши; Учебники
- Верстаки: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Скрипты: Введение в Python, Учебник скриптов FreeCAD, Основы скриптов FreeCAD, Установка макросов, Команды графического интерфейса, Единицы Модули: Создание модулей, Создание верстаков, Добавление верстаков Сетки: Сеточные скрипты, Модуль сеток Детали: Модуль Part, Скрипты топологических данных, PythonOCC, Из Mesh в Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Интерфейс Qt: PySide, Использование графического интерфейса FreeCAD, Создание диалогов Параметрические объекты: Скриптовые объекты Прочее: Кусочки кода, Функции рисования линий, Встраивание FreeCAD, Библиотека векторной математики FreeCAD, Хаб опытных пользователей, Python, Макросы, Основы скриптов FreeCAD, Topological data scripting