Git Product home page Git Product logo

gbpy's Introduction

GBpy is a python package for finding the geometrical properties of a Bicrystal. It includes all the necessary tools for constructing a simulation box for grain boundary simulation.

https://raw.githubusercontent.com/adehgha/GBpy/master/GBpy/docs/images/pic.png

Latest PyPI version Number of PyPI downloads

Functions:

  • GBpy.find_csl_dsc, collection of functions for computing the CSL and the DSC lattices of a general bicrystal (general lattices), if the transformation T is given.
  • GBpy.generate_symm_ops, a function for generating various point group symmetry operations.
  • GBpy.bp_basis, collection of functions for calculating the basis vectors of a two-dimensional lattice of an interface.
  • GBpy.quaternion, collection of functions for quaternion operations.
  • GBpy.misorient_fz, function for finding the unique disorientations in fundamental zone of various crystal point groups.
  • GBpy.integer_manipulations, collection of many useful ineteger manipulation functions.

and many other useful tools. Please refer to the documentation and tutorials for detailed description and utility of functions.

Classes:

  • lattice: Includes all the crystallographic data required for an element used by the code.
  • quaternion: Quaternion construction and operations.

How to Use This Package:

  1. To install the stable version of GBpy:

    $ pip install GBpy

    To install the development version of GBpy Clone the repository:

    $ git clone https://github.com/adehgha/GBpy.git

    and run the setup script.

    $ python setup.py install
  2. Import the package:

    >>> import GBpy
  3. Call the function by using:

    >>> GBpy.<name_of_the_function>
    • for example to find the 2D basis vectors of a plane with Miller indices of (h,k,l):
    >>> GBpy.bp_basis.bp_basis([h,k,l])
  4. You can also use the tools provided in this package individually by importing the functions separately. For example use :from GBpy import <name_of_the_function> as <a_name>.

Consult the documentation for further details.

Prerequisites:

  1. install numpy from here.
  2. install scipy from here.
  3. install setuptools from here.

Cite GBpy:

"An Efficient Algorithm for Computing the Primitive Bases of a General Lattice Plane", A. Banadaki, S. Patala, Journal of Applied Crystallography, v. 48, 2015, doi:10.1107/S1600576715004446."

Credits:

GBpy is written by:

Copyright (c) 2015, Arash Dehghan Banadaki and Srikanth Patala.

gbpy's People

Contributors

arashdb avatar adehgha avatar ai-nagi-tst avatar anagial avatar tobyfrancis avatar

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.