Package schrodinger :: Package trajectory :: Module desmondsimulation :: Class _DesmondFrame
[hide private]
[frames] | no frames]

Class _DesmondFrame

_DesmondFrame contains simulation data at a particular time.

Each raw frame may contain position and velocity of pseudo atoms. Data for pseudo atoms can appear behind component ct or solvent ct. We don't want to expose them in most cases.

Instance Methods [hide private]
 
__init__(self, rawframe, natom=None, frame_id=None, cst=None)
 
getId(self)
 
getStructure(self)
Get a Structure associated with this frame.
 
getMinimalDifference(self, pos1, pos2)
Calculate the smallest difference between two sets of points in the frame, paying attention to periodic boundary conditions.
 
getCellDiff(self, pos1, pos2)
 
__copy__(self)
 
duplicateFrame(self)
 
__len__(self)
Return the number of atoms in the frame.
Properties [hide private]
numpy array with shape (self._natom, 3) position
Position of the real atoms in the frame.
numpy array with shape (self._natom,3) pseudo_position
Position of pseudo particles in the frame.
numpy array with shape (self._natom, 3) velocity
Velocity of the real atoms in the frame.
numpy array with shape (self._nparticles, 3) particle_position
Position for all particles in the frame, including pseudo atoms.
numpy array with shape (self._nparticles, 3) particle_velocity
Velocity for all particles in the frame, including pseudo atoms.
  atom_total
Number of real atoms in this frame.
  particle_total
Number of particles in this frame, including atoms and pseudo atoms.
a numpy array with shape (9,). box
The simulation box for the frame.
a BoundaryCondition instance boundary_condition
The periodic boundary condition for this frame.
  time
Chemical time (ps) for this frame.
  charge
Numpy array of atom charges with shape (self._nparticles, 1).
  mass
Numpy array of atom masses with shape (self._nparticles, 1).
  total_mass
Total mass of all atoms in the frame.
  set_pseudo_position
Update positions on the pseudo particles Only works when all pseudo particles are in a single CT
Method Details [hide private]

getMinimalDifference(self, pos1, pos2)

 

Calculate the smallest difference between two sets of points in the frame, paying attention to periodic boundary conditions. Return an array of vectors.

Parameters:
  • pos2 (numpy array with shape (N, 3))
  • pos1 (numpy array with shape (N, 3))
Returns:
numpy array with shape (N, 3).

getCellDiff(self, pos1, pos2)

 
Parameters:
  • pos2 - reference position

Property Details [hide private]

position

Position of the real atoms in the frame.

Get Method:
unreachable.position(self) - Position of the real atoms in the frame.
Type:
numpy array with shape (self._natom, 3)

pseudo_position

Position of pseudo particles in the frame.

Get Method:
unreachable.pseudo_position(self) - Position of pseudo particles in the frame.
Type:
numpy array with shape (self._natom,3)

velocity

Velocity of the real atoms in the frame.

Get Method:
unreachable.velocity(self) - Velocity of the real atoms in the frame.
Type:
numpy array with shape (self._natom, 3)

particle_position

Position for all particles in the frame, including pseudo atoms.

Get Method:
unreachable.particle_position(self) - Position for all particles in the frame, including pseudo atoms.
Type:
numpy array with shape (self._nparticles, 3)

particle_velocity

Velocity for all particles in the frame, including pseudo atoms.

Get Method:
unreachable.particle_velocity(self) - Velocity for all particles in the frame, including pseudo atoms.
Type:
numpy array with shape (self._nparticles, 3)

atom_total

Number of real atoms in this frame.

Get Method:
unreachable.atom_total(self) - Number of real atoms in this frame.

particle_total

Number of particles in this frame, including atoms and pseudo atoms.

Get Method:
unreachable.particle_total(self) - Number of particles in this frame, including atoms and pseudo atoms.

box

The simulation box for the frame.

Get Method:
unreachable.box(self) - The simulation box for the frame.
Type:
a numpy array with shape (9,).

boundary_condition

The periodic boundary condition for this frame.

Get Method:
unreachable.boundary_condition(self) - The periodic boundary condition for this frame.
Type:
a BoundaryCondition instance

time

Chemical time (ps) for this frame.

Get Method:
unreachable.time(self) - Chemical time (ps) for this frame.

charge

Numpy array of atom charges with shape (self._nparticles, 1).

Get Method:
unreachable.charge(self) - Numpy array of atom charges with shape (self._nparticles, 1).

mass

Numpy array of atom masses with shape (self._nparticles, 1).

Get Method:
unreachable.mass(self) - Numpy array of atom masses with shape (self._nparticles, 1).

total_mass

Total mass of all atoms in the frame.

Get Method:
unreachable.total_mass(self) - Total mass of all atoms in the frame.

set_pseudo_position

Update positions on the pseudo particles Only works when all pseudo particles are in a single CT

Get Method:
unreachable.set_pseudo_position(self) - Update positions on the pseudo particles Only works when all pseudo particles are in a single CT