CalciumDynamics

Struct CalciumDynamics 

Source
pub struct CalciumDynamics {
    pub concentration: f64,
    pub buffered: f64,
    pub resting_concentration: f64,
    pub tau_removal: f64,
    pub spike_influx: f64,
    pub buffer_capacity: f64,
    pub buffer_kon: f64,
    pub buffer_koff: f64,
    pub buffer_total: f64,
    pub volume: f64,
}
Expand description

Calcium dynamics in a cellular compartment.

Models calcium concentration changes due to:

  • Influx (voltage-gated channels, NMDA receptors)
  • Buffering (calmodulin, calbindin, etc.)
  • Extrusion (PMCA, NCX)
  • Diffusion
  • ER uptake and release

Fields§

§concentration: f64

Free calcium concentration (μM).

§buffered: f64

Buffered calcium concentration (μM).

§resting_concentration: f64

Resting calcium concentration (μM).

§tau_removal: f64

Time constant for calcium removal (ms).

§spike_influx: f64

Calcium influx per spike (μM).

§buffer_capacity: f64

Buffer capacity (ratio of buffered to free calcium).

§buffer_kon: f64

Buffer binding rate (1/(μM·ms)).

§buffer_koff: f64

Buffer unbinding rate (1/ms).

§buffer_total: f64

Total buffer concentration (μM).

§volume: f64

Compartment volume (μm³).

Implementations§

Source§

impl CalciumDynamics

Source

pub fn new() -> Self

Create new calcium dynamics with default parameters.

Source

pub fn presynaptic() -> Self

Create calcium dynamics for presynaptic terminal.

Presynaptic terminals have rapid calcium dynamics with high buffering.

Source

pub fn postsynaptic() -> Self

Create calcium dynamics for postsynaptic spine.

Spines have intermediate calcium dynamics.

Source

pub fn update(&mut self, influx: f64, dt: f64) -> Result<()>

Update calcium concentration over time.

Implements first-order removal and buffering dynamics.

§Arguments
  • influx - Calcium influx rate (μM/ms)
  • dt - Time step (ms)
Source

pub fn spike(&mut self)

Add calcium influx from spike.

Source

pub fn add_influx(&mut self, amount: f64) -> Result<()>

Add calcium influx (e.g., from NMDA receptors).

§Arguments
  • amount - Amount of calcium to add (μM)
Source

pub fn get_concentration(&self) -> f64

Get current free calcium concentration.

Source

pub fn reset(&mut self)

Reset to resting state.

Trait Implementations§

Source§

impl Clone for CalciumDynamics

Source§

fn clone(&self) -> CalciumDynamics

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CalciumDynamics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CalciumDynamics

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.