|
Bsoft
2.1.0
Bernard's software package
|
Functions for molecular dynamics. More...
#include "mol_bonds.h"#include "rwmd.h"#include "rwmolecule.h"#include "Matrix.h"#include "linked_list.h"#include "utilities.h"Go to the source code of this file.
Functions | |
| Bbond * | md_generate_bond_list (Bmolgroup *molgroup, Bmd *md) |
| Generates a distance-based bond list. More... | |
| Bbond * | md_generate_molecular_bond_list (Bmolgroup *molgroup, Bmd *md) |
| Generates an intramolecular distance-based bond list. More... | |
| Bbond * | md_bondlist_get_top (Bbond *bondlist, int number) |
| Bbond * | md_generate_bond_list_with_valence (Bmolgroup *molgroup, Bmd *md, int valence) |
| Generates a bond list based on a single valence and the shortest current bond lengths. More... | |
| double | md_bond_list_set_parameters (Bbond *bondlist, Bbondtype *bondtype) |
| Assigns covalent bond lengths to bonds. More... | |
| int | md_show_bonds (Bmolgroup *molgroup) |
| Shows the bonds and bond lengths. More... | |
| int | md_show_angles (Bmolgroup *molgroup) |
| Shows the angles and angular sizes. More... | |
| int | md_show_bond_stats (Bmolgroup *molgroup) |
| Shows the number of bonds and the valency per atom. More... | |
| Bangle * | md_generate_angle_list (Bmolgroup *molgroup, Bmd *md) |
| Generates an angle list. More... | |
| int | md_angle_list_set_parameters (Bangle *anglelist, Bangletype *angletype) |
| Assigns angles from angle types. More... | |
| double | md_find_bond_length (Batom *atom1, Batom *atom2, Bbondtype *bondtype) |
| Finds the reference covalent bond length. More... | |
| Bbondtype * | md_find_bond_type (Batom *atom1, Batom *atom2, Bbondtype *bondtype) |
| Finds the bond type. More... | |
| int | md_show_bond_types (Bmolgroup *molgroup, Bbondtype *bondtype) |
| Shows the bond type composition. More... | |
| double | md_angle (Batom *atom1, Batom *atom2, Batom *atom3) |
| Calculates the angle between three atoms. More... | |
| Bangletype * | md_find_angle_type (Batom *atom1, Batom *atom2, Batom *atom3, Bangletype *angletype) |
| Finds the reference angle type between three atoms. More... | |
| double | md_find_angle (Batom *atom1, Batom *atom2, Batom *atom3, Bangletype *angletype) |
| Finds the reference angle between three atoms. More... | |
| double | md_calculate_deviations (Bmolgroup *molgroup, int wrap) |
| Calculates deviations from the reference bond lengths and angles. More... | |
| int | md_calculate_radial_deviation (Bmolgroup *molgroup) |
| Calculates the radial deviations from the center of the box. More... | |
Variables | |
| int | verbose |
Functions for molecular dynamics.
Definition in file mol_bonds.cpp.
Calculates the angle between three atoms.
| *atom1 | first atom. |
| *atom2 | second atom. |
| *atom3 | third atom. |
The angle associated with the second atom and between the bonds linking the first and third atoms is calculated.
Definition at line 637 of file mol_bonds.cpp.
| int md_angle_list_set_parameters | ( | Bangle * | anglelist, |
| Bangletype * | angletype | ||
| ) |
Assigns angles from angle types.
| *anglelist | list of angles. |
| *angletype | list of angle types. |
The angles are taken from an angle type list.
Definition at line 485 of file mol_bonds.cpp.
Assigns covalent bond lengths to bonds.
| *bondlist | list of bonds. |
| *bondtype | list of bond types. |
The bond lengths are taken from a bond type list.
Definition at line 299 of file mol_bonds.cpp.
Definition at line 162 of file mol_bonds.cpp.
| double md_calculate_deviations | ( | Bmolgroup * | molgroup, |
| int | wrap | ||
| ) |
Calculates deviations from the reference bond lengths and angles.
| *molgroup | molecule group. |
| wrap | flag to wrap around periodic boundaries. |
Definition at line 742 of file mol_bonds.cpp.
| int md_calculate_radial_deviation | ( | Bmolgroup * | molgroup | ) |
Calculates the radial deviations from the center of the box.
| *molgroup | molecule group. |
Definition at line 809 of file mol_bonds.cpp.
| double md_find_angle | ( | Batom * | atom1, |
| Batom * | atom2, | ||
| Batom * | atom3, | ||
| Bangletype * | angletype | ||
| ) |
Finds the reference angle between three atoms.
| *atom1 | first atom. |
| *atom2 | second atom. |
| *atom3 | third atom. |
| *angletype | angle type list. |
The angle type is found in the angle type list, and the angle is set from the angle type structure.
Definition at line 719 of file mol_bonds.cpp.
| Bangletype* md_find_angle_type | ( | Batom * | atom1, |
| Batom * | atom2, | ||
| Batom * | atom3, | ||
| Bangletype * | angletype | ||
| ) |
Finds the reference angle type between three atoms.
The angle type is found in the angle type list, and the angle type is returned.
| *atom1 | first atom. |
| *atom2 | second atom. |
| *atom3 | third atom. |
| *angletype | angle type list. |
Definition at line 663 of file mol_bonds.cpp.
Finds the reference covalent bond length.
| *atom1 | first atom. |
| *atom2 | second atom. |
| *bondtype | bond type list. |
The bond type is found in the bond type list, and the bond length is set from the bond type structure.
Definition at line 510 of file mol_bonds.cpp.
Finds the bond type.
| *atom1 | first atom. |
| *atom2 | second atom. |
| *bondtype | bond type list. |
The bond type is found in the bond type list.
Definition at line 542 of file mol_bonds.cpp.
Generates an angle list.
| *molgroup | molecule group structure. |
| *md | global molecular dynamics structure (can be NULL). |
This function uses the bond list for the molecule group to find bonds to the same atom and set an angle structure with the corresponding angle. The angle is defined in the molecular dynamics structure.
Definition at line 415 of file mol_bonds.cpp.
Generates a distance-based bond list.
| *molgroup | molecule group structure. |
| *md | global molecular dynamics structure. |
This function assumes very little and defines bonds purely on distance. This means that the bond distances must already have been defined well. The bond length is defined in the molecular dynamics structure. If the molecule group already has a bond list, no new bonds are generated.
Definition at line 30 of file mol_bonds.cpp.
Generates a bond list based on a single valence and the shortest current bond lengths.
| *molgroup | molecule group structure. |
| *md | global molecular dynamics structure. |
| valence | atom valence. |
This function attempts to assign bonds based on atomic valence by finding the top number of shortests bonds. The current bond length is encoded in the bond strength variable, k, in the bond structure.
Definition at line 208 of file mol_bonds.cpp.
Generates an intramolecular distance-based bond list.
| *molgroup | molecule group structure. |
| *md | global molecular dynamics structure. |
This function defines bonds on distance and within molecules. This means that the bond distances must already have been defined well. The bond length is defined in the molecular dynamics structure. If the molecule group already has a bond list, no new bonds are generated.
Definition at line 105 of file mol_bonds.cpp.
| int md_show_angles | ( | Bmolgroup * | molgroup | ) |
Shows the angles and angular sizes.
| *molgroup | molecule group. |
Uses the angle list defined for the molecule group.
Definition at line 350 of file mol_bonds.cpp.
| int md_show_bond_stats | ( | Bmolgroup * | molgroup | ) |
Shows the number of bonds and the valency per atom.
| *molgroup | molecule group. |
Uses the bond list defined for the molecule group.
Definition at line 371 of file mol_bonds.cpp.
Shows the bond type composition.
| *molgroup | molecule group. |
| *bondtype | bond type list. |
For each bond, the bond type is found in the bond type list. The number variable for each bond type is used for counting.
Definition at line 580 of file mol_bonds.cpp.
| int md_show_bonds | ( | Bmolgroup * | molgroup | ) |
Shows the bonds and bond lengths.
| *molgroup | molecule group. |
Uses the bond list defined for the molecule group.
Definition at line 329 of file mol_bonds.cpp.
|
extern |