CalciumFixed

Contents

CalciumFixed#

class braincell.ion.CalciumFixed(size, E=Quantity(120., 'mV'), Ci=None, Co=None, valence=None, name=None, **channels)#

Fixed calcium dynamics.

This calcium 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 to Calcium.

  • E (Array | ndarray | bool | number | bool | int | float | complex | Quantity | Callable | None) – Fixed reversal potential. Defaults to +120 mV. Passing None explicitly raises ValueError; there is no class-default fallback for this argument.

  • Ci (Array | ndarray | bool | number | bool | int | float | complex | Quantity | Callable | None) – Intracellular calcium concentration. Defaults to None, which falls back to Calcium.default_Ci inside FixedIon._init_fixed_ion().

  • Co (Array | ndarray | bool | number | bool | int | float | complex | Quantity | Callable | None) – Extracellular calcium concentration. Defaults to None, which falls back to Calcium.default_Co inside FixedIon._init_fixed_ion().

  • valence (Array | ndarray | bool | number | bool | int | float | complex | Quantity | Callable | None) – Ionic valence. Defaults to None, which falls back to Calcium.default_valence inside FixedIon._init_fixed_ion().

  • name (str | None) – Runtime ion instance name. Defaults to None.

  • **channels – Channel instances to attach to this ion, forwarded unchanged to Calcium.

Raises:

ValueError – If E is explicitly passed as None. FixedIon._init_fixed_ion() requires an explicit fixed reversal potential and does not fall back to a class default for E.

See also

Calcium

Base calcium ion family this class fixes.

CalciumInitNernst

Sibling calcium model whose E is computed from the Nernst equation instead of fixed.

Notes

With the shipped class defaults (Co = 2.0 mM, Ci = 5e-5 mM, valence = 2) at 36 degrees Celsius, the Nernst equation gives E = +141.15 mV. CalciumFixed instead defaults E to +120 mV, so the two sibling classes disagree by about 21 mV when both are constructed with no arguments.