Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peter17/crystalpy
Script for generating crystal meshes.
https://github.com/peter17/crystalpy
Last synced: about 2 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 (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-11-07T10:18:50.000Z (about 12 years ago)
- Last Synced: 2023-03-11T22:55:50.235Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 688 KB
- Stars: 1
- Watchers: 2
- 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) crystalsIt can also:
* generate 2D SVG representations of those geometries
* define physical points in the meshesSeveral types of inclusions can be defined:
* filled or not with a material
* circular, elliptic or rectangular
* inside or outside the host materialCrystalpy 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