Crystalpy is a Python program which can generate several kinds of periodic crystal mesh geometries for Gmsh:
- 2D or 3D
- rectangular or triangular (hexagonal) crystals
It can also:
- generate 2D SVG representations of those geometries
- define physical points in the meshes
Several types of inclusions can be defined:
- filled or not with a material
- circular, elliptic or rectangular
- inside or outside the host material
Crystalpy supports unit tests with nosetests.
- Define the geometry of your crystal in mesh.py
- Run python mesh.py
- 1: Can generate periodic 2D meshes, with multiple inclusion types
- 1.1: Add support for SVG output and triangular crystals
- 2: Add support for 3D structures
- 2.1: Add support for elliptic inclusions
- 2.2: Add support for rectangular inclusions
- 2.3: Add support for plots
- 2.4: Add unit tests; fix periodicity conditions
- 2.5: Add support for physical points; fix 2D crystal generation
- 2.6: Add support for physical lines; fix 2D image generation
- 2.7: Add usage explanations; fix crystal position