bravais-0.1.4


توضیحات

A simple package for representing Bravais lattices. Primarily useful to check the passed parameters represent a valid Bravais lattice.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل bravais-0.1.4
نام bravais
نسخه کتابخانه 0.1.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Adam J. Plowman, Maria S. Yankova
ایمیل نویسنده -
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/bravais/
مجوز -
[![PyPI version](https://badge.fury.io/py/bravais.svg)](https://badge.fury.io/py/bravais) # bravais A simple package for representing [Bravais lattices](https://en.wikipedia.org/wiki/Bravais_lattice). Primarily useful to check the passed parameters represent a valid Bravais lattice. If a lattice parameter is not specified, it will be assigned randomly (such that all lattice parameters remain compatible with the specified lattice system). ## Installation `pip install bravais` ## Examples Import the `BravaisLattice` class: ```python from bravais import BravaisLattice ``` Quickly generate a monoclinic Bravais lattice without specifying any lattice parameters: ```python mon_lat = BravaisLattice('monoclinic') print(mon_lat) ``` ``` P-centred monoclinic lattice (a=5.9417, b=4.7245, c=5.7335, alpha=90.00, beta=90.00, gamma=51.01) ``` Generate a body-centred tetragonal Bravais lattice with particular lattice parameters: ```python tet_lat = BravaisLattice('tetragonal', 'I', a=3) print(tet_lat) ``` ``` I-centred tetragonal lattice (a=3.0000, b=3.0000, c=3.5708, alpha=90.00, beta=90.00, gamma=90.00) ``` Note that the following single-digit codes are used to specify centring-types: ``` P -> primitive B -> base I -> body F -> face R -> rhombohedral ```


نیازمندی

مقدار نام
- numpy
- pyyaml


نحوه نصب


نصب پکیج whl bravais-0.1.4:

    pip install bravais-0.1.4.whl


نصب پکیج tar.gz bravais-0.1.4:

    pip install bravais-0.1.4.tar.gz