Skip to main content

Irreducible Brillouin zone symmetry and interpolation.

Project description

brille for Horace

brille

A C++ library for symmetry operations and linear interpolation within an irreducible part of the first Brillouin zone. Wrapped for use in python using pybind11.

irreducible polyhedron

When provided with the lattice parameters or basis vectors of a real space spacegroup and its Hall symbol or number as determined by, e.g., Spglib, brille can

  • construct the first Brillouin zone
  • determine its high symmetry points
  • find a irreducible polyhedron and verify that its conforms to the pointgroup symmetry of the spacegroup.

Constructing and irreducible Brillouin zone polyhedron for a face centered cubic lattice can be accomplished with, e.g.,

	import brille
	
	direct_lattice = brille.Direct((4.96, 4.96, 4.96), (90, 90, 90), 'Fd-3m')
	brillouin_zone = brille.BrillouinZone(direct_lattice.star)

interpolation

Interpolating eigenvalues and eigenvectors across a degenerate point could lead to misidentified equivalent modes. Since the eigenvectors are distinguishable at all points away from the high-symmetry directions, a hybrid orthogonal/triangulated grid defined in an irreducible part of the Brillouin zone can be used to avoid mode misidentification.

brille can construct

  • an orthogonal grid guaranteed to contain the first Brillouin zone
  • a triangulated set of points filling an irreducible polyhedron or the first Brillouin zone
  • or a hybrid orthogonal/triangulated grid where only the surface cells are triangulated to improve point location time while preserving polyhedral conformity.

Of these options the third is most appropriate for the interpolation of models used in the analysis of inelastic neutron scattering data is the hybrid grid.

Dependencies

TetGen

A modified version of TetGen is used to create refined tetrahedral meshes in the irreducible portion of the first Brillouin zone.

The modified version is included as part of this repository.

Installation

From the root folder of this repository use Python 3 to build and install this library.

python setup.py install

Alternatively, the python module, C++ library, and catch2 based tests can be built directly using cmake.

Project details


Download files

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

Source Distribution

brille-0.4.2.tar.gz (878.6 kB view details)

Uploaded Source

Built Distributions

brille-0.4.2-cp38-cp38-win_amd64.whl (7.8 MB view details)

Uploaded CPython 3.8 Windows x86-64

brille-0.4.2-cp38-cp38-manylinux2010_x86_64.whl (13.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

brille-0.4.2-cp38-cp38-macosx_10_15_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

brille-0.4.2-cp37-cp37m-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.7m Windows x86-64

brille-0.4.2-cp37-cp37m-manylinux2010_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

brille-0.4.2-cp37-cp37m-macosx_10_15_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

brille-0.4.2-cp36-cp36m-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.6m Windows x86-64

brille-0.4.2-cp36-cp36m-manylinux2010_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

brille-0.4.2-cp36-cp36m-macosx_10_15_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6m macOS 10.15+ x86-64

File details

Details for the file brille-0.4.2.tar.gz.

File metadata

  • Download URL: brille-0.4.2.tar.gz
  • Upload date:
  • Size: 878.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for brille-0.4.2.tar.gz
Algorithm Hash digest
SHA256 e312efaa04f997eb5c2915d22cd9dc4af66d4adb449373a7e684ce121b257849
MD5 e43453eed3e575a16f64aa2189c946b2
BLAKE2b-256 758ead11cb2a1e0e17f90efb9bcb3f61bf0c058e45f2fce56e8d7844f7710c05

See more details on using hashes here.

File details

Details for the file brille-0.4.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: brille-0.4.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4

File hashes

Hashes for brille-0.4.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 da989a1e28ee9f64bc8ff07fd44f4a0e5b2492c0a232ee8da36047919b3fe8db
MD5 e7e0a9a21a7cb3ee45268e41d5c28e2a
BLAKE2b-256 f9d25c76b3f94a7483cef414b1ef6faf375ed06a30a427a6222893b45aab3ad9

See more details on using hashes here.

File details

Details for the file brille-0.4.2-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: brille-0.4.2-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 13.1 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for brille-0.4.2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 54950791cc988c63d2953af1886d7fd508f8840b2f826d1882b5b80ab0aa386b
MD5 cd642517c84ae6d266389b46abc588f6
BLAKE2b-256 ebe0cc11dc247ae35ed883a77531f08c46fb4355c27b908aac31e3a8dd5a69b6

See more details on using hashes here.

File details

Details for the file brille-0.4.2-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: brille-0.4.2-cp38-cp38-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.8, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for brille-0.4.2-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f71b15f8cd55016374fb345773b9710aa89153f7fe46da0ba272eb6cb8650396
MD5 c0528dc92885beb56b2c92665c3a7ebf
BLAKE2b-256 e6bd735ab0d04c81e78c52896d08d02af1860996f29dcc050ad20322bd87b70b

See more details on using hashes here.

File details

Details for the file brille-0.4.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: brille-0.4.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.8

File hashes

Hashes for brille-0.4.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 df49f068d5903a5d4d3a22ca77d9f8ee35cc376e71c973e192f4e1607f27917b
MD5 61212f8aca4a7f9339ac2bd7210877b6
BLAKE2b-256 05da73a89977aa2ae9400f0fefc6a5200b263ca6ee805e8866e499ee1ed86191

See more details on using hashes here.

File details

Details for the file brille-0.4.2-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: brille-0.4.2-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 13.5 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for brille-0.4.2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2cec5c7203cad08a79c90f27584c666fb60329bde0d0b9964088d8380a9c80f6
MD5 92460766d7093067c79aac52566ed4f6
BLAKE2b-256 77a827f443ba3e2c884e6d129a06a81f28ab354f69a0c37dbb42d06a35208d8b

See more details on using hashes here.

File details

Details for the file brille-0.4.2-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: brille-0.4.2-cp37-cp37m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.8

File hashes

Hashes for brille-0.4.2-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 376764a2fe473f36f09440c70df28db68bcb69b4df9f122d2d7eb837e5206f92
MD5 8f600c054e2e4ed8718d0f1c132b75b7
BLAKE2b-256 a3164600ea2a4c28779922bb9b7593e67308598e4a75606d5d610b60313e6fe2

See more details on using hashes here.

File details

Details for the file brille-0.4.2-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: brille-0.4.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.8

File hashes

Hashes for brille-0.4.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f05a8426d2306b17c05af08b9e9ccbfd2404516e2fb59a169dcbfae142e64928
MD5 9f560833167921e0266346b282a65e9a
BLAKE2b-256 8014513250dc5f294bc0d7b18b4d6dbffbfc1ef8c8d881651c60ea764e7460a8

See more details on using hashes here.

File details

Details for the file brille-0.4.2-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: brille-0.4.2-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 13.5 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for brille-0.4.2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 244258aa5729a9ba9a6b350ee0317514b0ee61b10afbbe7ad17a43ecee7a3a9c
MD5 c770ce3331ab1dbf9002c99247f3a575
BLAKE2b-256 df13702a91cf436ac8f4febf6da95b46fb657c45da41a551baaf3080abdb45c2

See more details on using hashes here.

File details

Details for the file brille-0.4.2-cp36-cp36m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: brille-0.4.2-cp36-cp36m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.11

File hashes

Hashes for brille-0.4.2-cp36-cp36m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 9354527ec6c74ba6be6f606c3654f966602a5ab430ed9da3aff23e8ce50bd5f0
MD5 66a9f49b5c75cef4ba48b060119f056a
BLAKE2b-256 7ba469db07a833224810a7cefd5be851a0dc6abcffffe0cc076447d0f06a3104

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