Green's Function type response

Anything that doesn't fit elsewhere.
Post Reply
adamimos
Posts: 45
Joined: Mon Jan 25, 2010 4:49 pm

Green's Function type response

Post by adamimos »

Hi. I was wondering if it was possible to give an instantaneous current injection (not a hill function, but a delta function) with IClamp. Is the best I can do to set the duration of the clamp very very very low? I was also wondering how the program would deal with my setting the duration of the clamp to smaller than the time interval between steps. Thanks!
adamimos
Posts: 45
Joined: Mon Jan 25, 2010 4:49 pm

Re: Green's Function type response

Post by adamimos »

After some messing around I find that any clamping duration greater than half the timestep of the simulation invokes a response. I am guessing this stems from whatever half-step method NEURON uses to approximate the differentiial equations>?
ted
Site Admin
Posts: 6394
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Green's Function type response

Post by ted »

With fixed dt integration it is a mistake to use stimuli that last less than a full time step--whether it seems to work or not, all results will be accidents of implementational details that may vary from version to version. If you want to approximate an impulse, you could choose a dt that is two or three orders of magnitude smaller than the fastest time constant in your computational model. Or you could use adaptive integration and set dt to an arbitrarily small value (may need to adjust error tolerance for accuracy/stability).
Post Reply