Giter VIP home page Giter VIP logo

spacegroups's Introduction

spacegroups

Load spacegroup and magnetic spacegroup information

Usage:

Terminal:

$ cd /location/of/file
$ ipython -m spacegroups 194 P63/mmc 61.433
>> will display spacegroup properties 

Script:

>> from spacegroups import load_spacegroup
>> sg = load_spacegroup(61)
>> sg.general_positions
['x,y,z', '-x+1/2,-y,z+1/2', '-x,y+1/2,-z+1/2', 'x+1/2,-y+1/2,-z', '-x,-y,-z', 'x+1/2,y,-z+1/2', 'x,-y+1/2,z+1/2', '-x+1/2,y+1/2,z']

>> msg = load_spacegroup(61.433)
>> msg.positions_general
['x,  y,  z, +1', 'x+1/2,  -y+1/2,  -z, +1', '-x,  y+1/2,  -z+1/2, +1', '-x+1/2,  -y,  z+1/2, +1', '-x,  -y,  -z, +1', '-x+1/2,  y+1/2,  z, +1', 'x,  -y+1/2,  z+1/2, +1', 'x+1/2,  y,  -z+1/2, +1']

Symmetrise Positions

Create a list of symmetric positions using space group symmetries:

>> from spacegroups import load_spacegroup
>> sg = load_spacegroup(61)
>> sg.calc_symmetric_positions(0.5, 0, 0)
[[0.5, 0, 0], [1.0, 0.5, 0], [-0.5, 0.5, 0.5], [0.0, 0, 0.5], [-0.5, 0, 0], [0.0, 0.5, 0], [0.5, 0.5, 0.5], [1.0, 0, 0.5]]

Symmetrise Magnetic Moments (axial vectors)

Create a list of symmetric moment vectors by applying magnetic spacegroup symmetry, including time operations.

>> from spacegroups import load_spacegroup
>> msg = load_spacegroup(61.488)
>> msg.calc_symmetric_moments(0.5, 0, 0)
[[0.5, 0, 0], [-0.5, 0, 0], [-0.5, 0, 0], [0.5, 0, 0], [-0.5, 0, 0], [0.5, 0, 0], [0.5, 0, 0], [-0.5, 0, 0]]

Spacegroup Information

SpaceGroup properties are extracted from Bilbao Crystallographic Server

Aroyo, et al., Zeitschrift fuer Kristallographie (2006), 221, 1, 15-27.

Magnetic SpaceGroup properties are extracted from Bilbao Crystallographic Server

S. V. Gallego, et al., J. Appl. Cryst. (2012), 45(6), 1236-1247.

spacegroups's People

Contributors

danporter avatar

Stargazers

BPY avatar

Watchers

James Cloos avatar  avatar

Forkers

wangvei

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.