![]() |
Bsoft 2.1.4
Bernard's software package
|
Library routines to read and write model dynamics parameters in STAR format. More...
#include "rwmodel_param.h"
#include "rwmodel_star.h"
#include "star.h"
#include "json.h"
#include "model_tags.h"
#include "mol_tags.h"
#include "linked_list.h"
#include "string_util.h"
#include "utilities.h"
Functions | |
Bmodparam | model_param_generate (Bmodel *model) |
Generates a model parameter file from a model. More... | |
int | model_param_generate (Bmodparam &md, Bmodel *model) |
int | model_param_set_type_indices (Bmodel *model, Bmodparam &md) |
Sets the component type indices from the model parameters. More... | |
Bstar | read_parameter_file (Bstring &filename) |
map< string, Bcomptype > | read_atom_properties (Bstar &star) |
map< string, Bcomptype > | read_atom_properties (Bstring &filename) |
map< string, Bmaterial > | read_material_star (Bstring &filename) |
map< string, Bmaterial > | read_material_json (Bstring &filename) |
map< string, Bmaterial > | read_material_properties (Bstring &filename) |
int | write_material_star (Bstring &filename, map< string, Bmaterial > material) |
int | write_material_json (Bstring &filename, map< string, Bmaterial > material) |
int | write_material_properties (Bstring &filename, map< string, Bmaterial > material) |
Bmodparam | read_dynamics_parameters (Bstring &filename) |
Reads a model parameter file. More... | |
int | update_dynamics_parameters (Bmodparam &md, Bstring &filename) |
Updates model parameters from a parameter file. More... | |
int | write_dynamics_parameters (Bstring &filename, Bmodparam &md) |
Writes a model parameter file. More... | |
Variables | |
int | verbose |
Library routines to read and write model dynamics parameters in STAR format.
Generates a model parameter file from a model.
*model | linked list of models. |
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).
Sets the component type indices from the model parameters.
*model | linked list of models. |
&md | model parameter structure. |
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.
Reads a model parameter file.
&filename | file name. |
The only format supported is a STAR format.
Updates model parameters from a parameter file.
&md | model parameters. |
&filename | file name. |
The only format supported is a STAR format.
Writes a model parameter file.
&filename | file name. |
&md | model parameter structure. |
The only format supported is a STAR format.
|
extern |