CoreNEURON
membrane_definitions.h
Go to the documentation of this file.
1 /*
2 # =============================================================================
3 # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
4 #
5 # See top-level LICENSE file for details.
6 # =============================================================================.
7 */
8 
9 /* /local/src/master/nrn/src/nrnoc/membdef.h,v 1.2 1995/02/13 20:20:42 hines Exp */
10 
11 /* numerical parameters */
12 #define DEF_nseg 1 /* default number of segments per section*/
13 #define DEF_dt .025 /* ms */
14 #define DEF_rev_dt 1. / DEF_dt /* 1/ms */
15 #define DEF_secondorder \
16  0 /* >0 means crank-nicolson. 2 means current \
17  adjusted to t+dt/2 */
18 
19 /*global parameters */
20 #define DEF_Ra 35.4 /* ohm-cm */ /*changed from 34.5 on 1/6/95*/
21 #define DEF_celsius 6.3 /* deg-C */
22 
23 #define DEF_vrest -65. /* mV */
24 
25 /* old point process parameters */
26 /* fclamp */
27 #define DEF_clamp_resist 1e-3 /* megohm */
28 
29 /* Parameters that are used in mechanism _alloc() procedures */
30 /* cable */
31 #define DEF_L 100. /* microns */
32 #define DEF_rallbranch 1.
33 
34 /* morphology */
35 #define DEF_diam 500. /* microns */
36 
37 /* capacitance */
38 #define DEF_cm 1. /* uF/cm^2 */
39 
40 /* fast passive (e_p and g_p)*/
41 #define DEF_e DEF_vrest /* mV */
42 #define DEF_g 5.e-4 /* S/cm^2 */
43 
44 /* na_ion */
45 #define DEF_nai 10. /* mM */
46 #define DEF_nao 140. /* mM */
47 #define DEF_ena (115. + DEF_vrest) /* mV */
48 
49 /* k_ion */
50 #define DEF_ki 54.4 /* mM */
51 #define DEF_ko 2.5 /* mM */
52 #define DEF_ek (-12. + DEF_vrest) /* mV */
53 
54 /* ca_ion -> any program that uses DEF_eca must include <math.h> */
55 #define DEF_cai 5.e-5 /* mM */
56 #define DEF_cao 2. /* mM */
57 #include <math.h>
58 #define DEF_eca 12.5 * log(DEF_cao / DEF_cai) /* mV */
59 
60 /* default ion values */
61 #define DEF_ioni 1. /* mM */
62 #define DEF_iono 1. /* mM */
63 #define DEF_eion 0. /* mV */