![]() |
ESPResSo 3.2.0-11-g9950804-git
Extensible Simulation Package for Soft Matter Research
|
Implementation of tab.h. More...

Go to the source code of this file.
Functions | |
| int | tabulated_set_params (int part_type_a, int part_type_b, char *filename) |
| Non-Bonded tabulated potentials: Reads tabulated parameters and force and energy tables from a file. | |
| int | tabulated_bonded_set_params (int bond_type, int tab_type, char *filename) |
| Bonded tabulated potentials: Reads tabulated parameters and force and energy tables from a file. | |
| void | check_tab_forcecap (double forcecap) |
| check the tabulated forcecap to see that it is sensible | |
| void check_tab_forcecap | ( | double | force_cap | ) |
check the tabulated forcecap to see that it is sensible
Definition at line 199 of file tab.c.
References DoubleList::e, errexit(), force_cap, get_ia_param(), i, DoubleList::max, n_particle_types, IA_parameters::TAB_maxval, IA_parameters::TAB_npoints, IA_parameters::TAB_startindex, and tabulated_forces.
| int tabulated_bonded_set_params | ( | int | bond_type, |
| int | tab_type, | ||
| char * | filename | ||
| ) |
Bonded tabulated potentials: Reads tabulated parameters and force and energy tables from a file.
ia_params and force/energy tables are then communicated to each node.
| bond_type | bond type for which the interaction is defined |
| tab_type | table type, TAB_BOND_LENGTH, TAB_BOND_ANGLE, TAB_BOND_DIHEDRAL |
| filename | from which file to fetch the data |
Definition at line 112 of file tab.c.
References bonded_ia_params, BONDED_IA_TABULATED, ES_OK, i, make_bond_type_exist(), malloc, mpi_bcast_ia_params(), Bonded_ia_parameters::num, Bonded_ia_parameters::p, PI, ROUND_ERROR_PREC, Bonded_ia_parameters::tab, TAB_BOND_ANGLE, TAB_BOND_DIHEDRAL, TAB_BOND_LENGTH, and Bonded_ia_parameters::type.
Referenced by tclcommand_inter_parse_tabulated_bonded().
| int tabulated_set_params | ( | int | part_type_a, |
| int | part_type_b, | ||
| char * | filename | ||
| ) |
Non-Bonded tabulated potentials: Reads tabulated parameters and force and energy tables from a file.
ia_params and force/energy tables are then communicated to each node
| part_type_a | particle type for which the interaction is defined |
| part_type_b | particle type for which the interaction is defined |
| filename | from which file to fetch the data |
Definition at line 30 of file tab.c.
References DoubleList::e, force_cap, get_ia_param_safe(), i, DoubleList::max, MAXLENGTH_TABFILE_NAME, mpi_bcast_ia_params(), mpi_cap_forces(), realloc_doublelist(), IA_parameters::TAB_filename, IA_parameters::TAB_maxval, IA_parameters::TAB_minval, IA_parameters::TAB_npoints, IA_parameters::TAB_startindex, IA_parameters::TAB_stepsize, tabulated_energies, and tabulated_forces.
Referenced by tclcommand_inter_parse_tab().
1.7.5.1