Coupling NEURON to other solvers

Anything that doesn't fit elsewhere.
Post Reply
lmuller
Posts: 3
Joined: Mon Oct 26, 2015 7:15 am

Coupling NEURON to other solvers

Post by lmuller »

Can anyone tell me, or refer me to the relevant documentation, on the possibilities of coupling NEURON models to other solvers. For example, let us say that you have a neural network that is fed by signals from the cardiovascular system (CVS) and in turn gives feedback to it. Then I should be able to communicate the state of some variables of the CVS model to a NEURON model and viceversa during a simulation, since the solution of both models are coupled. Is this possible?

Thanks in advanced,

Lucas.
lmuller
Posts: 3
Joined: Mon Oct 26, 2015 7:15 am

Re: Coupling NEURON to other solvers

Post by lmuller »

No hints on this topic?
ted
Site Admin
Posts: 5787
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Coupling NEURON to other solvers

Post by ted »

Sorry this went unanswered for so long. Python has been used to couple NEURON with other solvers; there is at least one thread about coupling NEURON with MATLAB, and a mention of coupling it to MUSIC. What "other solvers" did you have in mind?
hines
Site Admin
Posts: 1600
Joined: Wed May 18, 2005 3:32 pm

Re: Coupling NEURON to other solvers

Post by hines »

If Python can be the glue language that couples your solver, then a possibility is to use
http://neuron.yale.edu/hg/neuron/nrn/fi ... ervisor.py

an example for a potassium channel is

http://neuron.yale.edu/hg/nrntest/file/ ... anarray.py
lmuller
Posts: 3
Joined: Mon Oct 26, 2015 7:15 am

Re: Coupling NEURON to other solvers

Post by lmuller »

Thanks for the answers! At a first stage Python can be used to put NEURON and other models (cardiovascular system) together. I will therefore follow the indications on that aspect. However, at some point we will eventually want to couple NEURON to extremely detailed models of the CVS and those models are solver using specific solvers, written in cpp. Should then still be necessary to use Python as a glue or can one think of calling NEURON as a library that waits for some information/delivers some results to advance in time?
hines
Site Admin
Posts: 1600
Joined: Wed May 18, 2005 3:32 pm

Re: Coupling NEURON to other solvers

Post by hines »

If you prefer not to use the python nonvint_block_supervisor to connect your c++ solver you can do it using the pattern provided by nrn/src/nrniv/kschan.cpp and kschan.h.
In particular, in kschan,cpp, That, in turn, is the same pattern used when mod files are translated by the nocmodl translator into c. The latter is probably simplest.
Post Reply