Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: separate duplicate names of parameters, variables, and auxiliary variables #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions NeuronKATP_Stoch.ode
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ wiener w

# Parameter values
par ip0=0.75
par gLs=0.1 gLd=0.1 gNa=30 gKdr=15 gCa=9 gKahp=0.8 gKC=15
par gLs=0.1 gLd=0.1 gNa=30 gKdr=15 gCa=9 gKahp=0.8 par_gKC=15
par VNa=60 VCa=80 VK=-75 VL=-60 Vsyn=0
par gc=2.1 pp=0.5 Cm=3
par alphac=2 betac=0.1
Expand Down Expand Up @@ -51,7 +51,7 @@ varnoise=sqrt((alphas*(1 - s)+betas*s)/(taus*natp))
# Output cols are t, ODEs, AUXs in order, here:
# t versus vd cad hs ns sd cd qd gqk gkc
Vs'=(-gLs*(Vs-VL)-gNa*(Minfs(Vs)^2)*hs*(Vs-VNa)-gKdr*ns*(Vs-VK)-gkatp*natp*poatp*(Vs-VK)+(gc/pp)*(Vd-Vs)+Ip0/pp)/Cm
Vd'=(-gLd*(Vd-VL)-ICad-gKahp*qd*(Vd-VK)-gKC*cd*chid*(Vd-VK)-gkatp*natp*poatp*(Vd-VK)+(gc*(Vs-Vd))/(1.0-pp))/Cm
Vd'=(-gLd*(Vd-VL)-ICad-gKahp*qd*(Vd-VK)-par_gKC*cd*chid*(Vd-VK)-gkatp*natp*poatp*(Vd-VK)+(gc*(Vs-Vd))/(1.0-pp))/Cm
Cad'= -0.13*ICad-0.075*Cad
hs'= alphahs(Vs)-(alphahs(Vs)+betahs(Vs))*hs
ns'= alphans(Vs)-(alphans(Vs)+betans(Vs))*ns
Expand All @@ -63,9 +63,9 @@ s' = (alphas*(1-s)-betas*s)/taus + noise*w*varnoise
# auxiliary equationns
aux Ica=ICad
aux gkq = gKahp*qd
aux gkc = gKC*cd*chid
aux gkc = par_gKC*cd*chid
aux ikatp = gkatp*natp*poatp*(Vs-VK)
aux iatp=iatp*s
aux iatp_s=iatp*s

# For stochastics, CVODE can not be used.
@ maxstor=1000000, total=1.0e4, bounds=10000, xlo=0, xhi=1.0e4, ylo=-90, yhi=60
Expand Down