11<Lems >
22
33 <Target component =" sim1" />
4-
4+
55 <!-- Include standard NeuroML2 ComponentType definitions -->
66 <Include file =" Simulation.xml" />
7-
8-
7+
8+
99 <ComponentType name =" simpleCell" >
10-
10+
1111 <Parameter name =" v0" dimension =" voltage" />
1212 <Parameter name =" v1" dimension =" voltage" />
1313 <Parameter name =" tau" dimension =" time" />
14-
14+
1515 <Exposure name =" v" dimension =" voltage" description =" Membrane potential" />
16-
16+
1717 <Child name =" membrane" type =" membrane" />
18-
18+
1919 <Dynamics >
2020 <DerivedVariable name =" v" dimension =" voltage" exposure =" v" value =" v0 + (t*(v1-v0)/tau)" />
2121
2222 </Dynamics >
2323
2424 </ComponentType >
25-
25+
2626 <ComponentType name =" membrane" >
27-
27+
2828 <Parameter name =" g" dimension =" conductance" />
2929 <Parameter name =" E" dimension =" voltage" />
3030 <Exposure name =" I" dimension =" current" />
3131 <Exposure name =" I2" dimension =" none" />
3232 <Requirement name =" v" dimension =" voltage" />
33-
33+
3434 <Dynamics >
3535 <DerivedVariable name =" I" dimension =" current" exposure =" I" value =" g * (E-v)" />
3636 <DerivedVariable name =" I2" dimension =" none" exposure =" I2" value =" v/E" />
3737 </Dynamics >
3838
3939 </ComponentType >
40-
41-
42-
40+
41+
42+
4343 <simpleCell id =" cell0" v0 =" -100 mV" v1 =" 100 mV" tau =" 200 ms" >
4444 <membrane g =" 10 pS" E =" 50 mV" />
4545 </simpleCell >
46-
47-
46+
47+
4848 <Simulation id =" sim1" length =" 5ms" step =" 1ms" target =" cell0" >
49-
49+
5050 <Display id =" d1" title =" Voltage" timeScale =" 1ms" xmin =" -20" xmax =" 220" ymin =" -110" ymax =" 110" >
5151 <Line id =" v" quantity =" v" scale =" 1mV" color =" #ffffff" timeScale =" 1ms" />
5252 </Display >
53-
53+
5454 <Display id =" d2" title =" Current" timeScale =" 1ms" xmin =" -20" xmax =" 220" ymin =" -1" ymax =" 2" >
5555 <Line id =" I" quantity =" membrane/I" scale =" 1pS" color =" #ffffff" timeScale =" 1ms" />
5656 <Line id =" I2" quantity =" membrane/I2" scale =" 1" color =" #f22fff" timeScale =" 1ms" />
5757 </Display >
58-
58+
5959
6060 <OutputFile id =" of0" fileName =" simp.dat" >
6161 <OutputColumn id =" v" quantity =" v" />
6262 <OutputColumn id =" m" quantity =" membrane/I" />
6363 <OutputColumn id =" m" quantity =" membrane/I2" />
64- </OutputFile >
64+ </OutputFile >
6565
6666 </Simulation >
6767
6868
6969
70- </Lems >
70+ </Lems >
0 commit comments