ToyDiamFactorKinetic_SU2015_DCN#
- class braincell.ion.ToyDiamFactorKinetic_SU2015_DCN(size, temp=Quantity(309.15, 'K'), kf=Quantity(2., '1 / (mM * ms)'), kb=Quantity(0.5, 'kHz'), PumpTot=Quantity(1., 'mM * um'), depth=Quantity(1., 'um'), Co=None, Ci_initializer=Quantity(0.1, 'mM'), PumpBound_initializer=Quantity(0., 'mM * um'), solver='backward_euler', substeps=1, name=None, **channels)#
Minimal geometry-factor toy with runtime-derived cytosolic strip factors.
This is a BrainCell import-path validation fixture, not a model of a published mechanism – the
SU2015_DCNsuffix follows BrainCell’s naming convention only.Cilives in a thin strip volume derived from the runtime midpoint diameter, whilePumpFreeandPumpBoundlive on a line-like membrane factor:\[ \begin{align}\begin{aligned}cyto = \pi \cdot diam_{mid} \cdot depth\\pump\_area = \pi \cdot diam_{mid}\end{aligned}\end{align} \]The mechanism then exercises a reversible reaction
\[Ca_i + PumpFree \rightleftharpoons PumpBound\]together with the conserved pool
\[PumpFree + PumpBound = PumpTot \cdot pump\_area\]- Parameters:
size (
int|Sequence[int] |integer|Sequence[integer]) – The size of the simulation target, typically the number of neurons or compartments. Forwarded unchanged toCalcium.temp (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable) – Absolute temperature used by the Nernst equation inE. Defaults to 36 degrees Celsius, converted to kelvin viau.celsius2kelvinbefore being stored.kf (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable) – Forward rate constant of theCi + PumpFree -> PumpBoundreaction, applied per unitpi * diam_mid. Defaults to2.0 / (mM * ms).kb (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable) – Backward rate constant of thePumpBound -> Ci + PumpFreereaction, applied per unitpi * diam_mid. Defaults to0.5 / ms.PumpTot (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable) – Per-area total pump concentration used by the conserved poolPumpFree + PumpBound = PumpTot * pi * diam_mid. Defaults to1.0 mM * um.depth (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable) – Strip depth multiplyingpi * diam_midto form thecytofactor thatCilives in. Defaults to1.0 um, which differs from every other toy fixture in this module (they defaultdepthto0.2 um).Co (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Extracellular calcium concentration. Defaults toNone, which falls back toCalcium.default_CoinsideKineticIon._init_kinetic_ion().Ci_initializer (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable) – Initializer for theCispecies. Defaults to0.10 mM.PumpBound_initializer (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable) – Initializer for thePumpBoundspecies. Defaults to0.00 mM * um.solver (
str) – Integrator name used for the reaction network. Defaults to"backward_euler", unlike every other toy fixture in this module (they default to"rk4").substeps (
int) – Number of solver substeps run inside one parent update. Defaults to1, unlike every other toy fixture in this module (they default to5).name (
str|None) – Runtime ion instance name. Defaults toNone.**channels – Channel instances to attach to this ion, forwarded unchanged to
Calcium.
- Raises:
ValueError – If
tempis explicitly passed asNone, or ifsubstepsis less than1. Both come fromKineticIon._init_kinetic_ion().
See also
CalciumBase calcium ion family this class attaches the reaction network to.
ToyCaPumpFactorKinetic_SU2015_DCNSibling fixture with the same binding/pump topology, but whose
cyto/pump_areafactors are fixed constructor constants instead of geometry-derived quantities.braincell.ion._base.KineticIonTemplate this class instantiates; documents the NMODL-style semantics shared by all five toy fixtures, including the
Factormechanism.
Notes
diam_midis not a constructor parameter of this class. It is a compartment-geometry attribute injected at runtime onto every ion instance from the enclosing compartment’s context (seebraincell.mech._context, populated frombraincell._discretization), documented there as the diameter at the control-volume midpoint. Thecytoandpump_areafactors, and the reaction/conservation coefficients above, readself.diam_middirectly and so are only well-defined once this ion is attached to a compartment that supplies that context.This class has no
sources:Ciis driven only by the binding reaction, with no current-driven or constant influx term.PumpFreeis the algebraic member of the conserved pool; it is recovered fromPumpBoundby subtraction rather than integrated directly.The corresponding
.modfixture’spump_area/cytoconstants are compiled by NEURON to the fixed decimal62.8319, a rounding of the exact valuepi * diam_mid * depth(62.83185307179586for the fixture’s reference geometry) would produce. BrainCell does not substitute that compiled decimal: both factors are recomputed at runtime fromself.diam_mid, so results track the live geometry exactly rather than reproducing NEURON’s rounded constant. No other toy orCdp*mechanism in this module carries this exception.