-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters.m
56 lines (44 loc) · 2.03 KB
/
parameters.m
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
%%%%%%%%% parameters %%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % This script is where the parameters % %
% % of the simulation are set. A params % %
% % struct is generates and parameters % %
% % are hard coded here. If running % %
% % run_param_sweep or unit_testing, % %
% % these values will need to be % %
% % overwritten. % %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % Initialize parameters structure
params = {};
% % Set directory for saving output kymograph and energy plots
params.savedir = "/Users/cbrannon/Desktop/";
params.savefile = true;
% % Set how long to let the simulation run for
params.manual_cutoff = 50;
% % Set initial condition for sheet
% % 0's represent flat, active regions of the sheet
% % Integers > 0 represent fold regions
% % Integers < 0 represent twists
params.sheet = [0 0 0 0 0 1 1 1 1 1 0 0 0 0 0];
% % Set remaining parameters
params.E_cc = 0; % energy per 1 unit of cilia:cilia contact
params.E_cs = 100; % energy per 1 unit of cilia:substrate contact
params.a_cs = 1000000; % activity strength
params.a_rand = 0; % activity orientation randomness
params.E_f = params.E_cc; % energy of 1 free cilia
params.E_tw = 100; % energy per 1 unit of twist
params.nucl_prob = 0; % probability of random fold nucleation; val between 0 and 1 / SHOULD BE KEPT VERY LOW
params.flocking_coherence_time = 1; % num timesteps that cilia orientations are maintained / 1 - Inf
params.flocking_mode = 1; % 1 = patches are broken by folding motifs; % 2 = sheet has one patch (all cilia point in the same dir)
params.E = 1; % Young's modulus
params.t = 0.001; % sheet thickness
params.L = length(params.sheet); % sheet length
params.epsilon = 0.001; % sheet bendability
params.delta = 1; % sheet compression
params.lbc = 1; % bendo-capillary length
% % Get fold and twist id's
[fold_ids,twist_ids] = getFeatureIDs(params.sheet);
params.fold_ids = fold_ids;
params.twist_ids = twist_ids;
% % Set case id for unit_testing only
params.case_id = "";