Coder Social home page Coder Social logo

gosam's Introduction

gosam is a bunch of Python scripts:

  • bicryst.py -- to generate atomistic model of grain boundary (bicrystal) with a coincidence site lattice (CSL) boundary in the PBC box,
  • monocryst.py -- to generate monocrystal in PBC box (atomistic model),
  • graingen.py -- create crystalline grains of given shape, with vacancies, thermal vibrations, etc.
  • mdfile.py -- convert between several file formats (AtomEye cfg, VASP POSCAR, LAMMPS, DL_POLY, XMOL XYZ).
  • csl.py -- to list coincident site lattice (CSL) grain boundaries in cubic crystals

Prerequisites: Python 2 and numpy. graingen.py additionally requires the qhull program.

Installation: download, unpack if you've downloaded zip file, and use from command line.

Usage: See documentation in the wiki and feel free to e-mail me with questions. Or open Github issue. Also, most of the programs print basic usage instructions when invoked without parameters.

License: GPLv2+ (I'll consider changing it to a more liberal license if there is a good reason)

Citing: you may cite Marcin Wojdyr et al 2010 Modelling Simul. Mater. Sci. Eng. 18 075009 (preprint), especially if you use bicryst.py.

See also: debyer - a bunch of tools coded in C and C++

contact: [email protected]

gosam's People

Contributors

wojdyr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gosam's Issues

Grain boundary of Graphene

Dear gosam developer,

I would like to generate grain boundary of graphene? Would you please guide me 
how to make from a xyz file containing coordinates of graphene.

Many thanks and looking forward to your attention.

Regards,

Rajib 

Original issue reported on code.google.com by [email protected] on 7 Jun 2012 at 7:52

A bug in "find_orthorhombic_pbc(M)"

Problems happened when I tried this command:

./bicrystal.py 100 m001 3,8 3 12 24 remove:2.3 lattice:cu a.cfg

The following code needs to be modified a little bit (line 6):

1 # optionally swap x2 with y2
2    id = identity(3)
3    if (pbc[1] == id[0]).all() or (pbc[0] == -id[1]).all():
4        pbc[0], pbc[1] = pbc[1], -pbc[0]
5    elif (pbc[1] == -id[0]).all() or (pbc[0] == id[1]).all():
6        pbc[0], pbc[1] = -pbc[1], pbc[0]
7    return pbc

Correct way:

1 # optionally swap x2 with y2
2    id = identity(3)
3    if (pbc[1] == id[0]).all() or (pbc[0] == -id[1]).all():
4        pbc[0], pbc[1] = pbc[1], -pbc[0]
5    elif (pbc[1] == -id[0]).all() or (pbc[0] == id[1]).all():
6        pbc[1], pbc[0] = pbc[0], -pbc[1]
7    return pbc


Original issue reported on code.google.com by [email protected] on 5 Jun 2012 at 6:01

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.