Ca_HVA.mod 992 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. :Comment :
  2. :Reference : : Reuveni, Friedman, Amitai, and Gutnick, J.Neurosci. 1993
  3. NEURON {
  4. SUFFIX Ca_HVA
  5. USEION ca READ eca WRITE ica
  6. RANGE gbar, g, ica
  7. }
  8. UNITS {
  9. (S) = (siemens)
  10. (mV) = (millivolt)
  11. (mA) = (milliamp)
  12. }
  13. PARAMETER {
  14. gbar = 0.00001 (S/cm2)
  15. }
  16. ASSIGNED {
  17. v (mV)
  18. eca (mV)
  19. ica (mA/cm2)
  20. g (S/cm2)
  21. mInf
  22. mTau
  23. mAlpha
  24. mBeta
  25. hInf
  26. hTau
  27. hAlpha
  28. hBeta
  29. }
  30. STATE {
  31. m
  32. h
  33. }
  34. BREAKPOINT {
  35. SOLVE states METHOD cnexp
  36. g = gbar*m*m*h
  37. ica = g*(v-eca)
  38. }
  39. DERIVATIVE states {
  40. rates()
  41. m' = (mInf-m)/mTau
  42. h' = (hInf-h)/hTau
  43. }
  44. INITIAL{
  45. rates()
  46. m = mInf
  47. h = hInf
  48. }
  49. PROCEDURE rates(){
  50. UNITSOFF
  51. if((v == -27) ){
  52. v = v+0.0001
  53. }
  54. mAlpha = (0.055*(-27-v))/(exp((-27-v)/3.8) - 1)
  55. mBeta = (0.94*exp((-75-v)/17))
  56. mInf = mAlpha/(mAlpha + mBeta)
  57. mTau = 1/(mAlpha + mBeta)
  58. hAlpha = (0.000457*exp((-13-v)/50))
  59. hBeta = (0.0065/(exp((-v-15)/28)+1))
  60. hInf = hAlpha/(hAlpha + hBeta)
  61. hTau = 1/(hAlpha + hBeta)
  62. UNITSON
  63. }