Hi

I want to modify HH model so that membrane capacitance changes with a specific function that depends on the temperature and the total current through the membrane changes as:

I= (c(T)*dv/dt) + (dc/dt * v)

my question is that if I define the capacitance in the mod file (BREAKPOINT) such this:

c(T)=c0+c1/T(t)

and declare T(t) in FUNCTION block will I get a correct response?

in fact I want to ask when membrane capacitance and total current changes with temperature, should also m, h, n terms change in mod file?

## Temperature Dependent Membrane Capacitance

### Re: Temperature Dependent Membrane Capacitance

Please see https://github.com/nrnhines/dcmdt in particular the comment in hhdcdt.mod

### Re: Temperature Dependent Membrane Capacitance

Thanks for your helpful replyhines wrote: ↑Mon Jun 01, 2020 11:50 am Please see https://github.com/nrnhines/dcmdt in particular the comment in hhdcdt.mod

### Re: Temperature Dependent Membrane Capacitance

I used this for an unmyelinated axon and the results were acceptable but now I try to use this for a myelinated axon and I think my results are not correct, actually, as I connect an internode with passive mechanism to a node with modified "high density HH" mechanism that membrane capacitance is variable, generated action potential decreased from 80mV to about 5mV.hines wrote: ↑Mon Jun 01, 2020 11:50 am Please see https://github.com/nrnhines/dcmdt in particular the comment in hhdcdt.mod

What's wrong with my model?

### Re: Temperature Dependent Membrane Capacitance

If you are using extracellular, make sure you have that inserted in every node as well as the myelin sections. Otherwise the extracellular current balance boundary conditions may not be as expected.