Gmsh .geo file inspection

Hi,

Is there a chance to find or see the .geo file sent to gmsh for the meshing process?
Or maybe kind of save as .geo for the actual meshing set up?

No. There is no .geo file. PrePoMax can communicate with Gmsh directly through API wrapper. But the problem with this method is that any exception in Gmsh that terminates it, terminates PrePoMax. So PrePoMax communicates with the wrapper using files. But these files are not .geo instructions, only data that needs to be exchanged.

1 Like

i miss some setting also, a hex-dominant setup in PrePoMax but i’m not sure if it can be accused trough API library. Setup for 2D meshing algorithm (R Tree) and recombine (3D all).

an example below shown almost done, only missing at recombination. 2D meshing algorithm can be replaced by Delaunay for quads.

The online documentation Gmsh 4.13.1 states:

`Mesh.Algorithm`
2D mesh algorithm (1: MeshAdapt, 2: Automatic, 3: Initial mesh only, 5: Delaunay, 6: Frontal-Delaunay, 7: BAMG, 8: Frontal-Delaunay for Quads, 9: Packing of Parallelograms, 11: Quasi-structured Quad)
Default value: `6`
Saved in: `General.OptionsFileName`

`Mesh.Algorithm3D`
3D mesh algorithm (1: Delaunay, 3: Initial mesh only, 4: Frontal, 7: MMG3D, 9: R-tree, 10: HXT)
Default value: `1`
Saved in: `General.OptionsFileName`

Mesh.RecombinationAlgorithm
Mesh recombination algorithm (0: simple, 1: blossom, 2: simple full-quad, 3: blossom full-quad)
Default value: 1
Saved in: General.OptionsFileName

I am only using the algorithms in the documentation.

thanks for hint. 2D meshing algorithm is already there, both Delaunay for quads (8) and R Tree/Packing of parallelogram (9). Only another recombine setting is not yet available, hopefully it will be possible by API and GUI in PrePoMax. Default value is ā€˜0’ thus make it inactive, required to activate by setting the value to be ā€˜1’ in generating hex-dominant mesh.

`Mesh.Recombine3DAll`

Apply recombination3D algorithm to all volumes, ignoring per-volume spec (experimental)
Default value: `0`
Saved in: `General.OptionsFileName`
1 Like

I am not sure this will work, but can I try to add this option as another 3D algorithm?

There is another option regarding the meshing speed wich I’m not sure which one is using now.
Default value: 1 so it seems it would only be using 1 thread no matter the system default or value defined at variable OMP NUM THREADS



General.NumThreads
Maximum number of threads used by Gmsh when compiled with OpenMP support
(0: use system default, i.e. OMP NUM THREADS)
Default value: 1
Saved in: General.OptionsFileName

these setting work with geo files, probably in API whenever defined also.

another setting to generates hex-dominant mesh may be required instead of default values.


`Mesh.Smoothing`

Number of smoothing steps applied to the final mesh
Default value: `1`
Saved in: `General.OptionsFileName`

Does mesh smooting help for all meshes? 2D, 3D and all element types?

it seems to be work on 2D and 3D mesh of all element types, user can set any value to get desired final results. However, a hex-dominant usually set these value to zero for disabling.