|
dcdfort
Modern Fortran library for analyzing DCD trajectories
|
Module that contains some useful utilities. More...
Functions/Subroutines | |
| real(8) function, dimension(3) | pbc (a, box) |
| Corrects for the periodic boundary condition. More... | |
| real(8) function, dimension(3) | cross (a, b) |
| Performs cross product between two vectors. More... | |
| real(8) function | distance2 (a, b, box) |
| Calculates the distance squared between two points. More... | |
| real(8) function | distance (a, b, box) |
| Calculates the distance between two points. More... | |
| real(8) function, dimension(3) | bond_vector (a, b, box) |
| Calculates the bond vector between two points. More... | |
| real(8) function | magnitude (a) |
| Calculates the magnitude of a vector. More... | |
| real(8) function | bond_angle (a, b, c, box) |
| Calculates the bond angle between two vectors. More... | |
| real(8) function | dihedral_angle (i, j, k, l, box) |
| Calculates the dihedral angle between two planes formed by four atoms. More... | |
Module that contains some useful utilities.
| real(8) function dcdfort_utils::bond_angle | ( | real(8), dimension(3), intent(in) | a, |
| real(8), dimension(3), intent(in) | b, | ||
| real(8), dimension(3), intent(in) | c, | ||
| real(8), dimension(6), intent(in) | box | ||
| ) |
Calculates the bond angle between two vectors.
Calculates the angle between the vector formed by a-b and b-c.
| [in] | a | first point |
| [in] | b | middle point |
| [in] | c | third point |
| [in] | box | box, if pbc to be accounted for |
| real(8) function, dimension(3) dcdfort_utils::bond_vector | ( | real(8), dimension(3), intent(in) | a, |
| real(8), dimension(3), intent(in) | b, | ||
| real(8), dimension(6), intent(in) | box | ||
| ) |
Calculates the bond vector between two points.
| [in] | a | first point |
| [in] | b | second point |
| [in] | box | box, if pbc to be accounted for |
| real(8) function, dimension(3) dcdfort_utils::cross | ( | real(8), dimension(3), intent(in) | a, |
| real(8), dimension(3), intent(in) | b | ||
| ) |
Performs cross product between two vectors.
| [in] | a | first vector |
| [in] | b | second vector |
| real(8) function dcdfort_utils::dihedral_angle | ( | real(8), dimension(3), intent(in) | i, |
| real(8), dimension(3), intent(in) | j, | ||
| real(8), dimension(3), intent(in) | k, | ||
| real(8), dimension(3), intent(in) | l, | ||
| real(8), dimension(6), intent(in) | box | ||
| ) |
Calculates the dihedral angle between two planes formed by four atoms.
Calculates the dihedral angle between the vectors formed by i-j, j-k, k-l
| [in] | i | first point |
| [in] | j | middle point |
| [in] | k | third point |
| [in] | l | fourth point |
| [in] | box | box, if pbc to be accounted for |
| real(8) function dcdfort_utils::distance | ( | real(8), dimension(3), intent(in) | a, |
| real(8), dimension(3), intent(in) | b, | ||
| real(8), dimension(6), intent(in), optional | box | ||
| ) |
Calculates the distance between two points.
| [in] | a | first point |
| [in] | b | second point |
| [in] | box | box, if pbc to be accounted for |
| real(8) function dcdfort_utils::distance2 | ( | real(8), dimension(3), intent(in) | a, |
| real(8), dimension(3), intent(in) | b, | ||
| real(8), dimension(6), intent(in), optional | box | ||
| ) |
Calculates the distance squared between two points.
| [in] | a | first point |
| [in] | b | second point |
| [in] | box | box, if pbc to be accounted for |
| real(8) function dcdfort_utils::magnitude | ( | real(8), dimension(3), intent(in) | a | ) |
| real(8) function, dimension(3) dcdfort_utils::pbc | ( | real(8), dimension(3), intent(in) | a, |
| real(8), dimension(6), intent(in) | box | ||
| ) |
Corrects for the periodic boundary condition.
Moves particle (or vector) the distance of half the box if it is more than half the distance of the box
| [in] | a | original coordinates |
| [in] | box | simulation box |
1.8.13