PotassiumChannel - Overdrive77/BioSynapStudio-Public GitHub Wiki


PotassiumChannel Class

Summary

Represents a potassium ion (K⁺) channel modeled after Hodgkin-Huxley kinetics. It regulates repolarization and hyperpolarization phases during action potentials using a voltage-dependent activation gate (n).

Namespace

BioSynapStudio.Net.Modules.Channels

Assembly

BioSynapStudio.Net.dll


Inheritance

Identity → IonChannel → PotassiumChannel


Behavior

  • Reversal Potential: -77 mV
  • Conductance Max: 36.0
  • Leak Current: Returns a constant 3.0 during Resting phase
  • Spike Phase: Shuts off (0.0) during Action
  • Gating Variable: Uses Hodgkin-Huxley n gate with αₙ and βₙ rates

Properties

Name Type Description
ReversalPotential double Set to -77 mV, driving K⁺ outward to repolarize the membrane.
ConductanceMax double Maximal potassium conductance (36.0).
Name string Identified as "K+". Inherited from Identity.

Methods

Name Signature Description
GetCurrent override double GetCurrent(PotentialType potential, double V, double tick) Calculates potassium current using Hodgkin-Huxley gating dynamics for n. Returns a fixed leak current during Resting, and 0.0 during Action.

Usage Example

var kChannel = new PotassiumChannel();
double current = kChannel.GetCurrent(PotentialType.Graded, Vm: -55, tick: 100.0);

Remarks

  • The channel is based on classic Hodgkin-Huxley kinetics, specifically the n gating variable raised to the 4th power.
  • The alpha_n and beta_n rates control the time-evolving opening of the channel in response to membrane voltage.
  • Returns negative current (outward K⁺ flow), driving the neuron back toward resting or hyperpolarized state.
  • A leak current of 3.0 is returned during the Resting state to simulate basal K⁺ efflux.

See Also


Legal Notice

This software constitutes original intellectual property of the author, protected under international copyright and patent law. Patent: GB2506327.2 – Synthesized Emotional Cognition (SEC) DOI: 10.17605/OSF.IO/XERKF