FEM Mesh to Mesh with a specific size

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
pi-a
Posts: 2
Joined: Thu Apr 22, 2021 12:35 pm

FEM Mesh to Mesh with a specific size

Post by pi-a »

Hi,

if a mesh from the result mesh of the solver is created, its argument is only the handle to the object, in the example below "obj". Is there a way to also specify the size of the mesh? For instance the number of faces, or vertices?

Example:

Code: Select all

obj = femmesh.femmesh2mesh.femmesh_2_mesh(femmesh_obj, result_object)
mesh = Mesh.Mesh(obj)
where result_object is 'Fem::FemResultObject' and

Code: Select all

femmesh_obj = result_object.Mesh.FemMesh 
It seems only logical when creating a volume FEM mesh using for example Netgen, one could give "fineness" as a parameter, so when a mesh object is created similar functionality should be available. Or better yet, there should be a way to convert directly the result_mesh to an object of type Part::PartFeature instead of Mesh.
Post Reply