Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meshing should be non blocking or at least has a progress bar/log output #5914

Open
FreeCAD-Bug-Importer opened this issue Feb 7, 2022 · 1 comment
Labels
Feature FR for improvements or new features UI/UX WB FEM Related to the FEM Workbench

Comments

@FreeCAD-Bug-Importer
Copy link
Collaborator

FreeCAD-Bug-Importer commented Feb 7, 2022

Issue imported from https://tracker.freecad.org/view.php?id=3933

  • Reporter: @joha2
  • Date submitted: 4/13/2019
  • FreeCAD version:
  • Category: Feature
  • Status: assigned
  • Tags: FEM

Original report text

Referring to the forum thread https://forum.freecadweb.org/viewtopic.php?f=18&t=35480

joha2:

The meshing with gmsh or netgen or other external meshers is blocking. Is it possible to perform these subprocesses in a non-blocking manner or at least - if this is not possible - with a process indicator and a cancel button?

bernd:

very good point. Same on import of large ifc files. For ccx or gmsh it is simple. Since they are external programms, just kill them. This is not smart but works quite well. For netgen some break button would be cool.

joha2:

Yes, killing gmsh would be possible. But when I perform the meshing of a complicated part, I never know what gmsh actually does (some logging would be nice) or whether it is frozen. Further meshing of a part is independent from other things you can do in FreeCAD. Therefore it would be nice to execute gmsh independently from the rest of FreeCAD. Some cancel button is possible, but some intermediate feedback is maybe not so trivial.

bernd:

In the regard of gmsh you are totally right. I have had a look into this myself some time ago. Feel free to make a bug report and asign it to me. Something in the regard of process logging for gmsh.

Additional information

Not applicable

Steps to reproduce

  • Select Part workbench
  • Create part (e.g. Cube)
  • Select FEM workbench
  • Mesh part (GMSH) with MaximumLength 0.001
  • Wait a looooong time

Other bug information

  • Priority: normal
  • Severity: feature
  • Category: Feature
  • Updated: 3/21/2021

Discussion from Mantis ticket

Comment by @joha2 2019-04-18 21:19

I just compiled the gmsh binary with cmake -DENABLE_OPENMP=1 -DENABLE_MPI=1. This improves the speed of the process by using gmsh -nt $(nproc) [I don't know the windows equivalen]. For large meshes, it might be useful to save the mesh to a .med file instead of .unv. What do you think bernd?


Comment by @luzpaz 2021-03-21 11:18

CC @berndhahnebach

@FreeCAD-Bug-Importer FreeCAD-Bug-Importer added Feature FR for improvements or new features WB FEM Related to the FEM Workbench labels Feb 7, 2022
@luzpaz luzpaz added the UI/UX label May 9, 2022
@luzpaz
Copy link
Contributor

luzpaz commented May 9, 2022

Related #5566

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature FR for improvements or new features UI/UX WB FEM Related to the FEM Workbench
Projects
Status: Feature Request Priority
Development

No branches or pull requests

3 participants