Git Product home page Git Product logo

membrane-potential-sim's Introduction

membrane-potential-sim

Simulates membrane potential and the action potentail of exitables cells.

It is written on processing, an open-source graphical library and uses the Java language, with additional simplifications. It is meant to be a flexible software sketchbook. I choose to processing since trying ideas and sharing them easy and straight forward. The program works by simulating an excitable "cell" as a class, there are three main methods "membrane potential", "depolarized" and "conduct". Membrane potential method uses a simplified version of the Goldman-Hodgkin-Katz (GHK) voltage equation.

Medical physiology Walter Boron

The alpha variable in the equation is the quotient of the permeability between Na and K (PNa/Pk). The number is very low during resting potential since the permeability of K predominates. During an action potential these changes, the permeability of Na increases rapidly in a sigmoid fashion. The depolarize method generates this same change in the alpha variable producing an sudden increase in membrane voltage. The first action potential is trigger through an automatic cell with a timer, it then propagates thanks to the conduct method.

Run

1- Install > processing https://processing.org/download/

2- Clone repository

3- Run main.pde insde the main folder

Demo

Single cell Vm/t graph

Array of cells

Every square is a cell object and holds in its state the result of the GHK equation that's calculated 30 times per second. The first cell on the left sequentially triggers the rest and one by one are depolarized.

When white the cell is in resting potential, when red it has been depolarized.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.