Skip to content
Snippets Groups Projects
Commit 256c5421 authored by Ben Cumming's avatar Ben Cumming Committed by Sam Yates
Browse files

Use Nernst equation to calculate reversal potentials (#387)

Replace constant values for ion species reversal potentials taken from HH model with values that are updated on each time step via the Nernst equation.

* Implement Nernst equation in multicore and gpu back-ends.
* Extend interface of `ion` type to proved a method `update_reversal_potential` which calls the back-end nernst routine.
* Add `valency` and default concentration values to the ion species.
* Add interface for resetting ion species state (for restarting simulations).

Fixes #376 
parent bca33966
No related branches found
No related tags found
No related merge requests found
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