Search found 6382 matches

by ted
Tue Mar 25, 2025 7:35 pm
Forum: Modeling networks
Topic: Adding extracellular stimulus to network of neurons
Replies: 9
Views: 28877

Re: Adding extracellular stimulus to network of neurons

I've never seen this msg signify a discontinuity. It's usually caused by NMODL code with rate constants that involve exponential functions. Typically the exp is in a denominator where limiting the value returned by exp(x) to exp(700) will do no harm. Nothing will blow up numerically, and your simula...
by ted
Tue Mar 25, 2025 7:30 pm
Forum: UNIX/Linux
Topic: Windows 7.2 NEURON on Linux?
Replies: 1
Views: 790

Re: Windows 7.2 NEURON on Linux?

Hi, Shaina. Sorry about the delay, but I've been traveling a bit after the course we did at ASU week before last. Open a terminal and cd into the the folder that holds your code. If there is a file called nrnmech.dll, delete it. Or if you see a folder called x86_64, delete that and all its contents....
by ted
Thu Mar 13, 2025 1:24 am
Forum: Other questions
Topic: How is point process current added into the equation solved by NEURON
Replies: 2
Views: 4927

Re: How is point process current added into the equation solved by NEURON

The ODE for each segment is of the form transmembrane capacitive current + transmembrane ionic current = sum of all currents arriving in the segment from adjacent segments + sum of all currents that enter the segment from all point processes that generate currents Notice that current in these equati...
by ted
Tue Feb 25, 2025 8:43 am
Forum: NEURON + Python
Topic: Coreneuron CPU and multisplit
Replies: 1
Views: 5808

Re: Coreneuron CPU and multisplit

The primary utility of multisplit is to achieve load balance in network simulations, and that is useful only when the network contains a very few model cells that are very large. Otherwise the performance boost will not be worth the programmer's effort required to restructure your model. Few single ...
by ted
Wed Feb 19, 2025 2:42 pm
Forum: Other questions
Topic: Factors Influencing NEURON Simulation Run Time Beyond Total Compartment Count?
Replies: 1
Views: 7707

Re: Factors Influencing NEURON Simulation Run Time Beyond Total Compartment Count?

Runtime depends on model complexity. A crude but effective measure of complexity is the total number of ODEs. For every segment there is one ODE for the cable equation, plus one ODE for each state variable of every mechanism associated with that segment that requires numerical integration. This incl...
by ted
Wed Feb 19, 2025 2:15 pm
Forum: Other questions
Topic: error
Replies: 1
Views: 6573

Re: error

About this Forum: If you need to paste code, be sure to surround it with the proper markup (that's what the < / > formatting button is for). Otherwise things like leftsquarebracket i rightsquarebracket will be treated as formatting instructions (interpreted as "italic"). Here's how to fix ...
by ted
Mon Feb 17, 2025 10:11 am
Forum: Modeling networks
Topic: Adding extracellular stimulus to network of neurons
Replies: 9
Views: 28877

Re: Adding extracellular stimulus to network of neurons

I asked because DBS protocols use biphasic, charge-balanced waveforms. Vector play works for arbitrary waveforms. If the conductive medium is nondispersive ("purely resistive"), then the time course of extracelluar potential vx(x,y,z) will be of the form A(x,y,z)*f(t) where f is a function...
by ted
Fri Feb 14, 2025 12:00 am
Forum: Modeling networks
Topic: Adding extracellular stimulus to network of neurons
Replies: 9
Views: 28877

Re: Adding extracellular stimulus to network of neurons

Haven't been much help yet--you've done all the work so far. Implementing stimulation will be easy if you only need a single rectangular pulse--the IClamp class will do for that. But what if your stimulus current should have a more complex time course, e.g. two or more monophasic rectangular pulses,...
by ted
Thu Feb 06, 2025 12:58 pm
Forum: NEURON + Python
Topic: kernel dying in unusual circumstances
Replies: 1
Views: 11057

Re: kernel dying in unusual circumstances

To provide specific advice, I will have to know what you're trying to do. All that is clear from the example code is that 1. it assumes that soma2 and dend2 have the same nseg value. This is unlikely to be true. 2. it assumes that this nseg value changes on every pass through the "for seg in se...
by ted
Wed Feb 05, 2025 5:35 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Boltzmann and elementary charge values
Replies: 6
Views: 27489

Re: Boltzmann and elementary charge values

To give specific advice, I'll have to reproduce the error for myself. Can you email the mod file in question to ted dot carnevale at yale dot edu?
by ted
Mon Feb 03, 2025 12:02 pm
Forum: NEURON + Python
Topic: list the mechanisms loaded from the nrnmech.dll.file
Replies: 3
Views: 13203

Re: list the mechanisms loaded from the nrnmech.dll.file

I have 100's of ion channel mechanisms and i would like to be able to choose which ones I insert in my model This isn't hard. In your model setup code use conditional statements code whose execution is controlled e.g. by command line switches or statements in a text file. That way you'll have a tex...
by ted
Sat Feb 01, 2025 12:33 pm
Forum: Modeling networks
Topic: Adding extracellular stimulus to network of neurons
Replies: 9
Views: 28877

Re: Adding extracellular stimulus to network of neurons

Given a point neuron, extracellular stimulation can be represented by a current source attached to the model cell, but the question then is: how to determine the amplitude and time course of that current? Amplitude is clearly a function of assumed location of the model cell in the conductive medium,...
by ted
Sat Feb 01, 2025 12:06 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Boltzmann and elementary charge values
Replies: 6
Views: 27489

Re: Boltzmann and elementary charge values

Regardless of the programming language, it is generally not a good idea to embed magic numbers (numerical constants) in code. Instead, it is best to use a variable whose value will not be changed during a simulation. In NMODL you could define a symbolic constant by declaring its name and assigning a...
by ted
Fri Jan 31, 2025 3:02 pm
Forum: NEURON + Python
Topic: list the mechanisms loaded from the nrnmech.dll.file
Replies: 3
Views: 13203

Re: list the mechanisms loaded from the nrnmech.dll.file

It's not a good idea to do that, unless you enjoy setting booby traps for yourself and anyone who tries to reuse your code. Specification of the mechanisms used by a model should be made by hoc or Python statements.
by ted
Fri Jan 31, 2025 2:58 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Boltzmann and elementary charge values
Replies: 6
Views: 27489

Re: Boltzmann and elementary charge values

Are you asking about a statement in a hoc or Python file, or in a mod file?