crys¶
Convert a string or number to a floating point number, if possible. |
|
|
Mimic the basic behavior of |
|
Container class for representing a single crystal structure (unit cell + atoms). |
|
Like |
Base class for |
|
|
Helper for coord_trans(). |
|
Align obj w.r.t. |
|
Angle between vectors x and y in degrees. |
|
Wrapper for _flib.angles(), which accepts a Structure. |
|
Transform ASE Atoms object to Structure. |
|
Call VMD's "measure gofr" command. |
|
From crystallographic constants a, b, c, alpha, beta, gamma to cell. |
|
Same as |
|
Convert cryst_const to PWscf celldm. |
|
From cell to crystallographic constants a, b, c, alpha, beta, gamma. |
|
Same as |
|
Convert PWscf celldm to cryst_const. |
|
Shift all coords in obj such that the atom with index idx is at the center of the cell: [0.5,0.5,0.5] fractional coords. |
|
Wrapper for |
|
Concatenate Structure or Trajectory objects into one Trajectory. |
|
General-purpose n-dimensional coordinate transformation. |
|
Special case version for debugging mostly. |
|
Wrapper for _flib.distsq_frac(). |
|
Cartesian distances along a trajectory. |
|
For a given cell, generate grid size from grid spacing h or vice versa. |
|
Calculate k-point grid for given real-space cell or grid spacing from grid size. |
|
Mean of Trajectory along timeaxis, like numpy.mean(array,axis=0). |
|
Apply minimum image convention to differences of fractional coords. |
|
Linear interpolation between two Structures based on the numbers in alpha. |
|
Indices of the nearest neighbor atoms to atom idx, skipping atoms whose symbols are skip. |
|
Core part of nearest_neighbors(), which accepts pre-calculated distances. |
|
Return Structure with only nearest neighbors. |
|
Apply periodic boundary conditions to fractional coords. |
|
Apply periodic boundary conditions to array of fractional coords. |
Convert a string or number to a floating point number, if possible. |
|
|
Set with attr names which are not None in all objects in lst. |
|
Reciprocal lattice vectors |
|
Calculate rmax as in [Smith], where rmax = the maximal distance up to which minimum image nearest neighbor distances are correct. |
|
Root mean square distance over an MD trajectory. |
|
Radial pair distribution (pair correlation) function for Structures and Trajectories. |
|
Build supercell based on dims. |
|
Supercell for Trajectory. |
|
Build a mask for the creation of a nx x ny x nz supercell (for 3d coordinates). |
|
Smooth Trajectory along timeaxis. |
|
Transform Structure to ASE Atoms object. |
|
Transform Structure to Trajectory with nstep=1. |
|
Convert stress tensor to Voigt notation. |
|
Same as |
|
Calculate velocity from arr (usually coordinates) along time`axis` using timestep dt. |
|
Call call_vmd_measure_gofr(), accept Structure / Trajectory as input. |
|
Convert Voigt stress array to stress tensor. |
|
Same as |
|
Volume of the unit cell from crystallographic constants [1]_. |
|
Same as |
|
Volume of the unit cell from cell vectors. Calculates the triple product::. |
|
Same as |