Cloned from original repository nest-simulator
Changes:
The theoretical information was taken from article (Harilal P, 2016) Computational Modeling of Single Neuron Extracellular Electric Potentials and Network Local Field Potentials using LFPsim
With NEURON, the transmembrane ionic currents in multi-compartmental models can be calculated by summing up all active currents estimated using extracellular mechanism from NEURON as implemented in LFPsim
I_transmemberane = I_ionic + C_m * ∂V_m / ∂t
Where, I_ionic represent the ionic currents and C_m * ∂V_m / ∂t represent the capacitive current.
The formula was extended for NEST hh_cond_exp_traub neuron model
EC = I_Na + I_K + I_L + I_syn_exc + I_syn_inh + C_m * node.P_.delta_Vm / Time::get_resolution().get_ms()
Where (pseudo-code):
node.P_.delta_Vm = V_m[n] - V_m[n-1]
The NEST results was compared with results of (Bradley J, 2009)