dcdfort
Modern Fortran library for analyzing DCD trajectories
|
Module that contains Trajectory type. More...
Data Types | |
type | trajectory |
Trajectory class. More... | |
Functions/Subroutines | |
subroutine | trajectory_open (this, filename, ndxfile) |
Trajectory class method which opens DCD file and optionally index file. More... | |
pure integer(kind=int32) function | trajectory_get_natoms (this, group) |
Trajectory class method which gets the number of atoms in the system or an index group. More... | |
integer(kind=int32) function | trajectory_skip_next (this, F) |
Trajectory class method which skips a specified number of frames. More... | |
integer(kind=int32) function | trajectory_read_next (this, F, ndxgrp, every) |
Trajectory class method which reads a specified number of frames into memory after using the open() method. More... | |
pure real(kind=real32) function, dimension(3) | trajectory_get_xyz (this, frame, atom, group) |
Trajectory class method which returns the coordinates of a particle. More... | |
subroutine | trajectory_read (this, dcdfile, ndxfile, ndxgrp, every, skip, last) |
Trajectory class method which opens, reads, and closes a trajectory file. More... | |
pure real(kind=real64) function, dimension(6) | trajectory_get_box (this, frame) |
Trajectory class method which returns the box from a simulation frame. More... | |
subroutine | trajectory_close (this) |
Trajectory class method which closes a DCD file which was opened with open() More... | |
pure real(kind=real64) function | trajectory_vol (this, frame) |
Trajectory class method which returns the volume of the box. More... | |
Module that contains Trajectory type.
|
private |
|
private |
Trajectory class method which returns the box from a simulation frame.
[in,out] | this | Trajectory class |
[in] | frame | Which frame to return the box dimensions |
|
private |
Trajectory class method which gets the number of atoms in the system or an index group.
[in,out] | this | the Trajectory object |
[in] | group | name of index group |
|
private |
Trajectory class method which returns the coordinates of a particle.
Gets the coordinates of a particle from the read in trajectory. Returns a real array with 3 elements (x, y, and z). An optional index group can be specified; if so, the atomid is in relationship to the group.
[in,out] | this | Trajectory class |
[in] | frame | |
[in] | atom | atomid of particle to get |
[in] | group | optional index group |
subroutine dcdfort_trajectory::trajectory_open | ( | class(trajectory), intent(inout) | this, |
character(len=*), intent(in) | filename, | ||
character(len=*), intent(in), optional | ndxfile | ||
) |
|
private |
Trajectory class method which opens, reads, and closes a trajectory file.
[in,out] | this | Trajectory class |
[in] | dcdfile | Name of DCD trajectory file |
[in] | ndxfile | Name of optional index file |
[in] | ndxgrp | Name of optional group. If specified, only that group will be read into memory; otherwise, all particles read into memory. |
[in] | every | Read in every this many frames; default is 1 |
[in] | skip | Skip this many frames at the beginning of the trajectory file; default is 0 |
[in] | last | Last frame to read in |
|
private |
Trajectory class method which reads a specified number of frames into memory after using the open() method.
[in,out] | this | Trajectory class |
[in] | F | frame number to read up to; if not specified, 1 frame is read |
[in] | ndxgrp | read only this index group into memory |
[in] | every | Read in every this many frames; default is to read in every frame |
|
private |
Trajectory class method which skips a specified number of frames.
[in,out] | this | Trajectory class |
[in] | F | number of frames to skip; if not specified, 1 frame is skipped |
|
private |
Trajectory class method which returns the volume of the box.
[in,out] | this | Trajectory class |
[in] | frame | snapshot to get box volume of |