{load_file("nrngui.hoc")}
objectvar save_window_, rvp_
objectvar scene_vector_[8]
objectvar ocbox_, ocbox_list_, scene_, scene_list_
{ocbox_list_ = new List()  scene_list_ = new List()}
{pwman_place(0,0,0)}

//Begin CellBuild[0]
{
load_file("celbild.hoc", "CellBuild")
}
{ocbox_ = new CellBuild(1)}
{object_push(ocbox_)}
{
version(5.7)
continuous = 1
}
{object_push(topol)}
{
first = 0
slist.remove_all()
sname = "myelin"
objref tobj
}
{
tobj = new CellBuildSection("AIS",0, 0, tobj, 0) slist.append(tobj)
  tobj.position(-125.911,-0.701758,15,0) tobj.lx=-55.4555 tobj.ly=-0.350879 tobj.i3d=0
tobj = new CellBuildSection("soma",0, 0, tobj, 0) slist.append(tobj)
tobj.parent=slist.object(0)
  tobj.position(-125.911,-0.701758,-135,0) tobj.lx=-130.456 tobj.ly=-0.350879 tobj.i3d=0
tobj = new CellBuildSection("ApD",0, 0, tobj, 1) slist.append(tobj)
tobj.parent=slist.object(1)
  tobj.position(-135,0,-225,0) tobj.lx=-180 tobj.ly=0 tobj.i3d=0
tobj = new CellBuildSection("BasD",0, 0, tobj, 0) slist.append(tobj)
tobj.parent=slist.object(0)
  tobj.position(-125.911,-0.701758,-90,75) tobj.lx=-107.956 tobj.ly=37.1491 tobj.i3d=0
tobj = new CellBuildSection("BasD",1, 0, tobj, 0) slist.append(tobj)
tobj.parent=slist.object(0)
  tobj.position(-125.911,-0.701758,-90,-60) tobj.lx=-107.956 tobj.ly=-30.3509 tobj.i3d=0
tobj = new CellBuildSection("myelin",0, 0, tobj, 1) slist.append(tobj)
tobj.parent=slist.object(0)
  tobj.position(15,0,90,0) tobj.lx=52.5 tobj.ly=0 tobj.i3d=0
tobj = new CellBuildSection("node",0, 0, tobj, 1) slist.append(tobj)
tobj.parent=slist.object(5)
  tobj.position(90,0,105,0) tobj.lx=97.5 tobj.ly=0 tobj.i3d=0
tobj = new CellBuildSection("myelin",1, 0, tobj, 1) slist.append(tobj)
tobj.parent=slist.object(6)
  tobj.position(105,0,195,0) tobj.lx=150 tobj.ly=0 tobj.i3d=0
all_init()
}
for i=0, slist.count-1 {slist.object(i).rdses()}
{object_pop()}
{
}
{object_push(subsets)}
{first = 0}
{ tobj = snlist.object(0)}
{tobj = new SNList("axonal") snlist.append(tobj)}
for i=0,0 tobj.add(bild.topol.slist.object(fscan()))
0
add_domainparm(tobj, tobj1)
{tobj1.styleset(0, 1, 1)}
{tobj1.using(1, "gbar_Kv1")}
{tobj1.using_.object(0).restore(1, 2)}
0.002
0.2
{tobj1.using(1, "gbar_kv")}
{tobj1.using_.object(1).restore(1, 2)}
20
2000
{consist()}
{object_pop()}
{
}
{object_push(geom)}
{
first = 0
tobj = new GeoSpec(2)
tobj.value = 50
bild.topol.slist.object(0).geo.append(tobj)
tobj = new GeoSpec(3)
tobj.value = 1.2
bild.topol.slist.object(0).geo.append(tobj)
tobj = new GeoSpec(6)
tobj.value = 50
bild.topol.slist.object(0).geo.append(tobj)
tobj = new GeoSpec(2)
tobj.value = 35
bild.topol.slist.object(1).geo.append(tobj)
tobj = new GeoSpec(3)
tobj.value = 23
bild.topol.slist.object(1).geo.append(tobj)
tobj = new GeoSpec(6)
tobj.value = 35
bild.topol.slist.object(1).geo.append(tobj)
tobj = new GeoSpec(2)
tobj.value = 700
bild.topol.slist.object(2).geo.append(tobj)
tobj = new GeoSpec(3)
tobj.value = 3.5
bild.topol.slist.object(2).geo.append(tobj)
tobj = new GeoSpec(6)
tobj.value = 100
bild.topol.slist.object(2).geo.append(tobj)
tobj = new GeoSpec(2)
tobj.value = 200
bild.topol.slist.object(3).geo.append(tobj)
tobj = new GeoSpec(3)
tobj.value = 1.2
bild.topol.slist.object(3).geo.append(tobj)
tobj = new GeoSpec(6)
tobj.value = 200
bild.topol.slist.object(3).geo.append(tobj)
tobj = new GeoSpec(2)
tobj.value = 200
bild.topol.slist.object(4).geo.append(tobj)
tobj = new GeoSpec(3)
tobj.value = 1.2
bild.topol.slist.object(4).geo.append(tobj)
tobj = new GeoSpec(6)
tobj.value = 200
bild.topol.slist.object(4).geo.append(tobj)
tobj = new GeoSpec(2)
tobj.value = 50
bild.topol.slist.object(5).geo.append(tobj)
tobj = new GeoSpec(3)
tobj.value = 1.2
bild.topol.slist.object(5).geo.append(tobj)
tobj = new GeoSpec(6)
tobj.value = 50
bild.topol.slist.object(5).geo.append(tobj)
tobj = new GeoSpec(2)
tobj.value = 1
bild.topol.slist.object(6).geo.append(tobj)
tobj = new GeoSpec(3)
tobj.value = 1.2
bild.topol.slist.object(6).geo.append(tobj)
tobj = new GeoSpec(6)
tobj.value = 5
bild.topol.slist.object(6).geo.append(tobj)
tobj = new GeoSpec(2)
tobj.value = 50
bild.topol.slist.object(7).geo.append(tobj)
tobj = new GeoSpec(3)
tobj.value = 1.2
bild.topol.slist.object(7).geo.append(tobj)
}
{
tobj = new GeoSpec(6)
tobj.value = 50
bild.topol.slist.object(7).geo.append(tobj)
set_default()
}
{object_pop()}
{
}
{object_push(memb)}
{first=0}
{
tobj = new MechanismStandard("pas")
tobj.set("g_pas", 6.6e-05, 0)
tobj.set("e_pas", -75, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new FakeMechStan(0)
tobj.value = 125
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("kv")
tobj.set("gbar_kv", 20, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("Kv1")
tobj.set("gbar_Kv1", 0.01, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("nadifl")
tobj.set("D_nadifl", 0.6, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("Kv1")
tobj.set("gbar_Kv1", 0.002, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(1).ml.append(tobj)
}
{
tobj = new MechanismStandard("kv")
tobj.set("gbar_kv", 20, 0)
tobj = new MStanWrap(tobj, 1)
bild.subsets.snlist.object(1).ml.append(tobj)
}
{
tobj = new FakeMechStan(1)
tobj.value = 0.9
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.topol.slist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("hh_Cs_scaled")
tobj.set("gnabar_hh_Cs_scaled", 0.08, 0)
tobj.set("gkbar_hh_Cs_scaled", 0, 0)
tobj.set("gl_hh_Cs_scaled", 0, 0)
tobj.set("el_hh_Cs_scaled", -54.3, 0)
tobj = new MStanWrap(tobj, 1)
bild.topol.slist.object(0).ml.append(tobj)
}
{
tobj = new MechanismStandard("hh_Cs_scaled")
tobj.set("gnabar_hh_Cs_scaled", 0.025, 0)
tobj.set("gkbar_hh_Cs_scaled", 0, 0)
tobj.set("gl_hh_Cs_scaled", 0, 0)
tobj.set("el_hh_Cs_scaled", -54.3, 0)
tobj = new MStanWrap(tobj, 1)
bild.topol.slist.object(1).ml.append(tobj)
}
{
tobj = new FakeMechStan(1)
tobj.value = 0.9
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.topol.slist.object(1).ml.append(tobj)
}
{
tobj = new MechanismStandard("hh_Cs_scaled")
tobj.set("gnabar_hh_Cs_scaled", 0.02, 0)
tobj.set("gkbar_hh_Cs_scaled", 0, 0)
tobj.set("gl_hh_Cs_scaled", 0, 0)
tobj.set("el_hh_Cs_scaled", -54.3, 0)
tobj = new MStanWrap(tobj, 1)
bild.topol.slist.object(2).ml.append(tobj)
}
{
tobj = new FakeMechStan(1)
tobj.value = 0.9
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.topol.slist.object(2).ml.append(tobj)
}
{
tobj = new MechanismStandard("hh_Cs_scaled")
tobj.set("gnabar_hh_Cs_scaled", 0.004, 0)
tobj.set("gkbar_hh_Cs_scaled", 0, 0)
tobj.set("gl_hh_Cs_scaled", 0, 0)
tobj.set("el_hh_Cs_scaled", -54.3, 0)
tobj = new MStanWrap(tobj, 1)
bild.topol.slist.object(3).ml.append(tobj)
}
{
tobj = new FakeMechStan(1)
tobj.value = 0.9
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.topol.slist.object(3).ml.append(tobj)
}
{
tobj = new MechanismStandard("hh_Cs_scaled")
tobj.set("gnabar_hh_Cs_scaled", 0.004, 0)
tobj.set("gkbar_hh_Cs_scaled", 0, 0)
tobj.set("gl_hh_Cs_scaled", 0, 0)
tobj.set("el_hh_Cs_scaled", -54.3, 0)
tobj = new MStanWrap(tobj, 1)
bild.topol.slist.object(4).ml.append(tobj)
}
{
tobj = new FakeMechStan(1)
tobj.value = 0.9
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.topol.slist.object(4).ml.append(tobj)
}
{
tobj = new FakeMechStan(1)
tobj.value = 0.02
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.topol.slist.object(5).ml.append(tobj)
}
{
tobj = new FakeMechStan(1)
tobj.value = 0.9
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.topol.slist.object(6).ml.append(tobj)
}
{
tobj = new MechanismStandard("Kv1")
tobj.set("gbar_Kv1", 0.2, 0)
tobj = new MStanWrap(tobj, 1)
bild.topol.slist.object(6).ml.append(tobj)
}
{
tobj = new MechanismStandard("hh_Cs_scaled")
tobj.set("gnabar_hh_Cs_scaled", 0.12, 0)
tobj.set("gkbar_hh_Cs_scaled", 0, 0)
tobj.set("gl_hh_Cs_scaled", 0, 0)
tobj.set("el_hh_Cs_scaled", -54.3, 0)
tobj = new MStanWrap(tobj, 1)
bild.topol.slist.object(6).ml.append(tobj)
}
{
tobj = new MechanismStandard("kv")
tobj.set("gbar_kv", 2000, 0)
tobj = new MStanWrap(tobj, 1)
bild.topol.slist.object(6).ml.append(tobj)
}
{
tobj = new FakeMechStan(1)
tobj.value = 0.02
tobj.set_default()
tobj = new MStanWrap(tobj, 0)
bild.topol.slist.object(7).ml.append(tobj)
}
{object_pop()}
{
}
{object_push(manage)}
{
first = 0
classname = "Cell"
etop=1 esub=1 egeom=1 emem=1
itop=1 isub=0 igeom=0 imem=0
bild.topol.names_off = 0
bild.topol.circles_off = 0
output_index = 0  output_x = 1
thresh = 10
}
{object_pop()}
{
cexport()
}
{object_pop()}
{
save_window_=ocbox_.gtopol
save_window_.size(-200,200,-150,150)
scene_vector_[2] = save_window_
ocbox_.gtopol = save_window_
save_window_.save_name("ocbox_.gtopol")
}
{
ocbox_.map("CellBuild[0]", 1297, 110, 758.7, 934.2)
}
objref ocbox_
//End CellBuild[0]


//Begin PointProcessManager
{
load_file("pointman.hoc")
}
{
soma ocbox_ = new PointProcessManager(0)
}
{object_push(ocbox_)}
{
mt.select("IClamp") i = mt.selected()
ms[i] = new MechanismStandard("IClamp")
ms[i].set("del", 1000, 0)
ms[i].set("dur", 3, 0)
ms[i].set("amp", 1.5, 0)
mt.select("IClamp") i = mt.selected() maction(i)
hoc_ac_ = 0.5
sec.sec move() d1.flip_to(0)
}
{object_pop() doNotify()}
{
ocbox_ = ocbox_.v1
ocbox_.map("PointProcessManager", 13, 595, 380.7, 580.5)
}
objref ocbox_
//End PointProcessManager

{
xpanel("RunControl", 0)
v_init = -75
xvalue("Init","v_init", 1,"stdinit()", 1, 1 )
xbutton("Init & Run","run()")
xbutton("Stop","stoprun=1")
runStopAt = 1000
xvalue("Continue til","runStopAt", 1,"{continuerun(runStopAt) stoprun=1}", 1, 1 )
runStopIn = 50
xvalue("Continue for","runStopIn", 1,"{continuerun(t + runStopIn) stoprun=1}", 1, 1 )
xbutton("Single Step","steprun()")
t = 1830
xvalue("t","t", 2 )
tstop = 3000
xvalue("Tstop","tstop", 1,"tstop_changed()", 0, 1 )
dt = 0.1
xvalue("dt","dt", 1,"setdt()", 0, 1 )
steps_per_ms = 10
xvalue("Points plotted/ms","steps_per_ms", 1,"setdt()", 0, 1 )
screen_update_invl = 0.05
xvalue("Scrn update invl","screen_update_invl", 1,"", 0, 1 )
realtime = 26.27
xvalue("Real Time","realtime", 0,"", 0, 1 )
xpanel(12,150)
}
{
save_window_ = new Graph(0)
save_window_.size(0,3000,-90,60)
scene_vector_[4] = save_window_
{save_window_.view(0, -90, 3000, 150, 518, 27, 549, 267.4)}
graphList[0].append(save_window_)
save_window_.save_name("graphList[0].")
save_window_.addexpr("soma.v( 0.5 )", 1, 1, 0.8, 0.9, 2)
}
{
save_window_ = new Graph(0)
save_window_.size(0,3000,4,4.4)
scene_vector_[5] = save_window_
{save_window_.view(0, 4, 3000, 0.4, 517, 457, 548.1, 238.6)}
graphList[1].append(save_window_)
save_window_.save_name("graphList[1].")
save_window_.addexpr("soma.nai( 0.5 )", 1, 1, 0.798358, 0.949036, 2)
save_window_.addexpr("AIS.nai( 0.4)", 2, 1, 0.8, 0.9, 2)
save_window_.addexpr("AIS.nai( 0.8)", 4, 1, 0.8, 0.9, 2)
save_window_.addexpr("myelin[0].nai( 0.2 )", 3, 1, 0.8, 0.9, 2)
}
{
xpanel("Temperature", 0)
celsius = 30
xvalue("celsius","celsius", 1,"", 0, 1 )
xpanel(942,18)
}
objectvar scene_vector_[1]
{doNotify()}