Export mesh with regions and properties of materials

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
bernd
Posts: 8470
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Export mesh with regions and properties of materials

Postby bernd » Fri Oct 11, 2019 9:15 am

Was the last message an information everything is ok, or a question because something deos not work for your workflow? If the later could you describe it a bit better or even better post an example FreeCAD file.
User avatar
Adel Chepkunov
Posts: 9
Joined: Mon Oct 07, 2019 1:03 pm

Re: Export mesh with regions and properties of materials

Postby Adel Chepkunov » Tue Oct 15, 2019 2:27 pm

bernd wrote:
Fri Oct 11, 2019 9:15 am
Was the last message an information everything is ok, or a question because something deos not work for your workflow? If the later could you describe it a bit better or even better post an example FreeCAD file.
Previous post was about inconvenience. If FreeCAD will set name of group as user-given name for materials (and constraints) it will be better.

If these groups will be also added to the file exported from NetGEN-mesh it will be wonderful :)

I've created minimal freecad project and exported several meshes

https://drive.google.com/file/d/1Qe8Ohz ... sp=sharing

In this archive

- project
groups_for_material.FCStd

- meshes, exported from this project
mesh_by_netgen.unv
mesh_by_gmesh.unv

- preferred meshes (difference in section "2467"):
mesh_by_netgen_preferred.unv
mesh_by_gmesh_preferred.unv

key difference for mesh_by_gmesh_preferred:
-SolidMaterial_Volumes
+upCubeSolidMaterial_Volumes

second difference: records according to face-constraint


Additional note

- Mesh, exported for gmesh's-mesh if regions is not defined.
mesh_by_gmesh_wo_regions.unv

This mesh not contains any groups.
User avatar
bernd
Posts: 8470
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Export mesh with regions and properties of materials

Postby bernd » Thu Oct 17, 2019 5:29 pm

Adel Chepkunov wrote:
Tue Oct 15, 2019 2:27 pm
If FreeCAD will set name of group as user-given name for materials (and constraints) it will be better.
The group names of auto constraint group meshing are the names of the FreeCAD objects. They can not be changed. Only the label can be changed. But on creation the name could be given. Means if you create material and constraints by python you have your own group name. See
FEM_Tutorial_Python