Skip to content

Commit 95829c2

Browse files
author
adajel
committed
check that results from merged solver match with results presented in overleaf (for local potass buffering)
1 parent 2a94dc1 commit 95829c2

File tree

2 files changed

+19
-28
lines changed

2 files changed

+19
-28
lines changed

examples/local-astrocyte-depolarization/make_figures.py

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -729,35 +729,26 @@ def plot_surface_time(fname, T, dt):
729729
"E": [0.0003637753007305006, 0.0003705360300998128, 0.0003625574818125377], \
730730
"I": [0.0003548050620792965, 0.0003520433961759351, 0.0003739900092393671]}
731731

732-
T = 1.5
733-
#fname = "results/data/EMIx-synapse_100_tort_short_4_tort_both_ICS_and_ECS/results.h5"
734-
#fnameout = "results/data/EMIx-synapse_100_tort_short_4_tort_both_ICS_and_ECS/"
735-
#plot_3D_concentration_glial(res_3D, T, dt, x_ROI, fname, fnameout)
736-
#plot_surface(fname, fnameout, T, dt)
737-
#write_to_pvd(fname, fnameout, T, dt)
732+
T = 10
738733

739-
#T = 10
740-
#fname = "results/data/EMIx-synapse_100_tort_short_4_tort_both_ICS_and_ECS/results.h5"
741-
#fnameout = "results/data/EMIx-synapse_100_tort_short_4_tort_both_ICS_and_ECS/"
734+
fname = "results/data/EMIx-synapse_100_tort_short_4_tort_both_ICS_and_ECS/results.h5"
735+
fnameout = "results/data/EMIx-synapse_100_tort_short_4_tort_both_ICS_and_ECS/"
736+
plot_3D_concentration_glial(res_3D, T, dt, x_ROI, fname, fnameout)
737+
plot_surface(fname, fnameout, T, dt)
738+
write_to_pvd(fname, fnameout, T, dt)
742739

740+
#fname = "results/data/EMIx-synapse_100_tort_short_2_tort_both_ICS_and_ECS/results.h5"
741+
#fnameout = "results/data/EMIx-synapse_100_tort_short_2_tort_both_ICS_and_ECS/"
743742
#plot_3D_concentration_glial(res_3D, T, dt, x_ROI, fname, fnameout)
744743
#plot_surface(fname, fnameout, T, dt)
745744
#write_to_pvd(fname, fnameout, T, dt)
746745

747-
#fname = "results/data/EMIx-synapse_100_tort_short_2_tort_both_ICS_and_ECS/results.h5"
748-
#fnameout = "results/data/EMIx-synapse_100_tort_short_2_tort_both_ICS_and_ECS/"
749-
746+
#fname = "results/data/EMIx-synapse_100_tort_short_baseline/results.h5"
747+
#fnameout = "results/data/EMIx-synapse_100_tort_short_baseline/"
750748
#plot_3D_concentration_glial(res_3D, T, dt, x_ROI, fname, fnameout)
751749
#plot_surface(fname, fnameout, T, dt)
752750
#write_to_pvd(fname, fnameout, T, dt)
753751

754-
fname = "results/data/EMIx-synapse_100_tort_short_baseline/results.h5"
755-
fnameout = "results/data/EMIx-synapse_100_tort_short_baseline/"
756-
757-
plot_3D_concentration_glial(res_3D, T, dt, x_ROI, fname, fnameout)
758-
plot_surface(fname, fnameout, T, dt)
759-
write_to_pvd(fname, fnameout, T, dt)
760-
761752
"""
762753
T = 0.5
763754
fname = "results/data/EMIx-synapse_100_tort_short_baseline_test/results.h5"

examples/local-astrocyte-depolarization/run_K_stimuli.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def update_ode(self, ode_model):
7979

8080
# Time variables (PDEs)
8181
dt = 0.1 # global time step (ms)
82-
Tstop = 1.5 # ms
82+
Tstop = 10 # ms
8383

8484
t = Constant(0.0) # time constant
8585

@@ -125,10 +125,10 @@ def update_ode(self, ode_model):
125125
t_syn = 1.2
126126

127127
# baseline
128-
lambda_i = 3.2
129-
lambda_e = 1.6
130-
fname = "results/data/EMIx-synapse_100_tort_short_baseline/"
131-
g_syn = 200
128+
#lambda_i = 3.2
129+
#lambda_e = 1.6
130+
#fname = "results/data/EMIx-synapse_100_tort_short_baseline/"
131+
#g_syn = 200
132132

133133
# M1: increase ECS and ICS lambda
134134
#lambda_i = 3.2*2
@@ -137,10 +137,10 @@ def update_ode(self, ode_model):
137137
#g_syn = 65
138138

139139
# M2: increase ECS and ICS lambda
140-
#lambda_i = 3.2*4
141-
#lambda_e = 1.6*4
142-
#fname = "results/data/EMIx-synapse_100_tort_short_4_tort_both_ICS_and_ECS/"
143-
#g_syn = 26
140+
lambda_i = 3.2*4
141+
lambda_e = 1.6*4
142+
fname = "results/data/EMIx-synapse_100_tort_short_4_tort_both_ICS_and_ECS/"
143+
g_syn = 26
144144

145145
phi_M_init_type = 'constant'
146146

0 commit comments

Comments
 (0)