kip-hart / MicroStructPy

Microstructure modeling, mesh generation, analysis, and visualization.
https://docs.microstructpy.org
MIT License
74 stars 19 forks source link

add support for gmsh #30

Closed kip-hart closed 3 years ago

kip-hart commented 3 years ago

PR Summary

Purpose

This PR adds support for using gmsh to generate meshes. The package currently uses MeshPy for mesh generation - the PR adds to this functionality.

Approach

Optional "mesher" flags have been added to the from_polymesh method and the input file. The default behavior is to continue using MeshPy. To use gmsh instead, add <mesher> gmsh </mesher> to the input file or mesher='gmsh' to the TriMesh.from_polymesh call.

PR Checklist

Closing Issues

Closes #16