membdef.h

Go to the documentation of this file.
00001 /* /local/src/master/nrn/src/nrnoc/membdef.h,v 1.2 1995/02/13 20:20:42 hines Exp */
00002 
00003 /* numerical parameters */
00004 #define DEF_nseg  1          /* default number of segments per section*/
00005 #define DEF_dt    .025     /* ms */
00006 #define DEF_secondorder 0     /* >0 means crank-nicolson. 2 means current
00007                                    adjusted to t+dt/2 */
00008 
00009 /*global parameters */
00010 #define DEF_Ra    35.4     /* ohm-cm */   /*changed from 34.5 on 1/6/95*/
00011 #define DEF_celsius  6.3      /* deg-C */
00012 
00013 #define DEF_vrest -65.     /* mV */
00014 
00015 #if SEJNOWSKI
00016 /* fsyn/fcon */
00017 #define DEF_spikethresh -10.     /* mV (fcon) */
00018 #define DEF_tablesize   200      /* size of lookup table for alpha fxns (both) */
00019 #define DEF_max_syn     10000    /* max synapses per fsyn call */
00020 #define DEF_max_con     1000     /* sqrt of max connectivity for fcon */
00021 #define MIN_DELAY       .5         /* min delay for randomly generated delays (fcon) */
00022 #define MIN_GMAX        0.         /* min gmax for randomly generated gmax (both) */
00023 #define MIN_ISI   1.0        /* min interval between syn activation (msec) (both) */
00024 #define QLEN      10    /* max number of spikes in epspq (fcon) */
00025 /* for use with flag() */
00026 #define SYN_TYPE_FLAG   (int)1     /* Stimulus type (fsyn) */
00027 #define TRAIN_FLAG      (int)2     /* Stimulus train (fsyn) */
00028 #define DENSE_FLAG      (int)1     /* Randomize pre, post or both (fcon) */
00029 #define SELF_CON_FLAG   (int)2     /* Allow for self connections (fcon) */
00030 #define CON_TYPE_FLAG   (int)3     /* Stimulus type (fcon) */
00031 
00032 /* used by parameter dump when dump_flag == 1. (see pdump.c) */
00033 #define LINE_LEN        78         /* line length */
00034 #define IFSEC_INDENT    4          /* how far to indent ifsec */
00035 #define MECH_INDENT     22         /* how far from begin of line to indent mechs */
00036 #define MAX_BLANK       MECH_INDENT + 10 /* max blanks stored for use in indenting */
00037 
00038 #endif
00039 
00040 /* old point process parameters */
00041 /* fclamp */
00042 #define DEF_clamp_resist 1e-3    /* megohm */
00043 
00044 /* Parameters that are used in mechanism _alloc() procedures */
00045 /* cable */
00046 #define DEF_L     100.     /* microns */
00047 #define DEF_rallbranch  1.
00048 
00049 /* morphology */
00050 #define DEF_diam  500.     /* microns */
00051 
00052 /* capacitance */
00053 #define  DEF_cm      1.    /* uF/cm^2 */
00054 
00055 /* fast passive (e_p and g_p)*/
00056 #define DEF_e     DEF_vrest  /* mV */
00057 #define DEF_g     5.e-4    /* S/cm^2 */
00058 
00059 /* na_ion */
00060 #define DEF_nai      10.      /* mM */
00061 #define DEF_nao      140.     /* mM */
00062 #define  DEF_ena     (115. + DEF_vrest) /* mV */
00063 
00064 /* k_ion */
00065 #define DEF_ki    54.4     /* mM */
00066 #define DEF_ko    2.5      /* mM */
00067 #define  DEF_ek      (-12. + DEF_vrest) /* mV */
00068 
00069 /* ca_ion -> any program that uses DEF_eca must include <math.h> */
00070 #define DEF_cai      5.e-5    /* mM */
00071 #define DEF_cao      2.    /* mM */
00072 #include <math.h>
00073 #define  DEF_eca     12.5 *log(DEF_cao / DEF_cai) /* mV */ 
00074 
00075 /* default ion values */
00076 #define DEF_ioni  1.    /* mM */
00077 #define DEF_iono  1.    /* mM */
00078 #define DEF_eion  0.    /* mV */
Generated on Mon Jun 13 08:10:26 2011 for NEURON by  doxygen 1.6.3