Skip to main content

PyQCstrc provides Python library for Quasi-Crystal structure.

Project description

PyQCstrc - Python library for Quasi-Crystal structure

Main websites:

Installation using pip

pip install pyqcstrc

Supported versions

  • Python: 3.7
  • Operating systems: Linux, macOS, and Windows

Requirements

  • Cython>=0.29.21
  • numpy>=1.20.1
  • scipy>=1.6.0

Python example

# import libraries
import numpy as np
import pyqcstrc.icosah.occupation_domain as od
import pyqcstrc.icosah.two_occupation_domains as ods

# Vertices of tetrahedron, v0,v1,v2,v3, which
# defines the asymmetric part.
v0 = np.array([[ 0, 0, 1],[ 0, 0, 1],[ 0, 0, 1],
               [ 0, 0, 1],[ 0, 0, 1],[ 0, 0, 1]]) 
v1 = np.array([[ 1, 0, 2],[-1, 0, 2],[-1, 0, 2],
               [-1, 0, 2],[-1, 0, 2],[-1, 0, 2]]) 
v2 = np.array([[ 1, 0, 2],[-1, 0, 2],[-1, 0, 2],
               [ 1, 0, 2],[-1, 0, 2],[-1, 0, 2]]) 
v3 = np.array([[ 1, 0, 2],[-1, 0, 2],[-1, 0, 2],
               [ 0, 0, 2],[-1, 0, 2],[ 0, 0, 2]]) 
seed = np.vstack([v0,v1,v2,v3]).reshape(4,6,3)
od0 = od.as_it_is(seed)

# Creating the basic occupation domain (OD) from its asymmetric unit 
# by applying the symmetry operations of m35 around the origin:
# generate symmetric OD, symmetric centre is v0.
od1 = od.symmetric(od, v0)

# Creating the basic OD at (1,0,0,0,0,0):
# 6D coordinates of position_1
pos1 = np.array([[ 1, 0, 1],[ 0, 0, 1],[ 0, 0, 1],
                 [ 0, 0, 1],[ 0, 0, 1],[ 0, 0, 1]]) 
od2 = od.shift(od1,pos1)  # move to position_1

# Intersection operation on od1 and od2:
od3 = ods.intersection(od1, od2)

# Export od3 in .vesta and .xyz files:
od.write(od3, basename='od3', format='vesta')
od.write(od3, basename='od3', format='xyz')

Citation:

If you use this tool in a program or publication, please acknowledge its author:

@article{pyqcstrc,
  title     = {PyQCstrc.icosah: A computing package for structure model of icosahedral quasicrystals},
  author    = {Yamada, Tsunetomo},
  journal   = {},
  volume    = {},
  number    = {},
  pages     = {},
  year      = {},
  publisher = {},
  version   = {},
  doi       = {},
  url       = {}
}

License

This work is licensed under an MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pyqcstrc-0.0.1a8-cp39-cp39-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.9 Windows x86-64

pyqcstrc-0.0.1a8-cp39-cp39-manylinux2014_x86_64.whl (19.0 MB view details)

Uploaded CPython 3.9

pyqcstrc-0.0.1a8-cp39-cp39-macosx_10_14_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

pyqcstrc-0.0.1a8-cp38-cp38-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

pyqcstrc-0.0.1a8-cp38-cp38-manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.8

pyqcstrc-0.0.1a8-cp38-cp38-macosx_10_14_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

File details

Details for the file pyqcstrc-0.0.1a8-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyqcstrc-0.0.1a8-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pyqcstrc-0.0.1a8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4aa48cc60485ec7272de3daa353ccfa97bda2147f42e0c255c3804e1f40fd64e
MD5 94afc54833b84ce2d5bee73b478d2bb0
BLAKE2b-256 1a379525a94361b072b72549bd62244d7f0027dddff1d3198715d198b2f11abc

See more details on using hashes here.

File details

Details for the file pyqcstrc-0.0.1a8-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyqcstrc-0.0.1a8-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 19.0 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pyqcstrc-0.0.1a8-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c860adb5f0b059d2f4ee017214afa50b28d274b0dd775353965e1af6fc25e918
MD5 aa1249e8f6607e49213d34c64dfe580c
BLAKE2b-256 bbdb8181ac74497cd13afb7cc9c50d3c34abc832b04c87f7b761abddc6216fff

See more details on using hashes here.

File details

Details for the file pyqcstrc-0.0.1a8-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyqcstrc-0.0.1a8-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pyqcstrc-0.0.1a8-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 a009a7c1107ad59ab63fb3d17749913a8f5b13948c9f48f15f7ccc8beb03ddb7
MD5 2a41a8859ed4d881fb2f913dad031f19
BLAKE2b-256 16a761be2f45b4545cf30a1f5b99f5754e47fc660289dc17e5895e00836a5500

See more details on using hashes here.

File details

Details for the file pyqcstrc-0.0.1a8-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyqcstrc-0.0.1a8-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pyqcstrc-0.0.1a8-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c2c28938f6f5c1f0e92149fa6a3499b0bafddd5c9e1681a9e83eeafee4c4a885
MD5 51f9ba7429e46af2352fec965092bedb
BLAKE2b-256 245b29b9c6b93560e8d8c70f484fcfee0a5cbdb58a8e3e2fec6a7bdcfd50304d

See more details on using hashes here.

File details

Details for the file pyqcstrc-0.0.1a8-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyqcstrc-0.0.1a8-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 12.2 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pyqcstrc-0.0.1a8-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ceb5be88ad93457c9064fd30687c9835786a9ad6ffe3b6ee59affc546941bc23
MD5 47d13840c459d7b1f3c7c544e0debd7d
BLAKE2b-256 48f527bb48ab246a9cdf74fc21287465a49c0a4dda92cb4929018791284bf08b

See more details on using hashes here.

File details

Details for the file pyqcstrc-0.0.1a8-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pyqcstrc-0.0.1a8-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pyqcstrc-0.0.1a8-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 dc7a8942067576d624039c32db258fb52546a6a13e92c8447def3edaee785890
MD5 da73a7b29ff192997d016b7dd785c1c8
BLAKE2b-256 537e479c238f830f8b08220280acc8c13000c1ca975f10f739630de2dec042d4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page