-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.h
executable file
·79 lines (61 loc) · 2.56 KB
/
params.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef __params__
#define __params__
// FREQUENTLY USED
// Please refer to original Documentation file
#define MAXBOUND_X 500.0f
#define MAXBOUND_Y 800.0f
#define MESH_CRACK true
#define TIME_STEP 1e-2
#define SIM_TIME 20
#define L_MEAN 150.0f
#define L_STD 25.0f
#define FLDR_STRING "results"
// add by Dihan:
// I moved the defination of parameters vel_x & vel_y from the separate vel.h file here.
#define vel_x 0.0f
#define vel_y 50.0f
// If the total weight is less than this value, the weight of each chain will be multiplied by certain factor to reach this threshold. Because when the total weight is too small, many flexure properties will not be stable and conclusive
#define WEIGHT_GOAL 1.0e6
// bool that makes left and right boundary of the network constrained in lateral displacement
#define ROLLER true
// int that indicates the number of random long chains imposed
#define RANDOM_LONG 120
// int that indicates the number of random long chains imposed in vertical directions only
#define RANDOM_Y 0
// float that indicates the "prestretch rate". I defined "prestretch rate" as a parameter to describe the extent of prestretch in addtional chains that 0 means the prestetch is same as the original short chains; 1 means the contour length is same as the original short chains.
#define PRESTRETCH 0.9
// int that indicates the frequency of output a EPS format snapshot of the network configuration (every how many iterations)
#define EPS 0
// int that indicates the frequency of output a PNG format snapshot of the network configuration (every how many iterations)
#define PNG 20
// string that indicates the pattern style is "layer" or "spot". "layer" means the network is straitified by sparse and dense regions; "spot" means the there are round-shape sparse regions that distribute over the network.
#define PATTERN_TYPE "none"
// int that indicates the number of patterned regions: how many stripes for "layer" or how many round-regions for "spot".
#define PATTERN_NUM 3
// float that indicates how many times sparser the patterned region will be
#define PATTERN_RATE 2
// other constant definations:
#define PI 3.141592653
#define DIM 2
#define TOL 1e-6
#define STEPS int(SIM_TIME/TIME_STEP)
#define PAD_X MAXBOUND_X*1.03
#define PAD_Y MAXBOUND_Y*1.03
#define SACBONDS false
#define IMPLEMENT_PBC false
#define CRACKED false
#define RATE_DAMAGE true
#if CRACKED
#define PROB_REMOVAL 1.0
#else
#define PROB_REMOVAL 0.0
#endif
#define __constants__
#define kB 1.38064852e-5
#define b_poly 0.1
#define T 300.0
#define ae 0.1
#define delxe 0.15
#define af 0.1
#define delxf 0.25
#endif