Unit-square-boundary-layer.geo Unfortunately, with boundary layers Gmsh exports some cells with an additional number of tags which the current gmsh_import function does not expect. If you "Export Geometry" in "GEO/Gmsh Format" you can then manually add "Boundary Layer" field commands to the corresponding edges as in the attached unit square example below (the Gmsh executable binary will usually be downloaded to the "%USERPROFILE%/MATLAB/.featool" folder) Gmsh can also be used to generate structured boundary layers for CFD simulations. (Also set the "Subdomain Grid Size" to 0.5, and decrease the number of grid smoothing steps for this to work for your geometry.)
Gmsh boundary layer example generator#
You can maybe try the "Triangle" mesh generator (select in the "Grid Generation Algorithm" drop-down box) and manually specify a "Boundary Grid Size" for each boundary to your liking (string of mesh sizes per boundary), which maybe is easiest create on the command line for your model as it has quite a number of boundaries, for example: The default "Gridgen2D" mesh generator was designed for external aerodynamics applications and can therefore in its current state only make boundary layers for hole regions (or all boundaries if no holes are present).