-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModelconfig.m
executable file
·72 lines (48 loc) · 2.05 KB
/
Modelconfig.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
57
58
59
60
61
62
63
64
65
% ======================================================================= %
% Patient
% ======================================================================= %
patient = 1;
% Electrodes
electrode = 6; % Stimulated Electrode Absolute numeration
activeElectrode = 0; % Electrodes goes from -4 to 4. Commonly = 0
anchorElectrode = 2; % Anchor commonly 0 or +2
% ======================================================================= %
% Model Params
% ======================================================================= %
% Stimulation current of the simulated electrode (Amperes).
I_Stimulation=-10^-3;
% Distance between simulated neurons.
distanceBetweenNeurons = 0.21;
% Boundary Radius [mm]
boundaryRadius = 20;
% Mean Material Conductivity [S/m]
meanMaterialConductivity = 0.3;
% Number of simulated neurons. [#]
nNeuronasSimuladas = 43;
% Electrode array position (0.2) [mm].
arrayPos = 0.2;
% Propagation velocity [m/s]
vpropag = 15;
% Number of Electrodes [#]
numElectrodes = 9;
% Neuron length [mm]
longitudNeurona = 2.738*10^-3;
% ======================================================================= %
% Input current File
% ======================================================================= %
membraneCurrentDensityFile = 'default.csv'; % bEIF.csv default.csv
% ======================================================================= %
% Differential Evolution Algorithm
% ======================================================================= %
% Intermpolation method. options ['spline','cubic','linear']
% Only valid if anchorElectrode == 0
InterpolationMethod = 'linear';
% Optimize:
% 'true' for optimization
% 'false' for load params
% or 'manual' for setting [alpha, beta, jmin, jmax] manual
withOptimization = true;
% ======================================================================= %
% Define death region.
% ======================================================================= %
numDeadVN = 0;