![]() |
Bsoft 2.1.4
Bernard's software package
|
Header for molecular dynamics. More...
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_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_bond_stats (Bmolgroup *molgroup) |
Shows the number of bonds and the valency per atom. 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... | |
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... | |
Header for molecular dynamics.
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.
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.
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. |
int md_calculate_radial_deviation | ( | Bmolgroup * | molgroup | ) |
Calculates the radial deviations from the center of the box.
*molgroup | molecule group. |
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.
Finds the bond type.
*atom1 | first atom. |
*atom2 | second atom. |
*bondtype | bond type list. |
The bond type is found in the bond type list.
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.
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.
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.
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.
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.
int md_show_bonds | ( | Bmolgroup * | molgroup | ) |
Shows the bonds and bond lengths.
*molgroup | molecule group. |
Uses the bond list defined for the molecule group.