# Grid generation "Info:" message control

9 messages
Open this post in threaded view
|

## Grid generation "Info:" message control

 The grid generation process includes numerous "Info:" messages such as: Info: 0.60 < quality < 0.70 : 23845 elements Info: 0.70 < quality < 0.80 : 50164 elements Info: 0.80 < quality < 0.90 : 82174 elements Is there a way to filter/control/regulate which ones are output? Thanks, -Randal
Open this post in threaded view
|

## Re: Grid generation "Info:" message control

 Administrator FEATool just reads and relays the Gmsh output log file as is. You could probably write a "pass-through" script file that in turn calls the gmsh binary passing along all arguments and adding some of your own such as verbosity flags.
Open this post in threaded view
|

## Re: Grid generation "Info:" message control

 This post was updated on . Hmmm... I see. Well, what led me to ask was the result of the execution of gridgen example 6... >> help gridgen gridgen Grid generation for geometry objects. ... 6) Complex geometry with several holes and subdomains (using Gridgen2D). ...which produced the following output. >> gridgen_ex6 Initializing Grid Generation... Meshing Boundaries... Pre-processing grid... Meshing Subdomain 1... Meshing Subdomain 2... Meshing Subdomain 3... Post-processing grid... Joining subdomains 1 and 3... Joining subdomains 1 and 2... Grid Generation Done. Grid Statistics: number of grid points: 5323 number of grid cells: 10172 grid cell min area: 1.4332e-10 grid cell mean area: 1.3305e-09 grid cell max area: 3.0255e-08 grid cell min quality: 0.1190 grid cell mean quality: 0.9696 number of boundaries: 54 number of subdomains: 3 time for grid generation: 12.8990 >> But perhaps this is because ex6 uses a 2D object...? From gmsh 4.8.0 documentation I did find this: General.Verbosity Level of information printed on the terminal and the message console (0: silent except for fatal errors, 1: +errors, 2: +warnings, 3: +direct, 4: +information, 5: +status, 99: +debug) Default value: 5 Saved in: General.OptionsFileName and included in the command-line options: -v int Set verbosity level (General.Verbosity) ..from which get that a verbosity level without "Info:" can be specified in the gmsh call by, for example: gmsh ... -v 3 If I understand this correctly, is there a way to add gmsh command-line arguments from the FEATool GUI ... perhaps Grid Generation Settings dialog, "Optional Parameters"? -Randal
Open this post in threaded view
|

## Re: Grid generation "Info:" message control

 Administrator This post was updated on . This particular 2D example uses the "gridgen2d" mesh generator and not gmsh, hence the different output. https://github.com/precise-simulation/featool-multiphysics/blob/master/gridgen.m#L117
Open this post in threaded view
|

## Re: Grid generation "Info:" message control

 Administrator This post was updated on . In reply to this post by randress After some more research, you can pass through a cell array of gmsh options with with the 'mshopt' argument using the "Optional Parameters" edit field in the "Grid Generation Settings" dialog box (and also the "gridgen" function on the command line):  {'mshopt', {{'General', 'Verbosity', '0'}}} %   Additional Gmsh options can be provided with the cell array MSHOPT. %   For example MSHOPT could be given as: % %   {{'Mesh', 'CharacteristicLengthMax', '1'}, {'Mesh', 'AnisoMax', '10'}}
Open this post in threaded view
|

## Re: Grid generation "Info:" message control

 In reply to this post by Precise Simulation Precise Simulation wrote This particular 2D example uses the "gridgen2d" mesh generator and not gmsh, hence the different output. https://github.com/precise-simulation/featool-multiphysics/blob/master/gridgen.m#L117 Opps :-( ... my bad... Not paying attention... Thanks for pointing it out. Kind regards, -Randal
Open this post in threaded view
|

## Re: Grid generation "Info:" message control

 In reply to this post by Precise Simulation Precise Simulation wrote After some more research, you can pass through a cell array of gmsh options with with the 'mshopt' argument using the "Optional Parameters" edit field in the "Grid Generation Settings" dialog box (and also the "gridgen" function on the command line):  {'mshopt', {{'General', 'Verbosity', '0'}}}  Great! Well designed UI ... allows custom args to external programs.  Thanks for formatting the 'cell' object for me. {'mshopt', {{'General', 'Verbosity', '3'}}} works great .... and I think that's what think I'll use. Generally, I like verbose logging ...  but the Info level was too much for me.  I am sure that if I understood what it all meant, I could glean info that would help me craft a better grid, but I don't.... so "ignorance is bliss". I have added this "Grid-->Settings-->Optional Parameters" to my default NewFEAToolModel.fea file. Kind regards, Randal
 Administrator So, digging a little more today what do you know, there was actually a specific verbosity flag for the gmsh wrapper so you can just simply use  'verbosity' 3 The 'meshopt' argument can be used as a pass though to gmsh to fine tune and set specific options not otherwise available to set.
 Precise Simulation wrote  'verbosity' 3  Well, well... maybe even if I "think it" :-) -Randal