This Is How I Glyph – Uniform Unstructured Domain Refinement


Previously I wrote about a Glyph script that performs automatic grid refinement. That script starts with refining connectors, then domains, and finally blocks. For unstructured grids, domains are initialized using their bounding edges. The simple action of refining a connector, also refines any adjacent domains. Due to the nature of the Delaunay and Advancing Front domain triangulation techniques, a change in boundary points prompts reinitialization of the domain. That means triangles are not subdivided, but rather recomputed based on updated boundary information. So, if you’re looking for a script that performs uniform unstructured domain refinement by subdividing triangles, then this next script is for you!

UniformDomRefinement.glf takes a collection of unstructured domains and refines them by using either edge midpoints or element centroids to create additional cells on the surface. The number of refinement steps can be specified allowing you to create an entire grid family. Once the mesh has been refined, the original mesh can be retained or removed if desired. Lastly, you have the option of placing the family of refined domains in the current working layer, or in successive empty layers to improve the organization of your grid family.

And there you have it—two Glyph scripts that you can use to help perform automatic grid refinement. To download the UniformDomRefinement.glf script directly, you can use this link. If you would like to visit the repository on GitHub, then please visit

Do you have an idea or a Glyph script you’ve written that you would like to share with us? Let us know in the comments below or on Twitter @Pointwise.

Happy scripting!

About Travis Carrigan

A Pointwise engineer helping other engineers solve their meshing problems.
This entry was posted in Applications and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply