https://github.com/peter17/crystalpy
Script for generating crystal meshes.
https://github.com/peter17/crystalpy
Last synced: 9 months ago
JSON representation
Script for generating crystal meshes.
- Host: GitHub
- URL: https://github.com/peter17/crystalpy
- Owner: peter17
- Created: 2012-01-14T13:58:33.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-11-07T10:18:50.000Z (over 13 years ago)
- Last Synced: 2025-05-19T21:44:42.988Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 688 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Presentation
============
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.
Usage
=====
* Define the geometry of your crystal in mesh.py
* Run `python mesh.py`
Versions
========
* v. 1: Can generate periodic 2D meshes, with multiple inclusion types
* v. 1.1: Add support for SVG output and triangular crystals
* v. 2: Add support for 3D structures
* v. 2.1: Add support for elliptic inclusions
* v. 2.2: Add support for rectangular inclusions
* v. 2.3: Add support for plots
* v. 2.4: Add unit tests; fix periodicity conditions
* v. 2.5: Add support for physical points; fix 2D crystal generation
* v. 2.6: Add support for physical lines; fix 2D image generation
* v. 2.7: Add usage explanations; fix crystal position