Skip to content

peter17/crystalpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

    1. 1: Can generate periodic 2D meshes, with multiple inclusion types
    1. 1.1: Add support for SVG output and triangular crystals
    1. 2: Add support for 3D structures
    1. 2.1: Add support for elliptic inclusions
    1. 2.2: Add support for rectangular inclusions
    1. 2.3: Add support for plots
    1. 2.4: Add unit tests; fix periodicity conditions
    1. 2.5: Add support for physical points; fix 2D crystal generation
    1. 2.6: Add support for physical lines; fix 2D image generation
    1. 2.7: Add usage explanations; fix crystal position

About

Script for generating crystal meshes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages