 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
36 cout <<
"Atom types:" << endl;
38 for ( mol = molgroup->
mol; mol; mol = mol->
next ) {
39 for ( res = mol->
res; res; res = res->
next ) {
40 for ( atom = res->
atom; atom; atom = atom->
next ) {
41 if ( elements ) strcpy(
string, atom->
el);
42 else strcpy(
string, atom->
type);
44 for ( at = atlist; at && strcmp(at->
name,
string); at = at->
next ) ;
48 at->
el[0] =
string[0];
57 cout <<
"Type\tNumber" << endl;
58 for ( at = atlist; at; at = at->
next )
91 cout <<
"Bond types:" << endl;
93 for ( bond = molgroup->
bond; bond; bond = bond->
next ) {
111 cout <<
"Type1\tType2\tNumber\tLength\tSTD" << endl;
115 if ( bt->
std > 0 ) bt->
std = sqrt(bt->
std);
122 cout << endl <<
"Angle types:" << endl;
124 for ( angle = molgroup->
angle; angle; angle = angle->
next ) {
140 at->
std += angle->
a*angle->
a;
144 for ( at = md->
angle; at; at = at->
next ) {
147 if ( at->
std > 0 ) at->
std = sqrt(at->
std);
152 cout <<
"Type1\tType2\tType3\tNumber\tAngle\tSTD" << endl;
153 for ( at = md->
angle; at; at = at->
next )
char * add_item(char **list, unsigned long size)
Adds an item to a linked list.
Header to read and write molecular dynamics parameters in STAR format.
double distance(const Vector3 &v)
Bangletype * md_find_angle_type(Batom *atom1, Batom *atom2, Batom *atom3, Bangletype *angletype)
Finds the reference angle type between three atoms.
Header for molecular dynamics.
Header file for reading reflection files.
Bmd * md_init()
Initializes a molecular dynamics structure.
Header file for general utilities.
Bmd * md_calculate_parameters(Bmolgroup *molgroup, int elements, int show_bond, int show_angle)
Calculates atomic parameters from molecule groups.
Bangle * md_generate_angle_list(Bmolgroup *molgroup, Bmd *md)
Generates an angle list.
ostream & tab(ostream &out)
Generalized matrix class.
Header file for generalized linked list functions.
Batomtype * molgroup_get_atom_types(Bmolgroup *molgroup, int elements)
Obtains atomic types from molecule groups.
Batomtype * atom_type_add(Batomtype **atype, const char *aname)
Adds an atom type structure to a linked list.
Bbondtype * md_find_bond_type(Batom *atom1, Batom *atom2, Bbondtype *bondtype)
Finds the bond type.
Bbond * mol_bond_list_generate(Bmolgroup *molgroup, double bondlength, int wrap)
Generates an intramolecular distance-based bond list.