-
Notifications
You must be signed in to change notification settings - Fork 1
/
Figure2_PassiveChannel.xml
68 lines (41 loc) · 1.99 KB
/
Figure2_PassiveChannel.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<Lems>
<Target component="sim1"/>
<!-- Include standard NeuroML2 ComponentType definitions -->
<Include file="Simulation.xml"/>
<ComponentType name="simpleCell">
<Parameter name="v0" dimension="voltage"/>
<Parameter name="v1" dimension="voltage"/>
<Parameter name="tau" dimension="time"/>
<Exposure name="v" dimension="voltage" description="Membrane potential"/>
<Child name="membrane" type="membrane"/>
<Dynamics>
<DerivedVariable name="v" dimension="voltage" exposure="v" value="v0 + (t*(v1-v0)/tau)"/>
</Dynamics>
</ComponentType>
<ComponentType name="membrane">
<Parameter name="g" dimension="conductance"/>
<Parameter name="E" dimension="voltage"/>
<Exposure name="I" dimension="current"/>
<Requirement name="v" dimension="voltage"/>
<Dynamics>
<DerivedVariable name="I" dimension="current" exposure="I" value="g * (v-E)"/>
</Dynamics>
</ComponentType>
<simpleCell id="cell0" v0="-100 mV" v1="100 mV" tau="200 ms">
<membrane g="10 pS" E="-60 mV"/>
</simpleCell>
<Simulation id="sim1" length="200ms" step="0.01ms" target="cell0">
<Display id="d1" title="Voltage" timeScale="1ms" xmin="-20" xmax="220" ymin="-110" ymax="110">
<Line id="v" quantity="v" scale="1mV" color="#ffffff" timeScale="1ms"/>
</Display>
<Display id="d2" title="Current" timeScale="1ms" xmin="-20" xmax="220" ymin="-0.5" ymax="2">
<Line id="I" quantity="membrane/I" scale="1pS" color="#ffffff" timeScale="1ms"/>
</Display>
<OutputFile id="of0" fileName="f2_v.dat">
<OutputColumn id="v" quantity="v"/>
</OutputFile>
<OutputFile id="of1" fileName="f2_i.dat">
<OutputColumn id="m" quantity="membrane/I"/>
</OutputFile>
</Simulation>
</Lems>