vivarium.processes.membrane_potential module

class vivarium.processes.membrane_potential.MembranePotential(parameters=None)[source]

Bases: vivarium.core.process.Process

Membrane Potential

Ports: * internal: holds the concentrations of internal ions * external: holds the concentrations of external ions * membrane: holds the cross-membrane properties ‘PMF’, ‘d_V’, ‘d_pH’

Notes

defaults = {'F': 96485.33212, 'R': 8.314462618, 'charge_map': {'Cl': 'anion', 'K': 'cation', 'Na': 'cation', 'PROTON': 'cation'}, 'initial_state': {'external': {'Cl': 110, 'K': 5, 'Na': 145, 'T': 310.15}, 'internal': {'Cl': 10, 'K': 300, 'Na': 10}}, 'k': 1.380649e-23, 'p_Cl': 0.05, 'p_K': 1, 'p_Na': 0.05, 'permeability_map': {'Cl': 'p_Cl', 'K': 'p_K', 'Na': 'p_Na'}}
name = 'membrane_potential'
next_update(timestep, states)[source]
ports_schema()[source]
exception vivarium.processes.membrane_potential.NoChargeError[source]

Bases: Exception

vivarium.processes.membrane_potential.test_mem_potential()[source]