/* patch.hoc
   v. 1.2 10/19/2001 NTC
 */

// make graphical interface tools available to this program
load_file("nrngui.hoc")

// specify the properties of the model cell
create soma //, dend[1]   // model topology
access soma   // default section = soma

soma {
  // diam = 100   // soma dimensions in um
  // L = 100/PI   //   surface area = 10000 um^2
	nseg = 1
	diam = 55
	L = 130/PI
	cm = 1
	//area =10000
   insert ileak
   insert ipotassium
	 insert ipotassiumM
   //g_ipotassium  = 3.6 // 5.0 // 5.0 // 5.0 // 5.0 // 5.0 // 3.6 // 9
	 //g_ipotassiuim = 0.36 //3.6 
	 g_ipotassium = [GKI] 
	 //g_ipotassium = 2.0 // Low
   insert isodium
	 insert isodiumP
  insert kbalance
   insert ikpump
   insert ikCa
   insert ikleak
	insert iext
		iext_iext = 0 // [IEXT]
//	insert hh

	//ikpumpmax_ikpump = 40
	ikpumpmax_ikpump = [IKPUMPMAX]   //default 30

//	slope_kbalance = [SLOPE] //default -0.05
//	koth_kbalance = [KOTH] //default 15.0
//	B_max_kbalance = 500.0
//	B_init_kbalance = [BINIT] //480
//	ko_init_kbalance = [KOINIT] // 2
	h_init_isodium = 0.05
	n_init_ipotassium = 0.1
	g_ikCa = 0.0 //0.5
	gCa_ikCa = 0.03 // 0.1
	g_ipotassiumM = 0.0 // 0.02 //gKm
	g_isodiumP = 0.0 // 0.2 //gNaP
	 glcl_ileak =0.1
	
}
//celsius = 36.4

//dend[0]{
//	nseg =3
//	diam = 1
//	L = 500
//	cm = 1
//}


// Connect things together
//connect dend[0](0), soma(0)

//tstop=3000