Skip to content
Snippets Groups Projects
Commit e07f64fa authored by Sam Yates's avatar Sam Yates Committed by Benjamin Cumming
Browse files

Add conductivity to implicit voltage solve step for stability. (#735)

Changes implicit solve step from:
> solve (c/δt + L) v' = c/δt v - J

to
> solve (c/δt + g + L)v' = (c/δt +g) v - J

where _c_ is capacitance, _g_ is membrane conductance, _J_ is membrane current.

* Compute conductivity contribution for mechanisms from symbolic d/dv of current contribution (extracted from linearity test.)
* Add new modcc 'source kind' for conductivity; tie to `vec_g_`.
* Add conductivity field to fvm shared state.
* Include conductivity in matrix assemblies for solution.

Fixes #633.
parent 555b7d53
No related branches found
No related tags found
No related merge requests found
Showing
with 111 additions and 54 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment