sknano.core.atoms.MDAtoms¶
-
class
sknano.core.atoms.MDAtoms(atoms=None, kNN=16, NNrc=2.0, **kwargs)[source][source]¶ An
Atomssub-class for molecular dynamics trajectory analysis.Sub-class of
StructureAtomsclass, and a container class for lists ofMDAtominstances.Parameters: atoms : {None, sequence,
MDAtoms}, optionalAttributes
CMAlias for center_of_mass.CN_countsAlias for coordination_number_counts.MTotal mass of Atoms.NNrcNearest neighbor radius cutoff. NatomsNumber of atoms in Atoms.NtypesNumber of unique types.POAV1List of POAVAtomPOAV1POAV1attribute.POAV2List of POAVAtomPOAV2POAV2attribute.POAVRList of POAVAtomPOAVRPOAVRattribute.atom_idsAlias for IDAtoms.ids.atom_treeKDTreeofatomtypesAlias for types.boundsBounds of Atoms.center_of_massCenter-of-Mass coordinates of Atoms.centroidCentroid of Atoms.chargesReturn array of ChargedAtomcharges.comAlias for center_of_mass.coordination_countsAlias for coordination_number_counts.coordination_number_countsCoordination number counts. coordination_numbersndarrayofCNAtom.CNs.coordsAlias for Atoms.r.distancesNeighbor atoms distances. drndarrayofAtom.drdisplacement VectorselementsndarrayofAtom.elements inAtoms.fAlias for forces.first_neighborsfmtstrforcesndarrayofForceAtomforces.fxndarrayofAtoms \(f_x\) components.fyndarrayofAtoms \(f_y\) components.fzndarrayofAtoms \(f_z\) components.iAlias for images.idsReturn array of IDAtom.ids.imagesndarrayofImageAtomimages.inertia_tensorInertia tensor. ixndarrayofAtoms \(i_x\) values.iyndarrayofAtoms \(i_y\) values.izndarrayofAtoms \(i_z\) values.kNNNumber of nearest neighbors to return when querying the kd-tree. kinetic_energiesndarrayofEnergyAtom.ke.latticemassesndarrayofAtom.masss inAtoms.mol_idsAlias for IDAtoms.mols.molecule_idsAlias for IDAtoms.mols.molsReturn array of IDAtom.mols.nearest_neighborsReturn array of nearest-neighbor atoms for each KDTAtom. neighbor_distancesneighborsReturn array of neighbor atoms. pbcpotential_energiesndarrayofEnergyAtom.pe.qReturn the total net charge of ChargedAtoms.rndarrayofAtom.rposition VectorsrsndarrayofAtom.rposition Vectorssecond_neighborssymbolsndarrayofAtom.symbols inAtoms.third_neighborstotal_energiesndarrayofEnergyAtom.etotal.typemapdictofTypeAtom.types.typesndarrayofTypeAtom.types.vAlias for velocities.velocitiesndarrayofVelocityAtomvelocities.volumeVolume of region containing atoms. vxndarrayofAtoms \(v_x\) components.vyndarrayofAtoms \(v_y\) components.vzndarrayofAtoms \(v_z\) components.xndarrayofAtoms \(x\) coordinates.xsndarrayofAtoms \(x\) coordinates.yndarrayofAtoms \(y\) coordinates.ysndarrayofAtoms \(y\) coordinates.zndarrayofAtoms \(z\) coordinates.zsndarrayofAtoms \(z\) coordinates.Methods
add_atomtype(atom)Alias for add_type.add_atomtypes([atoms])Alias for add_types.add_type(atom)Add atom type to typemap.add_types([atoms])Add atom type for each atom in atoms to TypeAtom.typemapdictionary.append(atom)assign_unique_ids([starting_id])Assign unique IDAtom.idto eachIDAtominIDAtoms.assign_unique_types([from_attr])Assign unique TypeAtom.types to eachTypeAtominTypeAtomsfrom an existing unique atom attribute.center_CM([axis])Alias for center_center_of_mass.center_center_of_mass([axis])Center atoms on center-of-mass coordinates. center_centroid()Center centroidon origin.center_com([axis])Alias for center_center_of_mass.clear()clip_bounds(region[, center_before_clipping])Remove atoms outside the given region. compute_POAVs()Compute POAV1,POAV2,POAVR.compute_rdf()copy()count(item)extend(other)filter(condition[, invert])Filter Atomsby condition.filter_ids(atom_ids[, invert])Filter AtomsbyIDAtoms.idsinatom_ids.filtered(condition[, invert])Return new list of Atomsfiltered by condition.filtered_ids(atom_ids[, invert])Return new Atomsfiltered byIDAtoms.idsinatom_ids.get_POAV_attr(POAV_class, attr)Return list of POAVAtomPOAV1POAV2orPOAVRattribute.get_atom(id)Get IDAtomwithXatom.id== id.get_atoms([asarray])Return list of Atoms.get_atomtypes([asdict])Alias for get_types.get_coords([asdict])Return atom coords. get_neighbors(n)get_types([asdict])Return list of TypeAtomTypeAtom.types.getatomattr(attr)Get ndarrayof atom attributes attr.index(item, *args)insert(i, item)mapatomattr([from_attr, to_attr, attrmap])Set/update atom attribute from another atom attribute with dict. neighbor_counts(r)pop([i])query_atom_tree([k, eps, p, rc])Query atom tree for nearest neighbors distances and indices. query_ball_point(pts, r[, p, eps])Find all Atomswithin distancerof point(s) pts.remove(item)reverse()rezero([epsilon])Set values with absolute value less than epsilon to zero. rezero_coords([epsilon])Alias for Atoms.rezero_xyz.rezero_xyz([epsilon])Rezero position vector components with absolute value less than epsilon. rotate(**kwargs)Rotate Atomvectors.set_pbc([xperiodic, yperiodic, zperiodic])sort([key, reverse])todict()translate(t[, fix_anchor_points])Translate Atomvectors byVectort.unset_pbc()update_attrs()Update KDTAtoms attributes.update_bonds()Update KDTAtom.bonds.update_neighbors([cutoffs])wrap_coords([pbc])