-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
40 lines (32 loc) · 1.46 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @file config.h
* @brief This file defines the configuration state for a simulation
*/
#import <stdbool.h>
#import "dSFMT/dSFMT.h"
struct conf{
volatile int *done; /**< signals the main thread that this subthread is done */
int N; /**< total number of particles */
int N1; /**< number of particles in species 1 (three patches) */
int N2; /**< number of particles in species 2 (two patches) */
double M2; /**< mass of species 2 */
double height; /**< height of simulation box */
double width; /**< width of simulation box */
double T; /**< temperature in units of \f$\frac{U_0}{k_B}\f$ */
int steps; /**< number of Monte Carlo steps to run */
double g; /**< gravitiational constant */
double dmax; /**< maximum displacement */
double amax; /**< maximum rotation */
double boxed; /**< if boxed intialization, give hight of lower box as fraction of height */
double Utot; /**< stores the current total energy */
double Uint; /**< stores the current internal energy */
double Uext; /**< stores the current external energy */
char out[40]; /**< filename for the log messages */
char statOut[40]; /**< filename for the statistics */
char posOut[40]; /**< filename for the positions */
char initIn[50]; /**< filename to read initial positions from */
bool loadInit; /**< true if inital configuration should be read from file */
int simRate; /**< stores the number of MC steps per second */
dsfmt_t myrand; /**< stores the RNG state */
};
typedef struct conf Config;