|
Bsoft
2.1.0
Bernard's software package
|
Header to read and write model dynamics parameters in STAR format. More...
#include "rwmodel.h"Go to the source code of this file.
Classes | |
| struct | Bmodparam |
Macros | |
| #define | DISTMAT_COMPTYPE1 "distance_matrix.component_type1" |
| #define | DISTMAT_COMPTYPE2 "distance_matrix.component_type2" |
| #define | DISTMAT_LLEN "distance_matrix.link_length" |
| #define | DISTMAT_DIST "distance_matrix.distance" |
| #define | DISTMAT_KL "distance_matrix.link_constant" |
| #define | DISTMAT_KD "distance_matrix.distance_constant" |
| #define | DISTMAT_POTTYPE "distance_matrix.potential_type" |
| #define | ANGLEMAT_COMPTYPE1 "angle_matrix.component_type1" |
| #define | ANGLEMAT_COMPTYPE2 "angle_matrix.component_type2" |
| #define | ANGLEMAT_COMPTYPE3 "angle_matrix.component_type3" |
| #define | ANGLEMAT_ANGLE "angle_matrix.angle" |
| #define | ANGLEMAT_KA "angle_matrix.angle_constant" |
Functions | |
| Bmodparam * | model_param_init (int num) |
| Initializes a model parameter structure and allocates memory. More... | |
| int | model_param_kill (Bmodparam *mp) |
| Deallocates memory for a model parameter structure. More... | |
| Bmodparam * | model_param_read (Bstring &filename) |
| Reads a model parameter file. More... | |
| int | model_param_write (Bstring &filename, Bmodparam *mp) |
| Writes a model parameter file. More... | |
| int | model_param_display (Bmodparam *mp) |
| Displays a model parameter in the shell. More... | |
| Bmodparam * | model_param_generate (Bmodel *model) |
| Generates a model parameter file from a model. More... | |
| int | model_param_set_type_indices (Bmodel *model, Bmodparam *mp) |
| Sets the component type indices from the model parameters. More... | |
Header to read and write model dynamics parameters in STAR format.
Definition in file rwmodel_param.h.
| #define ANGLEMAT_ANGLE "angle_matrix.angle" |
Definition at line 24 of file rwmodel_param.h.
| #define ANGLEMAT_COMPTYPE1 "angle_matrix.component_type1" |
Definition at line 21 of file rwmodel_param.h.
| #define ANGLEMAT_COMPTYPE2 "angle_matrix.component_type2" |
Definition at line 22 of file rwmodel_param.h.
| #define ANGLEMAT_COMPTYPE3 "angle_matrix.component_type3" |
Definition at line 23 of file rwmodel_param.h.
| #define ANGLEMAT_KA "angle_matrix.angle_constant" |
Definition at line 25 of file rwmodel_param.h.
| #define DISTMAT_COMPTYPE1 "distance_matrix.component_type1" |
Definition at line 13 of file rwmodel_param.h.
| #define DISTMAT_COMPTYPE2 "distance_matrix.component_type2" |
Definition at line 14 of file rwmodel_param.h.
| #define DISTMAT_DIST "distance_matrix.distance" |
Definition at line 16 of file rwmodel_param.h.
| #define DISTMAT_KD "distance_matrix.distance_constant" |
Definition at line 18 of file rwmodel_param.h.
| #define DISTMAT_KL "distance_matrix.link_constant" |
Definition at line 17 of file rwmodel_param.h.
| #define DISTMAT_LLEN "distance_matrix.link_length" |
Definition at line 15 of file rwmodel_param.h.
| #define DISTMAT_POTTYPE "distance_matrix.potential_type" |
Definition at line 19 of file rwmodel_param.h.
| int model_param_display | ( | Bmodparam * | mp | ) |
Displays a model parameter in the shell.
| *mp | model parameter structure. |
Definition at line 304 of file rwmodel_param.cpp.
Generates a model parameter file from a model.
All the types in a list of models are collated into a string list of types for a new model parameter structure. The distances between component types in the matrix is set to the smallest such distance between components of the relevant types. The distance constant is set to 1. The distance potential type is set to 2 (soft sphere).
| *model | linked list of models. |
Definition at line 375 of file rwmodel_param.cpp.
| Bmodparam* model_param_init | ( | int | num | ) |
Initializes a model parameter structure and allocates memory.
| num | number of component types. |
Definition at line 23 of file rwmodel_param.cpp.
| int model_param_kill | ( | Bmodparam * | mp | ) |
Deallocates memory for a model parameter structure.
| *mp | model parameter structure. |
Definition at line 50 of file rwmodel_param.cpp.
Reads a model parameter file.
The only format supported is a STAR format.
| &filename | file name. |
Definition at line 79 of file rwmodel_param.cpp.
Sets the component type indices from the model parameters.
The position of a type in the distance matrix type list determines the type index within the distance matrix itself. The indices of the component types within each model is then set to the corresponding index for the distance matrix. If the type is not represented in the distance matrix, its index is set to -1.
| *model | linked list of models. |
| *mp | model parameter structure. |
Definition at line 492 of file rwmodel_param.cpp.
Writes a model parameter file.
| &filename | file name. |
| *mp | model parameter structure. |
The only format supported is a STAR format.
Definition at line 233 of file rwmodel_param.cpp.