PotassiumFixed#
- class braincell.ion.PotassiumFixed(size, E=Quantity(-95., 'mV'), Ci=None, Co=None, valence=None, name=None, **channels)#
Fixed potassium dynamics.
This potassium model has no dynamics. It holds a fixed reversal potential \(E\) and fixed concentrations \(C_i\)/\(C_o\).
- Parameters:
size (
int|Sequence[int] |integer|Sequence[integer]) – The size of the simulation target, typically the number of neurons or compartments. Forwarded unchanged toPotassium.E (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Fixed reversal potential. Defaults to-95 mV. PassingNoneexplicitly raisesValueError; there is no class-default fallback for this argument.Ci (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Intracellular potassium concentration. Defaults toNone, which falls back toPotassium.default_CiinsideFixedIon._init_fixed_ion().Co (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Extracellular potassium concentration. Defaults toNone, which falls back toPotassium.default_CoinsideFixedIon._init_fixed_ion().valence (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Ionic valence. Defaults toNone, which falls back toPotassium.default_valenceinsideFixedIon._init_fixed_ion().name (
str|None) – Runtime ion instance name. Defaults toNone.**channels – Channel instances to attach to this ion, forwarded unchanged to
Potassium.
- Raises:
ValueError – If
Eis explicitly passed asNone.FixedIon._init_fixed_ion()requires an explicit fixed reversal potential and does not fall back to a class default forE.
See also
PotassiumBase potassium ion family this class fixes.
PotassiumInitNernstSibling potassium model whose
Eis computed from the Nernst equation instead of fixed.
Notes
With the shipped class defaults (
Co = 2.5 mM,Ci = 54.4 mM,valence = 1) at 36 degrees Celsius, the Nernst equation givesE = -82.05 mV.PotassiumFixedinstead defaultsEto-95 mV, so the two sibling classes disagree by about 13 mV when both are constructed with no arguments.