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

changing parameters/mechanisms mid way through simulation in extended model #1

Open
CarmenVarelaLab opened this issue Feb 24, 2019 · 1 comment

Comments

@CarmenVarelaLab
Copy link

I'm trying to switch on the T-current with something similar to the example in issue #62 [https://github.com/DynaSim/DynaSim/issues/62] but with mechanisms from the extended model. Does this need to be implemented differently in the extended model?

e.g.: adding iT to a model with {iNa, iK, ileak} works ok, but not if I try the same with {iNa_TC_AS17,iK_TC_AS17,iLeak_TC_AS17} (below)
% case a):
eqns='dV/dt= -5+ (@current+iT_TC_AS17(t)); {iNa,iK,ileak}; iT_TC_AS17(t)=0*(t<100)+1*(t>100)';
data=dsSimulate(eqns,'tspan',[0 200],'solver','rk1','verbose_flag',1);
dsPlot(data,'ylim',[-100 55]);

% case b):
eqns='dV/dt= -5+ (@current+iT_TC_AS17(t)); {iNa_TC_AS17,iK_TC_AS17,iLeak_TC_AS17}; iT_TC_AS17(t)=0*(t<100)+1*(t>100)';
data=dsSimulate(eqns,'tspan',[0 200],'solver','rk1','verbose_flag',1);
dsPlot(data,'ylim',[-100 55]);

thanks a lot!

@asoplata
Copy link
Owner

Hey @CarmenVarela I know this is years later (the last couple years have been especially rough), but is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants