-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathmembrane_definitions.h
63 lines (50 loc) · 1.85 KB
/
membrane_definitions.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
/*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================.
*/
/* /local/src/master/nrn/src/nrnoc/membdef.h,v 1.2 1995/02/13 20:20:42 hines Exp */
/* numerical parameters */
#define DEF_nseg 1 /* default number of segments per section*/
#define DEF_dt .025 /* ms */
#define DEF_rev_dt 1. / DEF_dt /* 1/ms */
#define DEF_secondorder \
0 /* >0 means crank-nicolson. 2 means current \
adjusted to t+dt/2 */
/*global parameters */
#define DEF_Ra 35.4 /* ohm-cm */ /*changed from 34.5 on 1/6/95*/
#define DEF_celsius 6.3 /* deg-C */
#define DEF_vrest -65. /* mV */
/* old point process parameters */
/* fclamp */
#define DEF_clamp_resist 1e-3 /* megohm */
/* Parameters that are used in mechanism _alloc() procedures */
/* cable */
#define DEF_L 100. /* microns */
#define DEF_rallbranch 1.
/* morphology */
#define DEF_diam 500. /* microns */
/* capacitance */
#define DEF_cm 1. /* uF/cm^2 */
/* fast passive (e_p and g_p)*/
#define DEF_e DEF_vrest /* mV */
#define DEF_g 5.e-4 /* S/cm^2 */
/* na_ion */
#define DEF_nai 10. /* mM */
#define DEF_nao 140. /* mM */
#define DEF_ena (115. + DEF_vrest) /* mV */
/* k_ion */
#define DEF_ki 54.4 /* mM */
#define DEF_ko 2.5 /* mM */
#define DEF_ek (-12. + DEF_vrest) /* mV */
/* ca_ion -> any program that uses DEF_eca must include <math.h> */
#define DEF_cai 5.e-5 /* mM */
#define DEF_cao 2. /* mM */
#include <math.h>
#define DEF_eca 12.5 * log(DEF_cao / DEF_cai) /* mV */
/* default ion values */
#define DEF_ioni 1. /* mM */
#define DEF_iono 1. /* mM */
#define DEF_eion 0. /* mV */