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

$ python  pip install `pyqcstrc`.

Supported versions

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

Requirements

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

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       = {}
}

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')

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.1a7-cp39-cp39-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.9 Windows x86-64

pyqcstrc-0.0.1a7-cp39-cp39-manylinux1_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.9

pyqcstrc-0.0.1a7-cp39-cp39-macosx_10_14_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pyqcstrc-0.0.1a7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.9 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.1a7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 97889927e4b436c6c43acb2a8993fe564533d1deae1ec1278c4e36b26218413b
MD5 20e93d11faecda64a63aa0ee08d7d72b
BLAKE2b-256 507a162fe41d0d0e2a1889d5a6360d2e2a651143f5c4deb56fa83512a88b065c

See more details on using hashes here.

File details

Details for the file pyqcstrc-0.0.1a7-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyqcstrc-0.0.1a7-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.3 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.1a7-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c2ad3ca387bec5249200438282f62987fc7cde711dde3bf885a8cd7d0e1c00cb
MD5 fa9697fad7852c3938ac8694dc241fae
BLAKE2b-256 9e70fd2dea13a6fa1cebfccb194f27dfd0ea2081efb1a3d7939fba124e99de9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqcstrc-0.0.1a7-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 2.5 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.1a7-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 8afefa3c0707f21c5cf6ac88e5f89e80d40c2ab6f0af1ca94058cf5ddb0b360d
MD5 eb09aa93bf2a4ee5efbb4c7ddb2db367
BLAKE2b-256 2a4b7573885d1f051a9ac284df182e8b68e5720b451cee5a3c2dc17a503aff61

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