本文介绍了在NEURON .MOD文件中,各节的操作顺序是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以哪种顺序执行NEURON .MOD/NMODL文件节中的命令?具体来说,在以下几个块中:DERIVATIVE,BREAKPOINT和NET_RECEIVE.
In what order do the commands in NEURON .MOD/NMODL file sections get executed? Specifically, within these blocks: DERIVATIVE, BREAKPOINT and NET_RECEIVE.
推荐答案
对于每个时间步,执行顺序如下:
For every time-step, the order of execution is as follows:
- NET_RECEIVE :如果存在net_send()事件,该事件针对该机制,则首先执行此处的行.否则跳过.
- BREAKPOINT 中的行:SOLVE ... METHOD行被忽略.执行SOLVE之后的所有行.使用
printf()
语句,您将看到两个调用.但是,其中一个调用实际上并未设置任何状态变量.用于计算导数. - 最后, DERIVATIVE 块:计算导数(
X' = ...
)的值.请记住,要获取状态变量实际更改的值,请乘以dt
.
- NET_RECEIVE: If there is net_send() an event that targets this mechanism, lines here are executed first. Skipped otherwise.
- Lines in BREAKPOINT: The SOLVE ... METHOD line is ignored. All lines after SOLVE are executed. With a
printf()
statement, you would see two calls. However, one of the calls does not actually set any state variables. It is used to compute the derivatives. - Finally, the DERIVATIVE block: The values for the derivatives (
X' = ...
) are computed. Keep in mind, to get the value by which the state variable actually changes, multiply bydt
.
这篇关于在NEURON .MOD文件中,各节的操作顺序是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!