fusion-energy / cad_to_dagmc

Convert CAD geometry (STP files) or Cadquery assemblies to DAGMC h5m files
MIT License
17 stars 4 forks source link

Include multi-thread meshing for gmsh to accelerate process #81

Open rherrero-pf opened 2 months ago

rherrero-pf commented 2 months ago

gmsh allows for certain algorithms to parallelize the meshing operation, e.g. of possible implementation

gmsh.option.setNumber("Mesh.MaxNumThreads1D", number_of_threads)
gmsh.option.setNumber("Mesh.MaxNumThreads2D", number_of_threads)
gmsh.option.setNumber("Mesh.MaxNumThreads3D", number_of_threads)
shimwell commented 2 months ago

Thanks for raising an issue. I agree it would be great to speed up the meshing in this way. Are you keen to make a PR for this issue

rherrero-pf commented 2 months ago

Hi Jon, currently working on adding the feature, should send the PR soon after testing

shimwell commented 2 months ago

Many thanks for letting me know.

The github CI runners have 2 threads available so in theory we should see a bit of a speed up on the CI testing.