24 #ifndef PARAMS_H_INCLUDED 25 #define PARAMS_H_INCLUDED 34 #include <boost/algorithm/string.hpp> 35 #include <boost/filesystem.hpp> 36 #include <boost/lexical_cast.hpp> 44 #define WALL_TYPE_PBC 0 45 #define WALL_TYPE_HARD 1 46 #define WALL_TYPE_STOP 2 57 namespace b_fs = boost::filesystem;
99 int restrict_motion[3];
156 int validate(
int sim_mode);
163 int parse_param_assignment(
char *str);
168 int extract_params(vector<string> script_vector);
171 int assign(
string lvalue,
string rvalue);
174 int get_max_num_states();
195 int checkFileName(
string oFile);
197 string RemoveFileExtension(
const string& FileName);
long long num_steps
Number of time steps to run simulation for.
Definition: SimulationParams.h:78
int force_pbc
Whether or not to apply pbc to surface insteractions.
Definition: SimulationParams.h:120
string FFEA_script_filename
Definition: SimulationParams.h:138
string kinetics_out_fname
Definition: SimulationParams.h:141
int calc_ssint
Whether or not to simulate surface-surface interactions between surfaces.
Definition: SimulationParams.h:110
string ssint_in_fname
Definition: SimulationParams.h:144
int wall_y_1
Definition: SimulationParams.h:124
int conformation_array_size
Definition: SimulationParams.h:86
int icheckpoint_fname_set
Definition: SimulationParams.h:186
scalar dist_to_m
Definition: SimulationParams.h:70
int measurement_out_fname_set
Definition: SimulationParams.h:185
geoscalar steric_dr
used to calculate the numerical derivative.
Definition: SimulationParams.h:136
scalar epsilon2
The tolerance threshold for CG solver (squared)
Definition: SimulationParams.h:92
string trajectory_beads_fname
Output optional file.
Definition: SimulationParams.h:150
int calc_preComp
Whether or not use preComputed potentials and forces.
Definition: SimulationParams.h:117
int trajectory_out_fname_set
Definition: SimulationParams.h:184
int bsite_in_fname_set
Definition: SimulationParams.h:189
string icheckpoint_fname
Input Checkpoint file name.
Definition: SimulationParams.h:146
string springs_fname
Input file containing the springs details.
Definition: SimulationParams.h:149
scalar stokes_visc
Definition: SimulationParams.h:131
int num_interfaces
Number of rod-blob or rod-rod interfaces.
Definition: SimulationParams.h:82
int restart
Whether or not to restart the simulation from the last available time step.
Definition: SimulationParams.h:108
int calc_springs
Whether or not to include the springs interactions defined in the springs block.
Definition: SimulationParams.h:118
string ctforces_fname
Input file containing constant forces onto a list of nodes.
Definition: SimulationParams.h:148
int sticky_wall_xz
Definition: SimulationParams.h:129
scalar es_h
Number of active dimensions after restricted_motion is applied.
Definition: SimulationParams.h:101
int wall_y_2
Definition: SimulationParams.h:125
Definition: SimulationParams.h:66
int move_into_box
If box is set, do we move the world to it's center at the start of a simulation? Default is yes! ...
Definition: SimulationParams.h:98
int state_array_size
Definition: SimulationParams.h:85
int inputData
1 means read .force and .pot files, while 2 means read .pot and calculate the forces ...
Definition: SimulationParams.h:69
double geoscalar
Definition: mat_vec_types.h:37
scalar dielec_ext
Exterior dielectric constant.
Definition: SimulationParams.h:106
int check
Every how many steps should the program 'check' the system i.e calculate energies, print snapshots etc.
Definition: SimulationParams.h:79
int max_iterations_cg
Max number of iterations when using conjugate gradient solver.
Definition: SimulationParams.h:91
scalar dt
time step
Definition: SimulationParams.h:77
int es_N_x
X dimension of the 3D lookup grid (in number of cells)
Definition: SimulationParams.h:95
int calc_es
Whether or not to simulate electrostatic interactions between proteins.
Definition: SimulationParams.h:113
string detailed_meas_out_fname
Definition: SimulationParams.h:143
int wall_z_1
Definition: SimulationParams.h:126
scalar steric_factor
Proportionality factor to the Steric repulsion.
Definition: SimulationParams.h:134
int wall_z_2
Definition: SimulationParams.h:127
int es_update
Every how many steps should the electrostatic potential be recalculated.
Definition: SimulationParams.h:94
int wall_x_1
Definition: SimulationParams.h:122
int kinetics_out_fname_set
Definition: SimulationParams.h:177
scalar kappa
Inverse Debye Screening length.
Definition: SimulationParams.h:103
int num_rods
Number of rods in the system.
Definition: SimulationParams.h:81
int calc_stokes
Whether or not to include local action of the external fluid.
Definition: SimulationParams.h:115
string bsite_in_fname
Definition: SimulationParams.h:145
vector< string > types
types of beads present
Definition: SimulationParams.h:67
int ocheckpoint_fname_set
Definition: SimulationParams.h:187
scalar kT
boltzmann's const times temperature
Definition: SimulationParams.h:89
int wall_x_2
Definition: SimulationParams.h:123
int calc_steric
Calculate steric interactions?
Definition: SimulationParams.h:133
int rng_seed
Seed for random number generator.
Definition: SimulationParams.h:87
int calc_ctforces
Whether or not to include constant forces onto nodes defined in the ctforces block.
Definition: SimulationParams.h:119
Definition: SimulationParams.h:75
scalar ssint_cutoff
Cutoff distance for the surface-surface interactions.
Definition: SimulationParams.h:135
string ocheckpoint_fname
Output Checkpoint file name.
Definition: SimulationParams.h:147
scalar E_to_J
Definition: SimulationParams.h:71
int ssint_in_fname_set
Definition: SimulationParams.h:188
int inc_self_ssint
Whether or not to include surface-surface interactions derived from faces in the same blob...
Definition: SimulationParams.h:111
string folder
folder containing the tables. It can be either absolute or relative to the folder containing the ffea...
Definition: SimulationParams.h:68
int es_N_y
Y dimension of the 3D lookup grid (in number of cells)
Definition: SimulationParams.h:96
int * num_states
Number of states for each blob.
Definition: SimulationParams.h:84
int calc_kinetics
Whether or not to calculate kinetic switching between different equilibrium states and binding sites...
Definition: SimulationParams.h:116
int es_N_z
Z dimension of the 3D lookup grid (in number of cells)
Definition: SimulationParams.h:97
string ssint_type
Current possible values: "lennard-jones" (default) or "steric".
Definition: SimulationParams.h:112
string measurement_out_fname
Definition: SimulationParams.h:142
int trajbeads_fname_set
Definition: SimulationParams.h:178
b_fs::path FFEA_script_path
Definition: SimulationParams.h:139
int num_blobs
Number of blobs in the system.
Definition: SimulationParams.h:80
int * num_conformations
Number of conformations for each blob.
Definition: SimulationParams.h:83
double scalar
Definition: mat_vec_types.h:36
int calc_noise
Whether or noise to simulate thermal noise for the system. Kind of the entire point of this simulatio...
Definition: SimulationParams.h:114
string trajectory_out_fname
Definition: SimulationParams.h:140
int num_dimensions
Definition: SimulationParams.h:100
int kinetics_update
How often to check for a state change. If rates are ~ >> dt then this can clearly be quite high...
Definition: SimulationParams.h:121
scalar epsilon_0
Permittivity of free space.
Definition: SimulationParams.h:105