Package schrodinger :: Package application :: Package matsci :: Package nano :: Module util
[hide private]
[frames] | no frames]

Module util

Functions [hide private]
set of strs
get_atomic_element_symbols()
Return a set of symbols of atomic elements in the periodic table.
numpy.array
get_rotated_vector(invector, angle, length=None, axis=None)
Return a rotated vector of a given length.
 
rotate_double_bonds(structure)
For a six-membered ring rotate the three double bonds, i.e.
invindex, int
get_inversion_index(index)
Return the atom index obtained by applying an inversion operation to the given index in a given hexagon.
Variables [hide private]
  __doc__ = ...
  _version = '$Revision 0.0 $'
Function Details [hide private]

get_atomic_element_symbols()

 

Return a set of symbols of atomic elements in the periodic table.

Returns: set of strs
symbols, set of atomic elements

get_rotated_vector(invector, angle, length=None, axis=None)

 

Return a rotated vector of a given length.

Parameters:
  • invector (numpy.array) - input vector
  • angle (float) - rotation angle in radians
  • length (float) - length of output vector
  • axis (numpy.array) - rotation axis
Returns: numpy.array
outvector, output vector

rotate_double_bonds(structure)

 

For a six-membered ring rotate the three double bonds, i.e. the first double bond will be moved from the atom pair (1, 2) to the atom pair (2, 3).

Parameters:
  • structure (schrodinger.structure.Structure) - structure

get_inversion_index(index)

 

Return the atom index obtained by applying an inversion operation to the given index in a given hexagon.

Parameters:
  • index (int) - atom index of an atom in a honeycomb cell
Returns: invindex, int
invindex, atom index after inversion

Variables Details [hide private]

__doc__

Value:
"""
Utility functions for nanostructures.

Copyright Schrodinger, LLC.  All rights reserved."""