Closed berndhahnebach closed 5 years ago
Not at the moment; PyGmsh aims at constructing the geometry. I could imagine a module that supports Gmsh Meshes too, but really your code above doesn't look too scary to write in Gmsh's own language. :) (The geometry language is horrible, on the other hand.)
Hi Nico, Thanks for your fast answer!
but really your code above doesn't look too scary to write in Gmsh's own language. :)
Yes but ...
I do not want to write it myself. I'm thinking of writing a workbench for FreeCAD to work with GMSH. If I could have used pygmsh I only needed to write the gui and call pygmsh functions. Workbench scripting woul be a mix of own methods and pygmsh methods. Since pygmsh does not support them I need to write them myself since I would like to have the GMSH workbench in FreeCAD sciptable.
You got my idea hopefully. Cheers Bernd
It'll be a fantastic tool if PyGmsh could integrate Gmsh's meshing module, I‘m working on CFD and need some meshing tool to do the meshworkd for geometry. For me using PythonOCC to do the geometry construction is quite well cause it has already wrapped OpenCASCADE and is relatively more friendly and powerful, so a python wrap of gmsh's meshing module is quite lovely tool :)
Yeah it would be cool, but it does not seams to happen in near future. I started to implement GMSH meshing algorithm in FreeCAD. Works quite well already. Has grouping and different mesh element size for different regions ... This is all scriptable by python with and without GUI.
bernd
BTW There are some guys who have started a CFD workbench for FreeCAD.
@berndhahnebach Thanks for your information which really helps me, I'm a beginner at geometric parameterization and CFD, seems that there are already some work done on this area using FreeCAD, I'll take a look at that, Many thanks !
Three years in, this suggestion hasn't created much interest. Considering how hard it would be to implement, too, I'll close this. If anyone is interested in this in the future, pygmsh is still open for pull requests regarding mesh handling.
Does pygmsh support creation of geometry only or does it support mesh commands of gmsh as well? I'm looking for something like the attached geo file.